-
Notifications
You must be signed in to change notification settings - Fork 12
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
Wrong null-type for optional ref-type in openapi 3.0.3 #130
Comments
Sorry, I mixed up something in my configuration. It actually works correct now. |
Sorry for the confusion, I have updated the description. It was the other way around. In sttp-apispec |
Now, I understand that this is actually coming from |
When updating to sttp-apispec 0.7.1, I think, I found a regression regarding nullability.
Having defined:
This results in the following openapi definitions:
sttp-apispec
0.3.2
(openapi:3.0.3
):sttp-apispec
0.7.1
(openapi:3.0.3
):sttp-apispec
0.7.1
(openapi:3.1.0
):After updating, we get
type: "null"
in our openapi spec (version3.0.3
), which seems be invalid (see: https://swagger.io/docs/specification/data-models/data-types/). I think, it is only introduced in openapi version3.1.0
.The text was updated successfully, but these errors were encountered: