yonaskolb / SwagGen

OpenAPI/Swagger 3.0 Parser and Swift code generator
MIT License
627 stars 147 forks source link

Undecodable (unknown) enum case option (135) #141

Closed Kastet closed 5 years ago

Kastet commented 5 years ago

This PR implements the unknown enum case proposal (135).

Kastet commented 5 years ago

@yonaskolb can you please have a look?

yonaskolb commented 5 years ago

Nice, thanks @Kastet! At the moment it just seems to handle oneOf or allOf types. What about when regular string enums fail?

Kastet commented 5 years ago

Good catch!

yonaskolb commented 5 years ago

Cool, if you can add a changelog entry we can get this merged

yonaskolb commented 5 years ago

Released in 4.1

Kastet commented 5 years ago

Thanks! I was away from laptop the whole weekend 👍