Im generating a OpenAPISpec in code then encode it using Yams which preserves the order in which keys are encoded.
Since the order of keys of a Swift.Dictionary is not stable the generated api-spec always has some small diffs (the mapping of the discriminator is reordered)
Hi 👋
Thank you for creating this library!
Im generating a OpenAPISpec in code then encode it using
Yams
which preserves the order in which keys are encoded.Since the order of keys of a
Swift.Dictionary
is not stable the generated api-spec always has some small diffs (the mapping of the discriminator is reordered)This addresses this by using a
OrderedDictionary