Skip to content

Latest commit

 

History

History
164 lines (87 loc) · 3.95 KB

schemadescriptor.schema.md

File metadata and controls

164 lines (87 loc) · 3.95 KB

Schema Descriptor Schema

https://ns.adobe.com/xdm/common/desciptors/schemadescriptor

A descriptor that contains metadata about an XDM schema, including an optional property and array item selector, used to address the descriptor to a specific property or item.

Abstract Extensible Status Identifiable Custom Properties Additional Properties Defined In
Can be instantiated Yes Experimental Yes Forbidden Permitted common/descriptors/schemadescriptor.schema.json

Schema Hierarchy

  • Schema Descriptor https://ns.adobe.com/xdm/common/desciptors/schemadescriptor

Schema Descriptor Example

{
  "@id": "https://example.com/descriptors/1",
  "@type": "xdm:descriptorPrimaryKey",
  "xdm:source": "https://ns.adobe.com/xdm/context/profile",
  "xdm:sourceProperty": "xdm:identities",
  "xdm:sourceItem": {
    "xdm:type": "https://ns.adobe.com/experience/mcid"
  }
}

Schema Descriptor Properties

Property Type Required Defined by
@id string Optional Schema Descriptor (this schema)
@type string Optional Schema Descriptor (this schema)
xdm:sourceItem complex Optional Schema Descriptor (this schema)
xdm:sourceProperty string Optional Schema Descriptor (this schema)
xdm:sourceSchema string Optional Schema Descriptor (this schema)
* any Additional this schema allows additional properties

@id

Identifier

The unique identifier for the schema descriptor. This property is required when the descriptor is defined outside of the applicable schema, but is optional when applied via 'meta:descriptors'

@id

  • is optional
  • type: string
  • defined in this schema

@id Type

string

  • format: uri – Uniformous Resource Identifier (according to RFC3986)

@type

Type

The type of descriptor this object represents

@type

  • is optional
  • type: string
  • defined in this schema

@type Type

string

@type Known Values

Value Description

xdm:sourceItem

Source Item

When present, the selector used to match a specific item in the array pointed to by sourceProperty

xdm:sourceItem

  • is optional
  • type: complex
  • defined in this schema

xdm:sourceItem Type

One of the following conditions need to be fulfilled.

Condition 1

Condition 2

Condition 3

Condition 4

xdm:sourceProperty

Source Property

When present, the property of the source schema to which this descriptor applies. This value is a JSON Pointer, applied to an instance of an object described by xdm:sourceSchema.

xdm:sourceProperty

  • is optional
  • type: string
  • defined in this schema

xdm:sourceProperty Type

string

xdm:sourceSchema

Source Schema

The source schema this descriptor applies to. This property is required when the descriptor is defined outside of the applicable schema, but is optional when applied via 'meta:descriptors'

xdm:sourceSchema

  • is optional
  • type: string
  • defined in this schema

xdm:sourceSchema Type

string

  • format: uri – Uniformous Resource Identifier (according to RFC3986)