[elm] Add support for oneOf#4434
Conversation
|
👍 Thanks for opening this issue! The team will review the labels and make any necessary changes. |
37aecea to
5ea9761
Compare
And add additional test for composable types.
5ea9761 to
d505523
Compare
|
@wing328 What do you think of the new |
|
@eriktim looks good to me. We do have test spec for oneOf/anyOf/allOf under the same directory, e.g. https://github.com/OpenAPITools/openapi-generator/blob/d505523ae7e4771b69b0f344bc87b546b75ef6db/modules/openapi-generator/src/test/resources/3_0/oneOf.yaml Yours clearly cover more edge cases. |
…ulti-level-model-hierarchy * origin/master: minor fix to CI failure feat(dart-dio): correctly handle Map<String, Object>, List<Object> using JsonObject (OpenAPITools#4401) [OCAML] Fixes cloud.drone.io ocaml-test (OpenAPITools#4501) [elm] Add support for oneOf (OpenAPITools#4434) [BUG] [Java] Client resttemplate and webclient. Form Params are badly added when they are lists (OpenAPITools#4461) fix: prevent ClassCastException when handling options of (issue OpenAPITools#4468) (OpenAPITools#4495) Fixes Python client Configuration class so each instance uses its own dicts (OpenAPITools#4485)
|
@eriktim thanks for the PR, which has been included in the v4.2.2 release: https://twitter.com/oas_generator/status/1201432648544972800 |
PR checklist
./bin/(or Windows batch scripts under.\bin\windows) to update Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit, and these must match the expectations made by your contribution. You only need to run./bin/{LANG}-petstore.sh,./bin/openapi3/{LANG}-petstore.shif updating the code or mustache templates for a language ({LANG}) (e.g. php, ruby, python, etc).master,4.3.x,5.0.x. Default:master.The Elm generator already supported discriminators allowing for custom types. This PR adds support using
oneOffor this as well (both with and without discriminator). I also added a (reusable) spec file for testing with discriminators, allOf and oneOf.