-
Notifications
You must be signed in to change notification settings - Fork 38
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
Nullable object fields don't get generated correctly #2058
Comments
I do remember this one. To add further context: spot/lib/src/generators/openapi3/openapi3-specification.ts Lines 89 to 121 in f93055e
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
A TS type like this
results in the following OpenAPI spec:
This doesn't work as expected in OpenAPI 3.0 (the nullable is simply ignored)
OAI/OpenAPI-Specification#1368
Expected behavior
The field definition needs to use
allOf
https://stackoverflow.com/questions/40920441/how-to-specify-a-property-can-be-null-or-a-reference-with-swagger
Desktop (please complete the following information):
Spot version 1.9.0
The text was updated successfully, but these errors were encountered: