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
I have searched existing issues to ensure the issue has not already been raised
Issue
I'm using a TS to JSON schema generator that basically creates JSON files with definitions of various API responses.
When running the script to generate the OpenAPI file, some reference #/components/schema/*, which doesn't exist since the schema is empty.
exportconstoptions: RouteShorthandOptions={schema: {summary: "Some Summary",description: "Returns a list of items",params: GetItemsParamsSchema,response: {200: ItemListResponseSchema,},},}
Prerequisites
Issue
I'm using a TS to JSON schema generator that basically creates JSON files with definitions of various API responses.
When running the script to generate the OpenAPI file, some reference
#/components/schema/*
, which doesn't exist since the schema is empty.I don't know honestly if this is because of #675.
Where
ItemListReponseSchema.json
looks like this:The generated openAPI spec file:
The workaround I found is to manually add the
components: {schema: {}}
, but this is quite inconvenient.The text was updated successfully, but these errors were encountered: