-
Notifications
You must be signed in to change notification settings - Fork 54
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
[tests]: postman environment keys not replaced with server variables #17
Comments
To support this, I'd like to first have a warnings mechanism. So, here's how this works... We parse the URLs using Postman's variable resolution algorithm (which is a tad more difficult than one may think), substituting Postman collection variables with the resolved values. If a variable is unresolved, like in this case, we can detect that and create a variable entry under the server object. However, in server object variables, the Is there a way this can be auto-resolved without breaking OpenAPI definition usage? |
Agree, the possible combinations of templated variables probably make this an intractable problem, and that's just for It might be worth special-casing the situation where a URL becomes unresolved by (optionally?) removing it (or moving it to a specification extension Part of the problem is that the double-bracket syntax looks like an OAS templated variable, when it's really not. Perhaps there is some other URL-friendly delimiter which could be used instead? Again, agreed it might be better to leave this up to the application using the converter to support an environment map in some form if needed, either pre- or post- conversion. |
Occurs in
gotomeeting.postman.json
fixture.The text was updated successfully, but these errors were encountered: