Const
Create a new schema annotation. Annotation can be assigned both to fields and to the schema itself. Annotation is serialized with the schema.
const ColorAnnotation = Annotation.make({ id: 'org.dxos.annotation.color', schema: Schema.String,});const schema = Schema.String.annotate(ColorAnnotation.set('red')); Copy
const ColorAnnotation = Annotation.make({ id: 'org.dxos.annotation.color', schema: Schema.String,});const schema = Schema.String.annotate(ColorAnnotation.set('red'));
O(1) at definition time; validates the id format.
Create a new schema annotation. Annotation can be assigned both to fields and to the schema itself. Annotation is serialized with the schema.