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 OpenAPI Spec states that the default property, when applied to a schema must use the same values as the underlying property type, thus, a string property cannot have an integer value specified etc.
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#schema-object
default - The default value represents what would be assumed by the consumer of the input as the value of the schema if one is not provided. Unlike JSON Schema, the value MUST conform to the defined type for the Schema Object defined at the same level. For example, if type is string, then default can be "foo" but cannot be 1.
This is currently not covered by the project as best I can tell.
Is this on anyone's radar to fix? I'm currently working on a private version that tackles that for our use case, but will be happy to upstream this if needed
The text was updated successfully, but these errors were encountered:
The OpenAPI Spec states that the default property, when applied to a schema must use the same values as the underlying property type, thus, a string property cannot have an integer value specified etc.
This is currently not covered by the project as best I can tell.
Is this on anyone's radar to fix? I'm currently working on a private version that tackles that for our use case, but will be happy to upstream this if needed
The text was updated successfully, but these errors were encountered: