mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-30 21:40:52 +00:00
* Add java-jersey2 sample with mixed oneOf * [java][jersey2]Fix client generation if oneOf contains an array type Changes: * Change jersey2/oneof_model template to use composed schema data * Change adding of imports in AbstractJavaCodegen to use composed schema data * Add escapedDataType property to CodegenProperty so that the data type may be part of identifiers (e.g. in getters) * Update samples * Add sample for multiple array in oneOf * Fix generation of constructors with same erasures * Update samples again * Version bump * Add new sample folders to CI * Make primitive handling more explicit * Replace escapedDataType property with Mustache lambda * Update samples with new primitive handling and sanitization lambda
33 lines
583 B
YAML
33 lines
583 B
YAML
openapi: 3.0.1
|
|
info:
|
|
license:
|
|
name: MIT
|
|
title: Example - oneOf data type
|
|
version: 1.0.0
|
|
servers:
|
|
- url: http://api.example.xyz/v1
|
|
paths:
|
|
/example:
|
|
get:
|
|
operationId: list
|
|
responses:
|
|
"200":
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/Example'
|
|
description: OK
|
|
x-accepts:
|
|
- application/json
|
|
components:
|
|
schemas:
|
|
Example:
|
|
oneOf:
|
|
- items:
|
|
type: number
|
|
type: array
|
|
- items:
|
|
type: integer
|
|
type: array
|
|
|