Skip to content

Allow consumers to skip generated YAML serializers#13

Merged
penspanic merged 1 commit into
mainfrom
datra-client-yaml-optional
Jul 9, 2026
Merged

Allow consumers to skip generated YAML serializers#13
penspanic merged 1 commit into
mainfrom
datra-client-yaml-optional

Conversation

@penspanic

Copy link
Copy Markdown
Owner

Summary

  • add a DatraEmitYamlSerializers MSBuild property for the source generator
  • keep YAML serializer generation enabled by default for compatibility
  • allow clients that only load bundled JSON data to avoid generated YamlDotNet references
  • cover default and opt-out behavior with generator unit tests

Tests

  • dotnet test Datra.Tests/Datra.Tests.csproj -c Release --nologo --filter DataModelGeneratorTests
  • dotnet test Datra.Tests/Datra.Tests.csproj -c Release --nologo
  • dotnet build Datra.sln -c Release --nologo

@penspanic
penspanic merged commit 13df6bc into main Jul 9, 2026
1 check passed
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.

1 participant