Feat: Support x-scapi-internal (@W-18760264@)#202
Feat: Support x-scapi-internal (@W-18760264@)#202joeluong-sfcc merged 18 commits intofeature/oasfrom
Conversation
|
Is the x-scapi-internal our alternative to having |
|
|
||
| {{#vendorExtensions}} | ||
| {{^x-scapi-internal}} | ||
| {{> apis.parameters }} |
There was a problem hiding this comment.
Can you please explain what data gets passed into the included template? Is it the whole object or is is it based on the current context? May be add some comments in the template?
No, we will still have 2 separate OAS specification files, the |
vcua-mobify
left a comment
There was a problem hiding this comment.
I've verified that when x-scapi-internal is added to an endpoint, that endpoint does not get added to the generated SDK.
Endpoints with other custom annotations that don't include x-scapi-internal will still appear.
This PR adds support for the
x-scapi-internalcustom vendor extension. Whenever an operation is tagged asx-scapi-internal: true, we'll hide that operation from being generated in the SDKExample:
There's unfortunately lots of duplicated code as we have to handle 2 cases