Skip to content

Commit fe6c057

Browse files
committed
Create properly named object and make everything readonly
1 parent 73b44e7 commit fe6c057

File tree

1 file changed

+44
-28
lines changed

1 file changed

+44
-28
lines changed

schemas/openapi.yml

Lines changed: 44 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -27,34 +27,7 @@ paths:
2727
content:
2828
application/json:
2929
schema:
30-
type: object
31-
properties:
32-
sessions:
33-
type: array
34-
items:
35-
$ref: '#/components/schemas/Session'
36-
speakers:
37-
type: array
38-
items:
39-
$ref: '#/components/schemas/Speaker'
40-
questions:
41-
type: array
42-
items:
43-
$ref: '#/components/schemas/Question'
44-
categories:
45-
type: array
46-
items:
47-
$ref: '#/components/schemas/Category'
48-
rooms:
49-
type: array
50-
items:
51-
$ref: '#/components/schemas/Room'
52-
required:
53-
- categories
54-
- questions
55-
- rooms
56-
- sessions
57-
- speakers
30+
$ref: '#/components/schemas/AllResult'
5831
deprecated: false
5932
/api/v2/{endpointId}/view/Speakers:
6033
get:
@@ -96,8 +69,39 @@ paths:
9669
deprecated: false
9770
components:
9871
schemas:
72+
AllResult:
73+
type: object
74+
readOnly: true
75+
properties:
76+
sessions:
77+
type: array
78+
items:
79+
$ref: '#/components/schemas/Session'
80+
speakers:
81+
type: array
82+
items:
83+
$ref: '#/components/schemas/Speaker'
84+
questions:
85+
type: array
86+
items:
87+
$ref: '#/components/schemas/Question'
88+
categories:
89+
type: array
90+
items:
91+
$ref: '#/components/schemas/Category'
92+
rooms:
93+
type: array
94+
items:
95+
$ref: '#/components/schemas/Room'
96+
required:
97+
- categories
98+
- questions
99+
- rooms
100+
- sessions
101+
- speakers
99102
Category:
100103
type: object
104+
readOnly: true
101105
properties:
102106
id:
103107
type: integer
@@ -119,6 +123,7 @@ components:
119123
- type
120124
CategoryItem:
121125
type: object
126+
readOnly: true
122127
properties:
123128
id:
124129
type: integer
@@ -132,6 +137,7 @@ components:
132137
- sort
133138
Link:
134139
type: object
140+
readOnly: true
135141
properties:
136142
title:
137143
type: string
@@ -146,6 +152,7 @@ components:
146152
- url
147153
Question:
148154
type: object
155+
readOnly: true
149156
properties:
150157
id:
151158
type: integer
@@ -162,6 +169,7 @@ components:
162169
- sort
163170
QuestionAnswer:
164171
type: object
172+
readOnly: true
165173
properties:
166174
questionId:
167175
type: integer
@@ -172,6 +180,7 @@ components:
172180
- questionId
173181
QuestionAnswerFull:
174182
type: object
183+
readOnly: true
175184
properties:
176185
id:
177186
type: integer
@@ -193,6 +202,7 @@ components:
193202
- sort
194203
Room:
195204
type: object
205+
readOnly: true
196206
properties:
197207
id:
198208
type: integer
@@ -206,6 +216,7 @@ components:
206216
- sort
207217
Session:
208218
type: object
219+
readOnly: true
209220
properties:
210221
id:
211222
type: string
@@ -272,6 +283,7 @@ components:
272283
- title
273284
SessionGroup:
274285
type: object
286+
readOnly: true
275287
properties:
276288
groupId:
277289
type: integer
@@ -285,6 +297,7 @@ components:
285297
type: boolean
286298
SessionMinimal:
287299
type: object
300+
readOnly: true
288301
properties:
289302
id:
290303
type: integer
@@ -295,6 +308,7 @@ components:
295308
- name
296309
Speaker:
297310
type: object
311+
readOnly: true
298312
properties:
299313
id:
300314
type: string
@@ -340,6 +354,7 @@ components:
340354
- tagLine
341355
SpeakerMinimal:
342356
type: object
357+
readOnly: true
343358
properties:
344359
id:
345360
type: string
@@ -351,6 +366,7 @@ components:
351366
- name
352367
Status:
353368
type: string
369+
readOnly: true
354370
enum:
355371
- Accepted
356372
- Accepted_Queue

0 commit comments

Comments
 (0)