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

How to test rules that can't be validated by the schema? #1

Open
jonblower opened this issue Nov 14, 2021 · 1 comment
Open

How to test rules that can't be validated by the schema? #1

jonblower opened this issue Nov 14, 2021 · 1 comment

Comments

@jonblower
Copy link
Member

jonblower commented Nov 14, 2021

E.g.:

  • A parameter object MUST NOT have a "unit" member if the "observedProperty" member has a "categories" member.
    • Perhaps this should be rewritten "can only have one of "unit" and "categoryEncoding""?
  • Check that category ids match the observed property ids
  • Check that values of categoryEncoding are all unique
  • Lots of stuff in axis - monotonic values, etc
@jonblower
Copy link
Member Author

jonblower commented Nov 14, 2021

Maybe we need different schemas for Parameters and observedProperties for continuous and categorical data? Can we use "oneOf" in the schema to capture this perhaps?

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