Files
openapi-generator/samples/client/petstore/java/jersey3-oneOf/api/openapi.yaml
2025-06-02 15:33:27 +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