Skip to content

Commit 44dd2cf

Browse files
authored
Merge pull request OAI#1931 from sjaensch/examples-30-add-missing-object-type
Add missing object type to 3.0 examples
2 parents 68d3c31 + aa743c0 commit 44dd2cf

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

examples/v3.0/callback-example.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ paths:
4343
content:
4444
application/json:
4545
schema:
46+
type: object
4647
properties:
4748
timestamp:
4849
type: string

examples/v3.0/petstore-expanded.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,16 @@ components:
127127
Pet:
128128
allOf:
129129
- $ref: '#/components/schemas/NewPet'
130-
- required:
130+
- type: object
131+
required:
131132
- id
132133
properties:
133134
id:
134135
type: integer
135136
format: int64
136137

137138
NewPet:
139+
type: object
138140
required:
139141
- name
140142
properties:
@@ -144,6 +146,7 @@ components:
144146
type: string
145147

146148
Error:
149+
type: object
147150
required:
148151
- code
149152
- message

examples/v3.0/petstore.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ paths:
8282
components:
8383
schemas:
8484
Pet:
85+
type: object
8586
required:
8687
- id
8788
- name
@@ -98,6 +99,7 @@ components:
9899
items:
99100
$ref: "#/components/schemas/Pet"
100101
Error:
102+
type: object
101103
required:
102104
- code
103105
- message

0 commit comments

Comments
 (0)