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

Create schema specific to the version to validate #2818

Open
flo-dup opened this issue Dec 4, 2023 · 0 comments
Open

Create schema specific to the version to validate #2818

flo-dup opened this issue Dec 4, 2023 · 0 comments

Comments

@flo-dup
Copy link
Contributor

flo-dup commented Dec 4, 2023

Describe the current behavior

We use Suppliers.memoize to construct a Schema to validate a file against any iidm version

Describe the expected behavior

We use Suppliers.memoize with a map to construct a Schema to validate a file against a specific iidm version.

Describe the motivation

In the unit tests we know against which version the file should be validated, so there's no need to load all the schema for validating against a specific version.

A user might also need to check the file he's using is validating a specific version xsd.

With such a map we also reduce the memory cost of Suppliers.memoize, as only the validated versions would be loaded.

Extra Information

No response

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