martin-mfg b730e36937
[JAVA] fix several anyOf/oneOf problems (#19817)
* erasure duplicates

* sanitize beanValidation

* oneOf maps

* anyOf

* update samples
2024-10-10 14:50:18 +08:00

35 lines
643 B
YAML

openapi: 3.0.3
info:
title: dummy
version: 1.0.0
servers:
- url: /
paths:
/:
post:
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/__post_request'
responses:
"200":
description: OK
x-content-type: application/json
x-accepts:
- application/json
components:
schemas:
schemaA:
properties:
propA:
type: string
type: object
__post_request:
oneOf:
- $ref: '#/components/schemas/schemaA'
- additionalProperties: true
properties: {}
type: object