mganss / XmlSchemaClassGenerator

Generate C# classes from XML Schema files
Apache License 2.0
603 stars 180 forks source link

Allow disabling of merging restrictions with base in configuration #528

Closed mingyaulee closed 2 months ago

mingyaulee commented 2 months ago

v2.1.954 has been a breaking change due to the merging of restrictions in 4539c1e3e4443d977023bc85858608d81f2db12c.

As a result, properties with numeric restrictions were previously generated as string and now generated as numeric types (byte/ushort/uint/int/long/etc.). This configuration allows projects to update to the latest version gradually with the ability to opt-out from the new behaviour temporarily.

With the configuration, projects using the package can update to the latest version in 2 parts, one with only changes to comments and attributes, and after that with only changes in the generated property types.

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 40.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 94.08%. Comparing base (4120626) to head (fc1028a). Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
XmlSchemaClassGenerator/Generator.cs 0.00% 2 Missing :warning:
XmlSchemaClassGenerator/ModelBuilder.cs 0.00% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #528 +/- ## ========================================== - Coverage 94.17% 94.08% -0.09% ========================================== Files 21 21 Lines 3159 3164 +5 Branches 495 496 +1 ========================================== + Hits 2975 2977 +2 - Misses 120 122 +2 - Partials 64 65 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.