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
Could create a Rake task that can read in the schemas and export to an OpenAPI spec:
rake typed_params:export[<format>]
One caveat here would be that this only documents requests, not responses. But responses could always be filled in afterwards using schemas, so I think it's still worth exploring.
The text was updated successfully, but these errors were encountered:
Doesn't even necessarily have to be Swagger/OpenAPI specific. At the very least, we could export all schemas to JSON so that the schemas can be used elsewhere to generate e.g. TypeScript types or even documenation.
ezekg
changed the title
Export schemas to a Swagger/OpenAPI spec
Export schemas to JSON/Swagger/OpenAPI
Jun 8, 2023
Could create a Rake task that can read in the schemas and export to an OpenAPI spec:
One caveat here would be that this only documents requests, not responses. But responses could always be filled in afterwards using schemas, so I think it's still worth exploring.
The text was updated successfully, but these errors were encountered: