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 python openapi-spec-validator library considers a spec invalid if the type of a property is different from the type of the value of default property.
This keyword can be used to supply a default JSON value associated with a particular schema. It is RECOMMENDED that a default value be valid against the associated schema.
This works correctly when target openapi version is 3.0
springdoc.api-docs.version=openapi_3_0
The text was updated successfully, but these errors were encountered:
When I use 2.8.6 with a Java class, I also see the "true" representation rather than true. But if I bump the version to 2.8.7 it generates the expected true. Could you check if upgrading to 2.8.7 (or latest 2.8.8) resolves this issue for you?
Describe the bug
The python openapi-spec-validator library considers a spec invalid if the type of a property is different from the type of the value of
default
property.To Reproduce
Spring Boot: 3.4.5
springdoc-openapi: 2.8.6
Actual Result:
Expected Result:
Example controller:
Expected behavior
default
value should have the same type as the type of the propertyAdditional context
Although, unlike 3.0 the 3.1 spec doesn't enforce this rule, it is still strongly recommended to follow it:
https://json-schema.org/draft/2020-12/json-schema-validation#name-default
This works correctly when target openapi version is 3.0
springdoc.api-docs.version=openapi_3_0
The text was updated successfully, but these errors were encountered: