This repository provides all the data schemas relative to the metis experiment. There are meant to be used in different server-side and client-side applications. These are written according to the JSON Schema 6 specification.
npm install https://github.com/robindemourat/metis-schemas
import schemas from 'metis-schemas'
const {
Asset,
User,
Resource,
Composition,
Montage,
Diffusion,
Deliverable,
} = schemas;
You can then use these schemas for validation (for instance with ajv module) or for creation of new standard objects (for instance with json-schemas-defaults module).
Please note that the schemas are enriched with some non-standard custom properties aimed at facilitating their use for generating UI forms.
editable
(Boolean) : whether value can be edited when editing the objectlongString
(Boolean) : whether UI should display atextarea
instead of aninput
for a given propertyanyOfFrom
(String) : when object is ananyOf
, indicates the path of a value to look for (e.g.metadata.resource_type
) in the edited object to determine what alternative to choose for the related subschema reference UI display.accept_mimetypes
(Array of Strings) : for properties aimed at being displayed as a file input, determines which file types can be accepted
LGPL-3.0
CECCIL-C