Closed vwong closed 12 months ago
Schemas are normally written like:
oneOf: [ { $ref: "A" }, { $ref: "B" }, ]
But some schemas have a superfluous definition included:
type: "object", oneOf: [ { $ref: "A" }, { $ref: "B" }, ]
This breaks because we transform schemas based on type: "object" alone. This PR checks for the above scenario, so that we don't break when faced with such schemas.
type: "object"
Schemas are normally written like:
But some schemas have a superfluous definition included:
This breaks because we transform schemas based on
type: "object"
alone. This PR checks for the above scenario, so that we don't break when faced with such schemas.