You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
a way to execute and append the output from a snippet generator and append it to the models.
Describe alternatives you've considered
Currently i'm running this on my schema to get x-codeSamples: https://github.com/cdwv/oas3-api-snippet-enricher.
Im running a custom redoc in fastapi where openapi_url is changed to match a custom json. upon opening redocs url i grab the openapi schema,, run a os exec to enrich it and write it to a file redoc uses. it woeks, but not very efficient. i should peobably posted in your fastapi repo, but as im using this eepo (i rely on params it doesnt seem ro have)
Additional context
just wanted to thank you for sharing your work. it saves me days.
The text was updated successfully, but these errors were encountered:
hey thanks for replying. thats what i did when i wrote this which i did before doing enough research :) . i found a way to automate it and happy with it.
for those interested, heres the approach for fastapi enriched docs ErikWittern/openapi-snippet#40 (comment)
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
a way to execute and append the output from a snippet generator and append it to the models.
Describe alternatives you've considered
Currently i'm running this on my schema to get x-codeSamples: https://github.com/cdwv/oas3-api-snippet-enricher.
Im running a custom redoc in fastapi where openapi_url is changed to match a custom json. upon opening redocs url i grab the openapi schema,, run a os exec to enrich it and write it to a file redoc uses. it woeks, but not very efficient. i should peobably posted in your fastapi repo, but as im using this eepo (i rely on params it doesnt seem ro have)
Additional context
just wanted to thank you for sharing your work. it saves me days.
The text was updated successfully, but these errors were encountered: