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
results in a schema validation error: $: object found, array expected
This error occurs due to processing the run data during import, imported data of type Array are iterated and the schema is added to each object in the array, rather than the entire array being treated as the the run data
Horreum should either;
explicitly state that it does not support json schemas where the root element is an array type, amd display a warning/error when the json schema is defined.
or
support all valid json schemas and handle arrays accordingly
The text was updated successfully, but these errors were encountered:
currently a json schema defined for a horreum schema can not be of type "array".
e.g. with the following JSON validation schema
Uploading a json document such as;
results in a schema validation error:
$: object found, array expected
This error occurs due to processing the run data during import, imported data of type
Array
are iterated and the schema is added to each object in the array, rather than the entire array being treated as the the run dataHorreum should either;
or
The text was updated successfully, but these errors were encountered: