Json validation schema doesn't support json arrays and json object parameters
Describe the bug Json arrays and objects validation fails as json validation schema is broken.
To Reproduce Steps to reproduce the behavior:
- Log in as root
- Go to /dynapi-rest-docs
- Use POST report generator endpoint (to create new generator) with following json
{ "template": "string", "select_queries": [{ "name": "projectFunding", "description": "description select query placeholder", "selectQuery": "Select distinct (MIN(?projectLabel) AS ?projectTitle) ?funderLabel ?projectTime ?totalAwardAmount", "graph": "constructQuery1" }], "construct_queries": [{ "name": "constructQuery1", "description": "construct query description placeholder", "constructQuery": "Construct {\\n ?project a <http://vivoweb.org/ontology/core#Grant>" }], "report_generator_description": "string", "report_generator_name": "string" }
- 500 Error will appear ERROR [Endpoint] edu.cornell.mannlib.vitro.webapp.dynapi.data.conversion.ConversionException: Json validation failed: $.select_queries: array found, object expected $.construct_queries: array found, object expected