You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Motivation
Fixesapple/swift-openapi-generator#525.
Turns out that the mere act of creating a decoding container is
meaningful and we skipped it as an optimization, causing JSONDecoder to
fail for empty dictionaries when used in additional properties.
### Modifications
Remove the extra guards that skipped creating a container, even when we
already know there are no elements.
### Result
No more failures when encoding empty dictionaries in
additionalProperties.
### Test Plan
Tested manually as this requirement seems to be coming out of
JSONDecoder.
0 commit comments