-
Notifications
You must be signed in to change notification settings - Fork 509
New issue
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
Example response attributes with negative values are omitted from swagger.json file #1289
Closed
2 of 4 tasks
Labels
Comments
Hello there thecampbells384 👋 Thank you for opening your very first issue in this project. We will try to get back to you as soon as we can.👀 |
jackey8616
added a commit
to jackey8616/tsoa
that referenced
this issue
Oct 6, 2022
Add both plus(+) and minus(-) operator @ ExampleDecorator. Apply to both spec2 & 3 test cases.
jackey8616
added a commit
to jackey8616/tsoa
that referenced
this issue
Oct 6, 2022
Add both plus(+) and minus(-) operator @ ExampleDecorator. Apply to both spec2 & 3 test cases.
jackey8616
added a commit
to jackey8616/tsoa
that referenced
this issue
Oct 6, 2022
Add minus(-) and plus(+) operator detection @ getInitializerValue when metadataGenerating.
5 tasks
jackey8616
added a commit
to jackey8616/tsoa
that referenced
this issue
Oct 6, 2022
Add both plus(+) and minus(-) operator @ ExampleDecorator. Apply to both spec2 & 3 test cases.
jackey8616
added a commit
to jackey8616/tsoa
that referenced
this issue
Oct 6, 2022
Add minus(-) and plus(+) operator detection @ getInitializerValue when metadataGenerating.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorting
I'm submitting a ...
I confirm that I
Expected Behavior
When generating a response example, any attributes with a negative number should be included in the generated openapi spec.
Example code:
should produce a swagger doc containing:
Current Behavior
Instead, the attribute with a negative number is not included in the openapi spec. The example code above produces:
Context (Environment)
Version of the library: 4.1.0
Version of NodeJS: 16.15.1
The text was updated successfully, but these errors were encountered: