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
The enums function from @tsed/schema can be used to create a referenced enum. When using this function, the generated OpenAPI Specification (OAS) contains an unexpected property style: "deepObject".
To Reproduce
E.g.
// The enumexportenumScope{admin='admin',public='public',}enums(Scope).label('Scope');
// Enum used as query parameter
@Controller('/example')exportclassExampleController{
@Get()
@Returns(200,Example)asynclist(
@QueryParams('scope')
@Enum(Scope)scope?: Scope,): Promise<Example>{}}
Describe the bug
The
enums
function from@tsed/schema
can be used to create a referenced enum. When using this function, the generated OpenAPI Specification (OAS) contains an unexpected propertystyle: "deepObject"
.To Reproduce
E.g.
which gives
Expected behavior
The generated OAS should not contain
"style": "deepObject"
for the enum query parameter.Code snippets
No response
Repository URL example
No response
OS
macOS
Node version
v20.12.2
Library version
v7.81.0
Additional context
No response
The text was updated successfully, but these errors were encountered: