Skip to content

Commit

Permalink
test: add regression test spec
Browse files Browse the repository at this point in the history
  • Loading branch information
tdakkota committed Feb 19, 2024
1 parent 63511a0 commit 6383038
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions _testdata/positive/issue1182.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
openapi: 3.0.1
info:
title: "REST API"
version: 0.0.1

servers:
- url: "http://localhost:8888"

paths:
/api/auth:
post:
operationId: auth
tags:
- auth
responses:
"200":
$ref: "#/components/responses/AuthOk"
/api/alive:
get:
operationId: alive
tags:
- system
responses:
"200":
$ref: "#/components/responses/Alive"

components:
headers:
setCookie:
required: true
schema:
type: string
accessControlAllowCredentials:
required: false
schema:
type: string

schemas:
Ok:
type: object
required:
- ok
properties:
ok:
type: boolean
example: true

responses:
AuthOk:
description: "Ok"
headers:
Set-Cookie:
$ref: "#/components/headers/setCookie"
content:
application/json:
schema:
$ref: "#/components/schemas/Ok"
Alive:
description: "Alive"
headers:
Access-Control-Allow-Credentials:
$ref: "#/components/headers/accessControlAllowCredentials"
content:
application/json:
schema:
$ref: "#/components/schemas/Ok"

0 comments on commit 6383038

Please sign in to comment.