steamclock / netable

A Swift library for encapsulating network APIs using Codable in a type-oriented way.
MIT License
99 stars 3 forks source link

Changed Request encoding/decoding to non-optional with default param #109

Closed amyoulton closed 1 year ago

amyoulton commented 1 year ago

I went ahead and changed both the jsonKeyDecodingStrategy and jsonKeyEncodingStrategy, making both use the default KeyDecodingStrategy, which is .useDefaultKeys, as specified in the Foundation docs!

I tested it on the old project and everything builds and decodes correctly.