Skip to content

JSON-Schema - Change to support only multiple values? #165

@hoijui

Description

@hoijui

many fields support giving a single value OR multiple values, mainly because the fields were mostly single values only in the past, and we extended them to be multiple values.
it is possible to support that with JSON-Schema, but ... in a way, from a data-model/IT/cleanliness point of view, it is not optimal.

so we could switch to support only multiple values, where the only down-sides would be:

  • that people could not use the more simple single-value syntax anymore
  • practically all the existing manifests out there would have to be adjusted or converted to the new version on the fly

The thing is that in TOML, especially the mutli-value syntax is very confusing to many people (including me),
so then it might be a good idea to think about switching back to YAML as the default format.

Examples from our schema

Relation to the Ontology

in the future, we want to generate the JSON-Schema from the ontology (OWL/RDF/Turtle or LinkML), but for now, the two are kept in sync manually, as good as possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    idea statusmay be bullshit, may be the next top featurequestionFurther information is requested

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions