Files
speakeasy-playground/openapi.yaml
Mike Lueders ce42d22be9 union array
2024-03-21 16:38:48 -05:00

37 lines
714 B
YAML

---
openapi: 3.0.0
info:
title: Example
version: '1'
description: ''
servers:
- url: https://example.com
paths:
"/example":
get:
operationId: Example
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ExampleWithOneOfArray'
responses:
'200':
description: example
components:
responses: {}
schemas:
ExampleWithOneOfArray:
type: object
properties:
one_of_array:
oneOf:
- type: array
items:
type: integer
- type: array
items:
type: string
required:
- one_of_array