48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
openapi: 3.2.0
|
|
info:
|
|
title: OpenAPI 3.2 compatibility fixture
|
|
version: 0.1.0
|
|
servers:
|
|
- url: /
|
|
paths:
|
|
/probe:
|
|
get:
|
|
operationId: GetProbe
|
|
summary: Exercise OpenAPI 3.2 routing and input validation.
|
|
security: []
|
|
parameters:
|
|
- name: state
|
|
in: query
|
|
required: true
|
|
schema:
|
|
type: string
|
|
enum:
|
|
- allowed
|
|
responses:
|
|
"200":
|
|
description: The nullable value is generated with its validation type.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: "#/components/schemas/NullablePayload"
|
|
additionalOperations:
|
|
PURGE:
|
|
operationId: PurgeProbe
|
|
summary: Exercise the OpenAPI 3.2 additionalOperations field.
|
|
security: []
|
|
responses:
|
|
"204":
|
|
description: The compatibility fixture operation completed.
|
|
components:
|
|
schemas:
|
|
NullablePayload:
|
|
type: object
|
|
additionalProperties: false
|
|
required:
|
|
- value
|
|
properties:
|
|
value:
|
|
type:
|
|
- string
|
|
- "null"
|