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
I'm trying to define a schema with DTDL v2. I see many fields are "required" while they can be referenced only. For example, I can globally define an Enum and refer to it by @id in other Property definitions. JSON-LD defines node reference:
A node reference is a node object containing only the @id property, which may represent a reference to a node object found elsewhere in the document.
However, in the DTDL v2 spec, @type, enumValues, and valueSchema are required which should not exist in referencing objects.
Do DTDL respect reference nodes, where the above properties should be optional), or should I always denormalize all the references?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi, there.
I'm trying to define a schema with DTDL v2. I see many fields are "required" while they can be referenced only. For example, I can globally define an
Enum
and refer to it by@id
in otherProperty
definitions. JSON-LD defines node reference:However, in the DTDL v2 spec,
@type
,enumValues
, andvalueSchema
are required which should not exist in referencing objects.Do DTDL respect reference nodes, where the above properties should be optional), or should I always denormalize all the references?
Thanks!
The text was updated successfully, but these errors were encountered: