CenterEdge / Yardarm

OpenAPI 3 SDK Generator for C#
Apache License 2.0
44 stars 6 forks source link

Add IsTrimmable annotation #179

Closed brantburnett closed 1 year ago

brantburnett commented 1 year ago

Motivation

When trim-compatible constructs are used we should mark the generated assembly as trim-compatible.

Modifications

Automatically mark generated assemblies as trim compatible when:

For now, only the MicrosoftExtensionsHttp extension produces trim-compatible code.

Results

Assemblies produced without JSON serialization are trim-compatible. Further work will need to be done to make System.Text.Json compatible.

brantburnett commented 1 year ago

/merge