pkiraly / metadata-qa-api

Metadata Quality Assessment Framework API
http://pkiraly.github.io/
GNU General Public License v3.0
14 stars 5 forks source link

hasLanguageTag checker #194

Open pkiraly opened 3 weeks ago

pkiraly commented 3 weeks ago

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

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