metadata-qa-api icon indicating copy to clipboard operation
metadata-qa-api copied to clipboard

hasLanguageTag checker

Open pkiraly opened this issue 1 year ago • 0 comments

It should check if the data element has language attribute. I should have the following values:

  • allOf: all instances should have language attribute
  • anyOf: at least one instance should have language attribute
  • oneOf: 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

pkiraly avatar Aug 23 '24 19:08 pkiraly