-
Notifications
You must be signed in to change notification settings - Fork 187
Expand file tree
/
Copy pathrequired-property-1.yaml
More file actions
39 lines (39 loc) · 1.23 KB
/
required-property-1.yaml
File metadata and controls
39 lines (39 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
openapi: 3.0.0
info:
title: Required Property Test API
version: 1.0.0
paths:
/schema/required:
post:
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [becomesOptional, unchanged]
properties:
becomesRequired:
type: string
description: Property that changes from optional to required (breaking for requests)
becomesOptional:
type: string
description: Property that changes from required to optional (breaking for responses)
unchanged:
type: string
description: Property that remains unchanged in terms of required status
responses:
'200':
description: Success response
content:
application/json:
schema:
type: object
required: [becomesOptional, unchanged]
properties:
becomesRequired:
type: string
becomesOptional:
type: string
unchanged:
type: string