Work towards supporting a general purpose warning system (alternative to throwing errors while decoding if something is recoverable).
Implement such a warning for when a content type cannot be parsed as "{type}/{subtype}".
⚠️ 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.
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.