[JAVA] fix several anyOf/oneOf problems (#19817)

* erasure duplicates

* sanitize beanValidation

* oneOf maps

* anyOf

* update samples
This commit is contained in:
martin-mfg
2024-10-10 08:50:18 +02:00
committed by GitHub
parent 43fd18935c
commit b730e36937
137 changed files with 10072 additions and 121 deletions

View File

@@ -0,0 +1,33 @@
openapi: 3.0.3
info:
title: oneOf with array inside
version: 1.0.0
servers:
- url: /
paths:
/myExample:
get:
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/_myExample_get_200_response'
description: Response
x-accepts:
- application/json
components:
schemas:
OneOf1:
example:
message1: message1
properties:
message1:
type: string
type: object
_myExample_get_200_response:
oneOf:
- items:
$ref: '#/components/schemas/OneOf1'
type: array