Skip to content

⬆️ integrate upstream generator fixes - #2

Merged
igotinfected merged 106 commits into
masterfrom
chore/integrate-upstream-generator
Oct 3, 2026
Merged

igotinfected merged 106 commits into
masterfrom
chore/integrate-upstream-generator

Conversation

@igotinfected

@igotinfected igotinfected commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Integrate upstream mganss/XmlSchemaClassGenerator through a75f225, including the NeTEx substitution fixes. Some generated properties disappear because they mapped abstract elements, unrelated substitutes, or duplicate XML names.

Changes

Resolved the conflicts while retaining the fork's choice analyzer, fixed-value APIs, token-list collections, and scalar default presence tracking. Fixed upstream traversal through abstract substitution members so concrete descendants remain available, and preserved object defaults when scalar tracking is enabled.

Added UseLegacyMixedTextPropertyName so Transmodel can retain its existing Text properties. Corrected strict decimal bounds because fractionDigits limits scale rather than reducing the magnitude allowed by totalDigits.

Includes upstream dependency updates, schema fixtures, anonymous enum lists, and opt-in metadata attributes. The generated API removals need a separate breaking Transmodel release.

Transmodel package integration: Transmodel #74.

Validation

All 767 generator tests and 41 analyzer tests pass. New regressions failed before the fixes. Regenerated all 11 Transmodel schema projects with a candidate package, built with zero warnings or errors, and passed all 191 consumer tests.

This PR was generated with gpt-6-astra in Codex via T3 Code.

riccardofrancesconi and others added 30 commits February 11, 2026 18:53
Introduce emission of a custom FractionDigitsAttribute for properties with XSD <xs:fractionDigits> restrictions. Add a --metadataNamespace option to control the namespace for generated metadata helpers (default: XmlSchemaClassGenerator.Metadata). Implement a MetadataHelperEmitter to ensure helpers are generated only when needed. Refactor restriction attribute emission to use a registry, and update tests to verify correct behavior and namespace usage.
Introduce MetadataEmissionMode option (None/Enabled) to control whether metadata helper types (e.g., custom attributes) are emitted in generated code. Update CLI to support --metadataEmissionMode, propagate the setting through Generator and GeneratorConfiguration, and ensure emitters respect the mode. Refactor and update tests to verify correct behavior for both enabled and disabled modes.
…gitsDataAnnotationInGeneratedModels

Add support for custom FractionDigitsAttribute
Add regression test to ensure generated EnumValue uses the generic Enum.TryParse<T> method, compatible with .NET Framework 4.0 and .NET Standard 2.0. Update code generation logic to avoid .NET 5+ only overloads and return the enum result directly, improving cross-framework compatibility.
…rse-net48-compat

Fix: use generic Enum.TryParse<> for EnumValue property (net48 / netstandard2.x compat)
…value-as-name

Reference backing fields called "value" using "this.value"
Expanded the list of valid types for the --integer option in the README.
---
updated-dependencies:
- dependency-name: coverlet.msbuild
  dependency-version: 10.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
---
updated-dependencies:
- dependency-name: Microsoft.CodeAnalysis.CSharp
  dependency-version: 5.3.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
…lassGenerator.Tests/coverlet.msbuild-10.0.0

Bump coverlet.msbuild from 6.0.4 to 10.0.0
…lassGenerator.Tests/Microsoft.CodeAnalysis.CSharp-5.3.0

Bump Microsoft.CodeAnalysis.CSharp from 4.14.0 to 5.3.0
mganss and others added 27 commits July 20, 2026 17:26
…tion-item-string-length

Emit CollectionItemStringLengthAttribute for restricted string collections
---
updated-dependencies:
- dependency-name: Microsoft.SourceLink.GitHub
  dependency-version: 10.0.400
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: Microsoft.SourceLink.GitHub
  dependency-version: 10.0.400
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: Microsoft.SourceLink.GitHub
  dependency-version: 10.0.400
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: Microsoft.SourceLink.GitHub
  dependency-version: 10.0.400
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
---
updated-dependencies:
- dependency-name: System.CodeDom
  dependency-version: 10.0.11
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…enerator/multi-2fd80f2cb3

Bump Microsoft.SourceLink.GitHub from 10.0.301 to 10.0.400
…lassGenerator.Tests/System.CodeDom-10.0.11

Bump System.CodeDom from 10.0.10 to 10.0.11
---
updated-dependencies:
- dependency-name: System.Collections.Immutable
  dependency-version: 10.0.11
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…lassGenerator/System.Collections.Immutable-10.0.11

Bump System.Collections.Immutable from 10.0.10 to 10.0.11
---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-version: 18.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
---
updated-dependencies:
- dependency-name: xunit.runner.visualstudio
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
…lassGenerator.Tests/Microsoft.NET.Test.Sdk-18.9.0

Bump Microsoft.NET.Test.Sdk from 18.8.1 to 18.9.0
…lassGenerator.Tests/xunit.runner.visualstudio-4.0.0

Bump xunit.runner.visualstudio from 3.1.5 to 4.0.0
---
updated-dependencies:
- dependency-name: Microsoft.CodeAnalysis.CSharp
  dependency-version: 5.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…lassGenerator.Tests/Microsoft.CodeAnalysis.CSharp-5.9.0

Bump Microsoft.CodeAnalysis.CSharp from 5.6.0 to 5.9.0
---
updated-dependencies:
- dependency-name: Microsoft.SourceLink.GitHub
  dependency-version: 10.0.401
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: Microsoft.SourceLink.GitHub
  dependency-version: 10.0.401
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: Microsoft.SourceLink.GitHub
  dependency-version: 10.0.401
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: Microsoft.SourceLink.GitHub
  dependency-version: 10.0.401
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
---
updated-dependencies:
- dependency-name: System.CodeDom
  dependency-version: 10.0.12
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…enerator/multi-f33e791ab4

Bump Microsoft.SourceLink.GitHub from 10.0.400 to 10.0.401
…lassGenerator.Tests/System.CodeDom-10.0.12

Bump System.CodeDom from 10.0.11 to 10.0.12
---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-version: 18.10.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…lassGenerator.Tests/Microsoft.NET.Test.Sdk-18.10.1

Bump Microsoft.NET.Test.Sdk from 18.10.0 to 18.10.1
---
updated-dependencies:
- dependency-name: coverlet.msbuild
  dependency-version: 10.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…lassGenerator.Tests/coverlet.msbuild-10.1.0

Bump coverlet.msbuild from 10.0.1 to 10.1.0
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

Successfully merging this pull request may close these issues.

6 participants