Usage - openapi generator
openapi-generator.tech › docs › usageusage: openapi-generator-cli <command> [<args>] The most commonly used openapi-generator-cli commands are: author Utilities for authoring generators or customizing templates. batch Generate code in batch via external configs. config-help Config help for chosen lang. generate Generate code with the specified generator.
Using the OpenAPI discriminator - Redocly
redoc.ly › docs › resourcesUsing the OpenAPI discriminator When an API can return two or more different types of objects (aka polymorphism), use oneOf or anyOf to describe those schemas (a JSON Schema concept). You might also want to use the discriminator (an OpenAPI concept). But why? And how? oneOf vs. anyOf