Closed tiborsimko closed 8 years ago
I think providing support for string and numbers without type
field is easy enough. Maybe we can add null
support as well, I have to check how elasticsearch handles a null
on a typed field.
However we should force failure for anything else than string and number without specifying the type. Json-schema allows combination of number and strings, and it would be too complicated to guess which type is the valid one (especially with string containing numbers).
Running
domapping
on our example MARC21 JSON Schema leads to an error due to unsupportedenum
:The corresponding JSON Schema bit:
Possible techniques on how we could solve this: