Skip to content

Commit 596d358

Browse files
author
James Shaw
committed
update samples
1 parent 9c920d7 commit 596d358

4 files changed

Lines changed: 34 additions & 6 deletions

File tree

samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/resources/openapi.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ paths:
1515
operationId: getAllFoos
1616
responses:
1717
"200":
18-
$ref: "#/components/responses/200FooArray"
18+
content:
19+
application/json;charset=utf-8:
20+
schema:
21+
items:
22+
$ref: "#/components/schemas/FooRefOrValue"
23+
type: array
24+
description: Success
1925
summary: GET all Foos
2026
tags:
2127
- Foo
@@ -29,7 +35,11 @@ paths:
2935
$ref: "#/components/requestBodies/Foo"
3036
responses:
3137
"201":
32-
$ref: "#/components/responses/201Foo"
38+
content:
39+
application/json:
40+
schema:
41+
$ref: "#/components/schemas/FooRefOrValue"
42+
description: Error
3343
summary: Create a Foo
3444
tags:
3545
- Foo

samples/openapi3/server/petstore/spring-boot-oneof/src/main/resources/openapi.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ paths:
1515
operationId: getAllFoos
1616
responses:
1717
"200":
18-
$ref: "#/components/responses/200FooArray"
18+
content:
19+
application/json;charset=utf-8:
20+
schema:
21+
items:
22+
$ref: "#/components/schemas/FooRefOrValue"
23+
type: array
24+
description: Success
1925
summary: GET all Foos
2026
tags:
2127
- Foo
@@ -29,7 +35,11 @@ paths:
2935
$ref: "#/components/requestBodies/Foo"
3036
responses:
3137
"201":
32-
$ref: "#/components/responses/201Foo"
38+
content:
39+
application/json:
40+
schema:
41+
$ref: "#/components/schemas/FooRefOrValue"
42+
description: Error
3343
summary: Create a Foo
3444
tags:
3545
- Foo

samples/server/petstore/go-api-server/api/openapi.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,11 @@ paths:
918918
$ref: "#/components/requestBodies/TestBody"
919919
responses:
920920
"200":
921-
$ref: "#/components/responses/SuccessfulOp"
921+
content:
922+
application/json:
923+
schema:
924+
type: bool
925+
description: Successful Operation
922926
summary: POST a test batch
923927
tags:
924928
- fake

samples/server/petstore/go-chi-server/api/openapi.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,11 @@ paths:
918918
$ref: "#/components/requestBodies/TestBody"
919919
responses:
920920
"200":
921-
$ref: "#/components/responses/SuccessfulOp"
921+
content:
922+
application/json:
923+
schema:
924+
type: bool
925+
description: Successful Operation
922926
summary: POST a test batch
923927
tags:
924928
- fake

0 commit comments

Comments
 (0)