mattpolzin / OpenAPIKit

Codable Swift OpenAPI implementation.
MIT License
280 stars 35 forks source link

Content type parse warning #242

Closed mattpolzin closed 2 years ago

mattpolzin commented 2 years ago

Fixes https://github.com/mattpolzin/OpenAPIKit/issues/238.

⚠️ Breaking Change ⚠️ This PR changes the externally available ContentType from an enum to a struct. Equality checks for all of the previous enum's cases will still work against new static constructors but switch statements will no longer be possible.