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
Property p1 is an object, which is represented as a ObjectSchema. Property p2 does not have the type keyword specified, hence its value can be anything. It should be modeled an instance of the Schema class with the type property set to the null value. Currently it is modeled as an instance of ObjectSchema and the type property is set to object.
The text was updated successfully, but these errors were encountered:
sebastien-rosset
changed the title
swagger-v2-converter incorrectly converts schemas without the 'type' keyword
swagger-v2-converter incorrectly converts 2.0 schemas that don't have the 'type' keyword
May 19, 2020
sebastien-rosset
changed the title
swagger-v2-converter incorrectly converts 2.0 schemas that don't have the 'type' keyword
swagger-v2-converter incorrectly converts 2.0 schemas that do not have the 'type' keyword
May 19, 2020
This makes it impossible to tell if the source schema was: {type: object} which only allows objects in or {} which allows in any type
And it does not conform to the docs describing AnyType here: https://swagger.io/docs/specification/data-models/data-types/#any
2.0 schemas without the
type
keyword are incorrectly converted to aObjectSchema
. For example, consider the following OAS 2.0 document:Property
p1
is an object, which is represented as aObjectSchema
. Propertyp2
does not have thetype
keyword specified, hence its value can be anything. It should be modeled an instance of theSchema
class with thetype
property set to the null value. Currently it is modeled as an instance ofObjectSchema
and thetype
property is set toobject
.The text was updated successfully, but these errors were encountered: