2025-06-02 15:33:27 +08:00

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