datatagsuite / schema

DATS JSON schemas
https://datatagsuite.github.io/docs/html/dats.html
Other
11 stars 8 forks source link

@type as required property #40

Closed daniwelter closed 1 year ago

daniwelter commented 3 years ago

There are two schemas (treatment and software) that have @type as a required field. This seems to be an odd choice as all schemas have this field and it is always a constant for a given schema type. If it is essential that each DATS-conforming JSON document contains the @type tag, this should be a required field for all schemas. Otherwise, this property should be removed. If these two schemas are special cases, this should be documented somewhere.