We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm submitting a ...
I confirm that I
In case of custom type TimeFormat the following:
TimeFormat
type TimeFormat = 'iso8601' | 'epoch_ms'; @Query() timeFormat: TimeFormat = 'iso8601'
should generate open api spec parameter like:
{ "in": "query", "name": "timeFormat", "required": false, "schema": { "default": "iso8601", "type": "string", "enum": [ "iso8601", "epoch_ms" ] } }
Instead it generates:
{ "in": "query", "name": "timeFormat", "required": false, "schema": { "$ref": "#/components/schemas/TimeFormat" } }
Currently, if type is written open directly into query parameter definition (instead of using custom type):
@Query() timeFormat: 'iso8601' | 'epoch_ms' = 'iso8601'
it works, default value is generated.
Version of the library: 5.1.1 and 6.0.0-rc.3 Version of NodeJS: v20.2.0
The text was updated successfully, but these errors were encountered:
Hello there ikkala 👋
Thank you for opening your very first issue in this project.
We will try to get back to you as soon as we can.👀
Sorry, something went wrong.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
Based on 6.0.0-rc.4 change log, this is still to be fixed.
Successfully merging a pull request may close this issue.
Sorting
I'm submitting a ...
I confirm that I
Expected Behavior
In case of custom type
TimeFormat
the following:should generate open api spec parameter like:
Current Behavior
Instead it generates:
Currently, if type is written open directly into query parameter definition (instead of using custom type):
it works, default value is generated.
Context (Environment)
Version of the library: 5.1.1 and 6.0.0-rc.3
Version of NodeJS: v20.2.0
The text was updated successfully, but these errors were encountered: