mirror of
https://github.com/LukeHagar/speakeasy-playground.git
synced 2025-12-09 12:47:46 +00:00
37 lines
714 B
YAML
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
|