adobe / adobe/xdm

Introduce & standardize xdm:condition

Open
#362 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
266
Forks
380
Avg merge
5d 8h
Merged PRs (30d)
9

Description

I think XDM should have a "conditional language" to have a standard way to define conditions when a property should be used or not. Conditions could refer to other attributes of the same or another XDM schema.
The language should support basic checks like:
* is / is not present
* equals / not equals
* <, >
* contains (for arrays)

Examples of this are for example in the commerce area where products have prices which only apply to a certain region/customer group/channel/etc.

Example:
```
"xdm:condition": {
"xdm:country": {
"xdm:equals": "DE"
},
"xdm:channel.@type": {
"xdm:equals": "https://ns.adobe.com/xdm/channel-types/web"
}
}
```

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by surveying the XDM schemas and documenting a standard for xdm:condition, including presence checks, comparisons, array containment, and references to attributes in the same or another schema; done means the syntax and semantics are specified consistently with the examples.

Written by the indexing model from the issue text.

Assessment

Tech stack
json
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.