Skip to content

Create schema specific to the version to validate#3801

Open
samirromdhani wants to merge 12 commits intomainfrom
feat/2818-create-schema-specific-to-the-version-to-validate
Open

Create schema specific to the version to validate#3801
samirromdhani wants to merge 12 commits intomainfrom
feat/2818-create-schema-specific-to-the-version-to-validate

Conversation

@samirromdhani
Copy link
Contributor

@samirromdhani samirromdhani commented Mar 2, 2026

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • A PR or issue has been opened in all impacted repositories (if any)

Does this PR already have an issue describing the problem?

Fixes #2818

What kind of change does this PR introduce?

What is the current behavior?

What is the new behavior (if this is a feature change)?

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

If yes, please check if the following requirements are fulfilled

  • The Breaking Change or Deprecated label has been added
  • The migration steps are described in the following section

What changes might users need to make in their application due to this PR? (migration steps)

Other information:

  • Some extension XSD files reference IIDM XSD files from other versions (xs:import + schemaLocation), which can impact schema resolution . To handle this, extractSchemaLocations and getSupportedExtensionsByIIdmVersion were added.
  • To make version validation strict, we verify the root namespace first, then run XSD validation, this is handled by readRootNamespace and checkNamespace

@samirromdhani samirromdhani force-pushed the feat/2818-create-schema-specific-to-the-version-to-validate branch 3 times, most recently from 33132c3 to 65f0051 Compare March 3, 2026 16:10
@samirromdhani samirromdhani self-assigned this Mar 3, 2026
@samirromdhani samirromdhani changed the title WIP Create schema specific to the version to validate Create schema specific to the version to validate Mar 3, 2026
@samirromdhani samirromdhani force-pushed the feat/2818-create-schema-specific-to-the-version-to-validate branch from c76619e to a2cfa27 Compare March 4, 2026 10:03
@samirromdhani samirromdhani marked this pull request as ready for review March 4, 2026 10:29
@samirromdhani samirromdhani marked this pull request as draft March 4, 2026 10:52
@samirromdhani samirromdhani marked this pull request as ready for review March 4, 2026 10:57
@samirromdhani samirromdhani force-pushed the feat/2818-create-schema-specific-to-the-version-to-validate branch from ccfe442 to b356226 Compare March 4, 2026 12:32
@samirromdhani samirromdhani requested review from olperr1 and rolnico March 4, 2026 12:33
@samirromdhani samirromdhani force-pushed the feat/2818-create-schema-specific-to-the-version-to-validate branch from b356226 to fe0aa21 Compare March 4, 2026 12:46
@samirromdhani samirromdhani marked this pull request as draft March 5, 2026 08:23
@samirromdhani samirromdhani force-pushed the feat/2818-create-schema-specific-to-the-version-to-validate branch 2 times, most recently from fdea43a to 0180fc2 Compare March 5, 2026 16:14
@samirromdhani samirromdhani marked this pull request as ready for review March 5, 2026 16:15
@samirromdhani samirromdhani marked this pull request as draft March 6, 2026 08:27
@samirromdhani samirromdhani force-pushed the feat/2818-create-schema-specific-to-the-version-to-validate branch 11 times, most recently from f4d0545 to e44b19b Compare March 9, 2026 10:45
@samirromdhani samirromdhani force-pushed the feat/2818-create-schema-specific-to-the-version-to-validate branch from e44b19b to 59d72cb Compare March 9, 2026 13:35
@samirromdhani samirromdhani force-pushed the feat/2818-create-schema-specific-to-the-version-to-validate branch from 59d72cb to 5dce9ad Compare March 9, 2026 14:06
Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>

validate specific version WIP

Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>
Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>
Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>
Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>
Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>
Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>
Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>
Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>
…eation in XmlUtil

Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>

review: centralize SchemaFactory creation in XmlUtil

Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>
…schema cache

Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>
Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>

fixes sonar
Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>
@samirromdhani samirromdhani force-pushed the feat/2818-create-schema-specific-to-the-version-to-validate branch from 5dce9ad to c4dafdb Compare March 9, 2026 14:21
@samirromdhani samirromdhani marked this pull request as ready for review March 9, 2026 14:24
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 9, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create schema specific to the version to validate

1 participant