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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
It seems that following the documentation for openapi-metadata, when generating the document, there's an error
NoExplicitTypeError: Unable to infer OpenAPI type from TypeScript reflection system. You need to provide explicit type for 'name' of 'User' classThis error can be solved by adding
typein the@ApiProperty()for example:@ApiProperty({ type: "number" })Is this a bug or we have to explicitly write down the type every time
pnpm tsx ./src/index.tsI wanted to put in issue but there is no openapi-metadata template and there's also no blank template
Beta Was this translation helpful? Give feedback.
All reactions