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
Thanks so much for the work on this! I've just added in a single comment as we need to move one line of code and then it works perfectly!
On PR but I'll put it here anyway:
Line 247 (var required = fullObject.required || [];) should be moved to line 251 (i.e. after processPolymorphic runs if the definition is polymorphic) otherwise we're not adding in the merged required fields.
Getting "Error: Unrecognized schema type: undefined" when OpenAPI definition contains "allOf"-type polymorphism.
Can be reproduced with the polymorphism example at http://swagger.io/specification.
How about using a parser such as swagger-parser for validating the spec file and resolving the definitions?
The text was updated successfully, but these errors were encountered: