You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feel free to experiment, @brice-laurencin. I'm curious about this use case since it's somewhat common. In my experience, usually the server would change the API to a new version e.g. /v2/petstore, then new clients can use this new endpoint and interface.
Changing the main version to not be compatible smells and it's an anti-pattern. So I'm not sure how much resources we should spend on this.
If the server evolves and adds (or, God forbid, deletes) entries in an enum, the client will likely fail hard.
It'd be interesting to add a default
UNEXPECTED
value in all the generated enum, this one being the default value when parsing fails.I can try to cook a PR for this, if you think that's a sensible idea.
The text was updated successfully, but these errors were encountered: