desktop
desktop copied to clipboard
More than one type on a model's property isn't in the official spec
I don't see in the official swagger 2.0 spec anywhere where you are allowed 2 types on a model property, but spotlight outputs as many as you specify in an array of type instead of a string:
"definitions": { "m1": { "type": "object", "description": "properties with two choices of type", "properties": { "f1": { "type": [ "string", "null" ] } } } }
swagger.io editor seems to agree with me, giving me an error that "type" should be a string.

AWS API gateway takes the first type in the array on import.