desktop icon indicating copy to clipboard operation
desktop copied to clipboard

More than one type on a model's property isn't in the official spec

Open lienmeat opened this issue 8 years ago • 0 comments

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. screenshot 2017-10-09 12 34 41

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

lienmeat avatar Oct 09 '17 19:10 lienmeat