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

Additional Check should check for type not present #174

Open
egekorkan opened this issue Feb 21, 2021 · 1 comment
Open

Additional Check should check for type not present #174

egekorkan opened this issue Feb 21, 2021 · 1 comment
Labels
core topics about the core package linting

Comments

@egekorkan
Copy link
Member

In the following TD (https://github.com/w3c/wot-testing/blob/main/events/2020.09.Online/TDs/NHK/nhktv.jsonld) there is no type but properties. This should be detected by additional checks

@egekorkan
Copy link
Member Author

This should not be simple check of missing type but showing error only when type is not present when relevant keywords are present. Examples of keywords that should show errors when type is not present:

  • properties
  • items
  • minimum

Examples of keywords that should NOT show errors when type is not present:

  • anyOf, oneOf etc
  • enum, const

@egekorkan egekorkan added the core topics about the core package label Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core topics about the core package linting
Projects
None yet
Development

No branches or pull requests

1 participant