Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix empty additionalProperties dictionary encoding (#103)
### Motivation Fixes apple/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.
- Loading branch information