mikunn / openapi-schema-to-json-schema

Converts OpenAPI Schema Object to JSON Schema
76 stars 6 forks source link

Allow `type` to be an array #17

Closed ehmicky closed 6 years ago

ehmicky commented 6 years ago

type can be an array in both in JSON schema v4 and in OpenAPI 2.0.

mikunn commented 6 years ago

I think this is the same kind of thing as with type: "null". Support for type arrays is not explicitly mentioned in the schema or in the specification.

ehmicky commented 6 years ago

Yes that's true.