You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From what I can see at the moment, it does not seem possible to embed a structured object as the value of a given field within a CEDAR template.
Here is the concrete example: in our schema, we want to specify that the schema.org/variableMeasured property is required and potentially multiple. Within our specification, we either want the value for variableMeasured to be either an array of strings or an array of schema.org/PropertyValue objects. For strings, the template wizard works fine, but it doesn't seem possible to allow users to input PropertyValues as values.
It is possible to specify that the value for variableMeasured should be a PropertyValue, but this is in the sense of a dropdown option, not a structured object. We'd like the user to be able to specify sub-properties like maxValue, minValue, etc (all properties of the PropertyValue type within schema.org) for every element of their variableMeasured array.
Is this possible at the current moment? Is it possible by creating the JSON-schema for the template manually? Is it planned to ever be implemented?
The text was updated successfully, but these errors were encountered:
We have intentionally not allowed arbitrary JSON content in CEDAR artifacts, be they schema artifacts (templates, elements and fields), or instance artifacts. The meta schema (which validates schema artifacts) and the schema artifacts themselves lock down content very tightly. (Note that if you modify templates manually the REST APIs will likely reject them. FYI, the meta schema-driven validation library cedar-model-validation-library is used to perform this validation.)
So, unfortunately, it is really not possible to have the type of variable value content that you desire.
From what I can see at the moment, it does not seem possible to embed a structured object as the value of a given field within a CEDAR template.
Here is the concrete example: in our schema, we want to specify that the schema.org/variableMeasured property is required and potentially multiple. Within our specification, we either want the value for variableMeasured to be either an array of strings or an array of schema.org/PropertyValue objects. For strings, the template wizard works fine, but it doesn't seem possible to allow users to input PropertyValues as values.
It is possible to specify that the value for variableMeasured should be a PropertyValue, but this is in the sense of a dropdown option, not a structured object. We'd like the user to be able to specify sub-properties like maxValue, minValue, etc (all properties of the PropertyValue type within schema.org) for every element of their variableMeasured array.
Is this possible at the current moment? Is it possible by creating the JSON-schema for the template manually? Is it planned to ever be implemented?
The text was updated successfully, but these errors were encountered: