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
However, if I were to create a body parameter or something else that requires properties, I would expect the behavior to be the same.
However, if I define my schema as below, creating a property of type array, I receive an error from the validator, saying that I am not allowed to provide a collectionFormat
Body parameters are, in most cases, models which are normally described as JSON objects. JSON has its way of defining arrays (as does XML). The reason collectionFormat was added was to allow the flexibility for the other parameter types where there's no standard whatsoever for specifying how multiple values are sent.
As defined in the spec, I can set
collectionFormat
if I create a parameter of typearray
.However, if I were to create a body parameter or something else that requires properties, I would expect the behavior to be the same.
However, if I define my schema as below, creating a property of type
array
, I receive an error from the validator, saying that I am not allowed to provide acollectionFormat
If I remove the
collectionFormat
line from the code above, the validator accepts it.The text was updated successfully, but these errors were encountered: