Open afraz-khan opened 1 year ago
Do you make some fix to this ? I maked Type assertions but schemas and spec are not generating as expected.
Routes are generated, but on swagger don't have schemas
@osnipezzini couldn't find any proper solution, had to downgrade to version 3.1.0
.
I got the same issue, this is how i solved it
import type { SchemaObject } from 'openapi3-ts';
...
const schemas = validationMetadatasToSchemas({
refPointerPrefix: '#/components/schemas/',
}) as { [schema: string]: SchemaObject };
Thanks @afraz-khan and @stt-mtel but i decided to move to TSOA because of cleaner and working implementation.
I tryed downgrade too, but stills swagger not generating schemas fine.
Finding type issues while using
routing-controllers-openapi:v4.0.0
with latestclass-validator-jsonschema
.I think,
openapi3-ts
dependency needs an upgrade, it currently conflicts with its counterpart inclass-validator-jsonschema
.(ps: Type assertions are a workaround.)