Skip to content

Commit 223435e

Browse files
committed
Reformat all input openapi files to match format of output openapi files
1 parent 73f016b commit 223435e

File tree

5 files changed

+40
-55
lines changed

5 files changed

+40
-55
lines changed

compliant-sets/add-a-license/openapi.yaml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
openapi: "3.1.0"
1+
openapi: 3.1.0
22
info:
33
version: 1.0.0
44
title: Imaginary town
55
servers:
6-
- url: https://example.com
6+
- url: 'https://example.com'
77
description: Example server
88
paths:
9-
'/buildings':
9+
/buildings:
1010
get:
1111
summary: All buildings
1212
operationId: buildingsList
@@ -18,8 +18,7 @@ paths:
1818
schema:
1919
type: array
2020
items:
21-
$ref: "#/components/schemas/Building"
22-
21+
$ref: '#/components/schemas/Building'
2322
'/buildings/{buildingId}':
2423
get:
2524
summary: Specific building
@@ -37,9 +36,8 @@ paths:
3736
content:
3837
application/json:
3938
schema:
40-
$ref: "#/components/schemas/Building"
41-
42-
'/locations':
39+
$ref: '#/components/schemas/Building'
40+
/locations:
4341
get:
4442
summary: All locations
4543
operationId: locationList
@@ -58,16 +56,15 @@ paths:
5856
example: 44
5957
name:
6058
type: string
61-
example: "North Village"
62-
59+
example: North Village
6360
components:
6461
schemas:
6562
Building:
6663
type: object
6764
properties:
6865
building:
6966
type: string
70-
example: "house"
67+
example: house
7168
location_id:
7269
type: integer
7370
example: 44

compliant-sets/description-and-summary/openapi.yaml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
openapi: "3.1.0"
1+
openapi: 3.1.0
22
info:
33
version: 1.0.0
44
title: Imaginary town
55
servers:
6-
- url: https://example.com
6+
- url: 'https://example.com'
77
description: Example server
88
paths:
9-
'/buildings':
9+
/buildings:
1010
get:
1111
summary: All buildings
1212
operationId: buildingsList
@@ -18,8 +18,7 @@ paths:
1818
schema:
1919
type: array
2020
items:
21-
$ref: "#/components/schemas/Building"
22-
21+
$ref: '#/components/schemas/Building'
2322
'/buildings/{buildingId}':
2423
get:
2524
summary: Specific building
@@ -37,9 +36,8 @@ paths:
3736
content:
3837
application/json:
3938
schema:
40-
$ref: "#/components/schemas/Building"
41-
42-
'/locations':
39+
$ref: '#/components/schemas/Building'
40+
/locations:
4341
get:
4442
summary: All locations
4543
operationId: locationList
@@ -58,16 +56,15 @@ paths:
5856
example: 44
5957
name:
6058
type: string
61-
example: "North Village"
62-
59+
example: North Village
6360
components:
6461
schemas:
6562
Building:
6663
type: object
6764
properties:
6865
building:
6966
type: string
70-
example: "house"
67+
example: house
7168
location_id:
7269
type: integer
7370
example: 44

compliant-sets/remove-example/openapi.yaml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
openapi: "3.1.0"
1+
openapi: 3.1.0
22
info:
33
version: 1.0.0
44
title: Imaginary town
55
servers:
6-
- url: https://example.com
6+
- url: 'https://example.com'
77
description: Example server
88
paths:
9-
'/buildings':
9+
/buildings:
1010
get:
1111
summary: All buildings
1212
operationId: buildingsList
@@ -18,8 +18,7 @@ paths:
1818
schema:
1919
type: array
2020
items:
21-
$ref: "#/components/schemas/Building"
22-
21+
$ref: '#/components/schemas/Building'
2322
'/buildings/{buildingId}':
2423
get:
2524
summary: Specific building
@@ -37,9 +36,8 @@ paths:
3736
content:
3837
application/json:
3938
schema:
40-
$ref: "#/components/schemas/Building"
41-
42-
'/locations':
39+
$ref: '#/components/schemas/Building'
40+
/locations:
4341
get:
4442
summary: All locations
4543
operationId: locationList
@@ -58,16 +56,15 @@ paths:
5856
example: 44
5957
name:
6058
type: string
61-
example: "North Village"
62-
59+
example: North Village
6360
components:
6461
schemas:
6562
Building:
6663
type: object
6764
properties:
6865
building:
6966
type: string
70-
example: "house"
67+
example: house
7168
location_id:
7269
type: integer
7370
example: 44

compliant-sets/remove-property/openapi.yaml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
openapi: "3.1.0"
1+
openapi: 3.1.0
22
info:
33
version: 1.0.0
44
title: Imaginary town
55
servers:
6-
- url: https://example.com
6+
- url: 'https://example.com'
77
description: Example server
88
paths:
9-
'/buildings':
9+
/buildings:
1010
get:
1111
summary: All buildings
1212
operationId: buildingsList
@@ -18,8 +18,7 @@ paths:
1818
schema:
1919
type: array
2020
items:
21-
$ref: "#/components/schemas/Building"
22-
21+
$ref: '#/components/schemas/Building'
2322
'/buildings/{buildingId}':
2423
get:
2524
summary: Specific building
@@ -37,9 +36,8 @@ paths:
3736
content:
3837
application/json:
3938
schema:
40-
$ref: "#/components/schemas/Building"
41-
42-
'/locations':
39+
$ref: '#/components/schemas/Building'
40+
/locations:
4341
get:
4442
summary: All locations
4543
operationId: locationList
@@ -58,16 +56,15 @@ paths:
5856
example: 44
5957
name:
6058
type: string
61-
example: "North Village"
62-
59+
example: North Village
6360
components:
6461
schemas:
6562
Building:
6663
type: object
6764
properties:
6865
building:
6966
type: string
70-
example: "house"
67+
example: house
7168
location_id:
7269
type: integer
7370
example: 44

compliant-sets/update-root/openapi.yaml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
openapi: "3.1.0"
1+
openapi: 3.1.0
22
info:
33
version: 1.0.0
44
title: Imaginary town
55
servers:
6-
- url: https://example.com
6+
- url: 'https://example.com'
77
description: Example server
88
paths:
9-
'/buildings':
9+
/buildings:
1010
get:
1111
summary: All buildings
1212
operationId: buildingsList
@@ -18,8 +18,7 @@ paths:
1818
schema:
1919
type: array
2020
items:
21-
$ref: "#/components/schemas/Building"
22-
21+
$ref: '#/components/schemas/Building'
2322
'/buildings/{buildingId}':
2423
get:
2524
summary: Specific building
@@ -37,9 +36,8 @@ paths:
3736
content:
3837
application/json:
3938
schema:
40-
$ref: "#/components/schemas/Building"
41-
42-
'/locations':
39+
$ref: '#/components/schemas/Building'
40+
/locations:
4341
get:
4442
summary: All locations
4543
operationId: locationList
@@ -58,16 +56,15 @@ paths:
5856
example: 44
5957
name:
6058
type: string
61-
example: "North Village"
62-
59+
example: North Village
6360
components:
6461
schemas:
6562
Building:
6663
type: object
6764
properties:
6865
building:
6966
type: string
70-
example: "house"
67+
example: house
7168
location_id:
7269
type: integer
7370
example: 44

0 commit comments

Comments
 (0)