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
We have cases where our automatically generated OpenAPI schemas are missing proper path parameter definitions. It would be useful to have an escape hatch for these kind of flaky schemas. Where resolving the issue at the root might not be feasable or resource intensive.
Proposal
My suggestion is to allow an escape hatch for these kind of flaky schemas, using an option --generate-path-params that can be passed to the CLI. This option would enable the library to automatically extract path param keys from the url and add them to the generated paths.
This should not break anything else and not affect overall functionality, except for those that need it.
I understand this might be against the philosophy of this library. So please give feedback on if you think this is reasonable or not.
Description
We have cases where our automatically generated OpenAPI schemas are missing proper path parameter definitions. It would be useful to have an escape hatch for these kind of flaky schemas. Where resolving the issue at the root might not be feasable or resource intensive.
Proposal
My suggestion is to allow an escape hatch for these kind of flaky schemas, using an option
--generate-path-params
that can be passed to the CLI. This option would enable the library to automatically extract path param keys from the url and add them to the generated paths.This should not break anything else and not affect overall functionality, except for those that need it.
I understand this might be against the philosophy of this library. So please give feedback on if you think this is reasonable or not.
Extra
The text was updated successfully, but these errors were encountered: