metadata-qa-api
metadata-qa-api copied to clipboard
hasLanguageTag checker
It should check if the data element has language attribute. I should have the following values:
allOf: all instances should have language attributeanyOf: at least one instance should have language attributeoneOf: only instance should have language attribute
An example:
data:
{
"id":"Portrait",
"description":{
"de":["Portr\u00e4t"],
"zh":["\u8096\u50cf"]
}
}
schema:
format: JSON
fields:
- name: description
path: $.['description']
asLanguageTagged: true
rules:
- hasLanguageTag: allOf