forked from loafle/openapi-generator-original
35 lines
643 B
YAML
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
|
|
|