RestStructureTest should examine any schemas defined in the ArrayDef::PARAM_SCHEMA field of param settings returned by getBodyParamSettings. The value contained in this field should (after applicable normalization) be a valid JSON schema.
The schema validation should be implemented in a (static?) method in ArrayDef, so we keep the knowledge about the validation library in a single place. It should be implemented using JsonSchema\Validator from the justinrainbow/json-validator package, probably using CHECK_MODE_VALIDATE_SCHEMA (though it's not clear how to do that without a known-good target document).
Furthermore, getParamSettings should not be allowed to make use of the "array" parameter type. That type is only supported in getBodyParamSettings.
- RestStructureTest change implemented
- getParamSettings prohibited from using array type