openapi-generator/modules
Kevin Locke 2c342cc2b4 [Java] Handle discriminator mapping non-ref name (#3247)
The `mapping` property of the [Discriminator Object] is "An object to
hold mappings between payload values and schema names or references."
The subsequent examples in the spec have `mapping`s of both types.
The `mapping` support introduced in #536 only supports references.

Update the code to support names (identified by lack of `/`) or
references and change a test mapping to cover this case.

[Discriminator Object]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#discriminatorObject

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2019-07-04 15:24:47 +08:00
..
openapi-generator [Java] Handle discriminator mapping non-ref name (#3247) 2019-07-04 15:24:47 +08:00
openapi-generator-cli Release versioning helper script(s) (#3110) 2019-06-24 18:22:10 -04:00
openapi-generator-core [core] Initial implementation of a validation framework in core (#3183) 2019-06-24 18:24:50 -04:00
openapi-generator-gradle-plugin Release versioning helper script(s) (#3110) 2019-06-24 18:22:10 -04:00
openapi-generator-maven-plugin Release versioning helper script(s) (#3110) 2019-06-24 18:22:10 -04:00
openapi-generator-online [online] Honor generator environment variable and system property (#3265) 2019-07-02 13:07:17 -04:00