mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-10-16 09:23:56 +00:00
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
|
|
|