webgme / webgme-taxonomy

A design studio for creating taxonomies which can then be used to tag various resources.
MIT License
0 stars 1 forks source link

Value constraints #185

Open romancow opened 1 year ago

romancow commented 1 year ago

Discussion

Supporting value constraints such as max, min, TIME format could be captured for term values. JSONSchema also supports such constraints in its specification.

Approach

We can capture this constraint information as a part of the model and JSONSchema. The validation of the terms can be achieved using the JSONSchema spec. Example, support for the integer field in JSONSchema

(deep-dive topic 1f)

romancow commented 1 year ago

Some other random notes I had written down regarding this: