Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hasLanguageTag checker #194

Open
pkiraly opened this issue Aug 23, 2024 · 0 comments
Open

hasLanguageTag checker #194

pkiraly opened this issue Aug 23, 2024 · 0 comments
Assignees

Comments

@pkiraly
Copy link
Owner

pkiraly commented Aug 23, 2024

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 pkiraly self-assigned this Aug 23, 2024
pkiraly added a commit that referenced this issue Aug 23, 2024
pkiraly added a commit that referenced this issue Aug 26, 2024
pkiraly added a commit that referenced this issue Aug 26, 2024
pkiraly added a commit that referenced this issue Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant