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

Imported schema constraints not working in the validate operation #174

Open
vpdesai21 opened this issue Jun 29, 2021 · 0 comments
Open

Imported schema constraints not working in the validate operation #174

vpdesai21 opened this issue Jun 29, 2021 · 0 comments

Comments

@vpdesai21
Copy link

I have a nested schema structure, where the imports are as follows

schema1 ----> schema2
schema2

I am using a custom authority loads all the schema in a given resource path in a jar.
The validation steps :

  1. Take input as <raw_data, schema_path> to validate against.
  2. Load the schema at the <schema_path> at runtime
  3. validate the <raw_data>

The validations do not return any violations in the <raw_data> corresponding to "schema2" that is imported in "schema1".
The constraints & violations in the "schema1" work fine.

Note - The validator mechanism in the example below uses default authority.

For eg.
schema1 - ClassRoom.isl
schema2 - Students.isl

Schema / Input Details -
https://gist.github.com/vpdesai21/bd80bb76d64aa394eac2bdbc58b70085

Constraint not working - https://gist.github.com/vpdesai21/bd80bb76d64aa394eac2bdbc58b70085#file-students-isl-L15

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