-
Notifications
You must be signed in to change notification settings - Fork 761
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
feat: externalValue resolver #1978
Comments
You're right, it's not being resolved by swagger-js. If you'd like to contribute some sort of resolution for 1.) The value field and externalValue field are mutually exclusive. We don't resolve 2.)
3.) After we resolve |
@char0n Would it be ok to remove to resolved externalValue and place the resolved value in the If it should be placed in |
IMHO most sense is to place the eventual value of |
@mathis-m yep, seems about right. |
fine then I proceed implementing guards for value and absolutify for the URL. |
Any update on this? It would be really great to have this working soon. |
@ambition-consulting I have little time right now, but you are welcome to pick it up |
Updated point 3.) described in proposed technical design of this implementation: #1978 (comment) |
Content & configuration
https://editor.swagger.io/?url=https://gist.githubusercontent.com/mathis-m/262703ffd14ac670366e603d0143943f/raw/4d4d7f3f5a5ba27c9880344976d7297e600588ce/tm8jDkQ5Cq.txt
Swagger/OpenAPI definition:
Is your feature request related to a problem?
I think
#5433
at swagger-ui is only partially a swagger-ui issue!I have tried to integrate externalValue examples (from params, requestBody, response) into the sample generation process.
I realized that this value is not resolved, I think
swagger-js
should resolve this just like it resolves refs.Originally posted by @mathis-m in swagger-api/swagger-ui#5433 (comment)
.
Describe the solution you'd like
I think
swagger-js
should resolve this just like it resolves refs.Describe alternatives you've considered
Else ways I will implement some resolver that will fetch the raw value hosted behind the externalValue url within swagger-ui
Additional context
#5433
at swagger-uiI have started implementing this and will create a PR for this if it is appreciated in a few days.
The text was updated successfully, but these errors were encountered: