Skip to content

Commit 9a25292

Browse files
committed
test: fixup bb342ad (missing to add for git)
1 parent bb342ad commit 9a25292

File tree

2 files changed

+224
-0
lines changed

2 files changed

+224
-0
lines changed

test/remote.ref.access/v0.yml

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
openapi: 3.1.0
2+
info:
3+
version: 1.0.0
4+
title: v0.remote.ref.access.test
5+
description: Library test schema
6+
license:
7+
name: MIT
8+
9+
servers:
10+
- url: "http://dev.remote.ref.access.test/v0/"
11+
description: Development Environment
12+
- url: "https://ref,remote.access.test/v0/"
13+
description: Production Environment
14+
15+
tags:
16+
- name: test
17+
18+
components:
19+
schemas:
20+
Book:
21+
type: object
22+
required:
23+
- metadata
24+
properties:
25+
author:
26+
type: object
27+
properties:
28+
name:
29+
type: string
30+
age:
31+
type: string
32+
publisher:
33+
type: object
34+
properties:
35+
name:
36+
type: String
37+
address:
38+
type: string
39+
metadata:
40+
type: object
41+
required:
42+
- description
43+
properties:
44+
description:
45+
type: string
46+
Author:
47+
$ref: "#/components/schemas/Book/properties/author"
48+
Publisher:
49+
$ref: "#/components/schemas/Book/properties/publisher"
50+
51+
paths:
52+
/get/book/{id}:
53+
parameters:
54+
- name: id
55+
in: path
56+
required: true
57+
description: Book ID
58+
schema:
59+
type: string
60+
format: uuid
61+
get:
62+
operationId: getBook
63+
responses:
64+
200:
65+
description: Get Books
66+
content:
67+
application/json:
68+
schema:
69+
$ref: "#/components/schemas/Book"
70+
/get/book/{id}/description:
71+
parameters:
72+
- name: id
73+
in: path
74+
required: true
75+
description: Book ID
76+
schema:
77+
type: string
78+
format: uuid
79+
get:
80+
operationId: getDescription
81+
responses:
82+
200:
83+
description: Get Book Description
84+
content:
85+
application/json:
86+
schema:
87+
$ref: "#/components/schemas/Book/properties/metadata/properties/description"
88+
89+
/get/author/{id}:
90+
parameters:
91+
- name: id
92+
in: path
93+
required: true
94+
description: Author Id
95+
schema:
96+
type: string
97+
format: uuid
98+
get:
99+
operationId: getAuthor
100+
responses:
101+
200:
102+
description: Get Author
103+
content:
104+
application/json:
105+
schema:
106+
$ref: "#/components/schemas/Book/properties/author"
107+
/get/publisher/{id}:
108+
parameters:
109+
- name: id
110+
in: path
111+
required: true
112+
description: Publisher ID
113+
schema:
114+
type: string
115+
format: uuid
116+
get:
117+
operationId: getPublisher
118+
responses:
119+
200:
120+
description: Get Publisher
121+
content:
122+
application/json:
123+
schema:
124+
$ref: "#/components/schemas/Publisher"

test/remote.ref.access/v1.yml

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
openapi: 3.1.0
2+
info:
3+
version: 1.0.0
4+
title: v1.remote.ref.access.test
5+
description: Library test schema
6+
license:
7+
name: MIT
8+
9+
servers:
10+
- url: "http://dev.remote.ref.access.test/v1/"
11+
description: Development Environment
12+
- url: "https://ref,remote.access.test/v1/"
13+
description: Production Environment
14+
15+
tags:
16+
- name: test
17+
18+
components:
19+
schemas:
20+
Book:
21+
$ref: "v0.yml#/components/schemas/Book"
22+
Author:
23+
$ref: "v0.yml#/components/schemas/Book/properties/author"
24+
Publisher:
25+
$ref: "v0.yml#/components/schemas/Book/properties/publisher"
26+
27+
paths:
28+
/get/book/{id}:
29+
parameters:
30+
- name: id
31+
in: path
32+
required: true
33+
description: Book ID
34+
schema:
35+
type: string
36+
format: uuid
37+
get:
38+
operationId: getBook
39+
responses:
40+
200:
41+
description: Get Books
42+
content:
43+
application/json:
44+
schema:
45+
$ref: "#/components/schemas/Book"
46+
/get/book/{id}/description:
47+
parameters:
48+
- name: id
49+
in: path
50+
required: true
51+
description: Book ID
52+
schema:
53+
type: string
54+
format: uuid
55+
get:
56+
operationId: getDescription
57+
responses:
58+
200:
59+
description: Get Book Description
60+
content:
61+
application/json:
62+
schema:
63+
$ref: "v0.yml#/components/schemas/Book/properties/metadata/properties/description"
64+
65+
/get/author/{id}:
66+
parameters:
67+
- name: id
68+
in: path
69+
required: true
70+
description: Author Id
71+
schema:
72+
type: string
73+
format: uuid
74+
get:
75+
operationId: getAuthor
76+
responses:
77+
200:
78+
description: Get Author
79+
content:
80+
application/json:
81+
schema:
82+
$ref: "#/components/schemas/Author"
83+
/get/publisher/{id}:
84+
parameters:
85+
- name: id
86+
in: path
87+
required: true
88+
description: Publisher ID
89+
schema:
90+
type: string
91+
format: uuid
92+
get:
93+
operationId: getPublisher
94+
responses:
95+
200:
96+
description: Get Publisher
97+
content:
98+
application/json:
99+
schema:
100+
$ref: "#/components/schemas/Publisher"

0 commit comments

Comments
 (0)