Skip to content

Commit 436b08a

Browse files
committed
Added test file
1 parent a26279f commit 436b08a

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
openapi: "3.0.0"
2+
info:
3+
version: 1.0.0
4+
title: Swagger Petstore
5+
license:
6+
name: MIT
7+
servers:
8+
- url: http://petstore.swagger.io/v1
9+
paths:
10+
/pets:
11+
get:
12+
summary: List all pets
13+
operationId: listPets
14+
tags:
15+
- pets
16+
responses:
17+
'200':
18+
description: An paged array of pets
19+
headers:
20+
x-next:
21+
description: A link to the next page of responses
22+
schema:
23+
type: string
24+
content:
25+
application/json:
26+
schema:
27+
$ref: "#/components/schemas/StatusSEP24Test"
28+
default:
29+
description: unexpected error
30+
content:
31+
application/json:
32+
schema:
33+
$ref: "#/components/schemas/Error"
34+
components:
35+
schemas:
36+
StatusSEPGeneric:
37+
type: string
38+
description: Statuses common for all SEP transactions
39+
enum:
40+
- incomplete
41+
- completed
42+
- refunded
43+
StatusSEP24Test:
44+
description: Possible status value for SEP-24 transactions
45+
properties:
46+
status:
47+
allOf:
48+
- $ref: '#/components/schemas/StatusSEPGeneric'
49+
- type: string
50+
description: Unique SEP-24 statuses
51+
enum:
52+
- no_market
53+
- too_small
54+
- too_large
55+
Error:
56+
required:
57+
- code
58+
- message
59+
properties:
60+
code:
61+
type: integer
62+
format: int32
63+
message:
64+
type: string

0 commit comments

Comments
 (0)