CenterEdge / Yardarm

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

Use strong typing for header serialization #152

Closed brantburnett closed 2 years ago

brantburnett commented 2 years ago

Motivation

Eliminate the use of reflection when serializing and deserializing headers.

Modifications

Split header serialization into Primitive and List methods and call the correct method based on the schema type rather than determining at runtime using reflection.

Results

Compatibility is the same, but performance and trimming should be better. Still doesn't support object serialization at this time.

brantburnett commented 2 years ago

/merge

brantburnett commented 2 years ago

/merge