The OpenAPI Generator, by default, throws an error if enum type data is received from the server that is not defined in the spec. In theory, the spec should always match what the server returns but in some cases there are unexpected values (new enum values not introduced in client, old enum values no longer in use, etc., bugs).
To work around this, we'll gracefully handle unsupported values by converting them to nil in the client, rather than throwing an error.
The OpenAPI Generator, by default, throws an error if enum type data is received from the server that is not defined in the spec. In theory, the spec should always match what the server returns but in some cases there are unexpected values (new enum values not introduced in client, old enum values no longer in use, etc., bugs).
To work around this, we'll gracefully handle unsupported values by converting them to
nil
in the client, rather than throwing an error.Fixes #81