mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 19:08:52 +00:00
2c342cc2b4
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> |
||
---|---|---|
.. | ||
openapi-generator | ||
openapi-generator-cli | ||
openapi-generator-core | ||
openapi-generator-gradle-plugin | ||
openapi-generator-maven-plugin | ||
openapi-generator-online |