-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle servers
variable params
#218
Comments
is it fair to assume a server url and path url would be combined into one for the purposes of the workflow? In that case, it would still pass as a |
But how about the server variables which are not path: servers:
- url: 'https://{organizationId}.example.com'
description: api server
variables:
organizationId:
default: unknown
description: >-
Unique organization identifier. |
oh that's a good question, we don't have any enum for a server variable because parameter is taken from the OAS definition, I think you can use the reusable object for this use case and use an expression
reference: '$.servers[0].variables.version.default'
value: <new value> |
actually, this may not work because the ABNF in the spec doesn't cover the servers array. i may be interpreting it incorrectly |
I'm sure it's not covered. For now we'll just use path parameters in our implementation but would be great to cover it in the future versions of arazzo. |
Hi folks, Apologies in delayed response here. As @RomanHotsiy hints to, this is not covered by Arazzo currently. At the moment it's left up to the runtime process (e.g. what's invoking the Arazzo Document) to determine what target host to call. As different OADs within the sourceDescriptions can have different server variable constructs, I do think that extending the Parameters Object to cover This is a good candidate for |
There can also be multiple servers defined in a single OAD. It seems like there should be some way for the user to indicate (via inputs maybe) which server (and if there are variables, which values) to use. |
Hi Everyone,
I encountered a scenario that isn't explicitly covered in the documentation, and I'm hoping you can clarify it for me.
It is possible to define server variables in OpenAPI like this:
My confusion arises from how to pass this
organizationId
to the step parameters.My assumption was to pass it as a parameter like this:
However, it seems that this
organizationId
parameter doesn't actually belong to the parameters in thepath
, but rather to the server variables.Please let me know if you have some configuration in mind, maybe you already discussed it before.
Looking forward to your reply,
Thank you.
The text was updated successfully, but these errors were encountered: