-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Referring to Swagger's serialisation docs
Under the style:deepObject it specifies the following:
The behavior for nested objects and arrays is undefined.
It only states this on deepObject, however I suspect the behaviour would be undefined for all query parameters as RFC6570 has no comments on such data either.
I also suspect that path parameters will follow the same limitations.
Requirements to disallow this:
-
Schemas need to create new Schemas for defined
items,propertiesandadditionalProperties -
Schemas need to provide access to the
items,propertiesandadditionalProperties -
Because of the potential to get mixed up in
allOf,anyOfandoneOfthe Schema itself will need methods such ascanItemsBe(Type),canPropertiesBe(Type)andcanAdditionalPropertiesBe(Type)which recursively call the same methods on subSchemas. -
Lastly the Parameter will be able to call these methods i.e.
if ($schema->canBe(Type::Array) && $schema->itemsCanBe(Type::Array)) {
// do something
}