Skip to content

Commit

Permalink
v30x/parameter - complex formatting unit test data
Browse files Browse the repository at this point in the history
  • Loading branch information
commonism committed Sep 22, 2023
1 parent 7778441 commit ec8a583
Showing 1 changed file with 71 additions and 0 deletions.
71 changes: 71 additions & 0 deletions tests/fixtures/paths-parameter-format-complex.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
openapi: 3.0.3
info:
title: ''
version: 0.0.0
servers:
- url: http://127.0.0.1/api

security:
- {}

paths:
/form/query:
get:
operationId: FormQuery
parameters:
- $ref: "#/components/parameters/EmptyFormQuery"

responses: &resp
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Test'
headers:
head:
$ref: "#/components/headers/ArraySimpleHeader"
description: ''




components:
schemas:
Test:
type: string
enum:
- test

headers:
ArraySimpleHeader:
schema:
type: array
items:
type: string
style: simple
explode: false

parameters:
EmptyFormQuery:
in: query
name: empty
required: true
content:
"application/json":
schema:
type: number
encoding:
"*":
style: form
explode: false
headers:
X-hrm:
description: hrm header
content:
"*":
schema:
type: string
format: date-time
encoding:
"application/x-www-form-urlencoded":
style: form

0 comments on commit ec8a583

Please sign in to comment.