Introduce & standardize xdm:condition
- 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
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