-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmediaTypes.oas.yml
56 lines (56 loc) · 1.16 KB
/
mediaTypes.oas.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
openapi: 3.1.0
info:
title: Media Types Example
version: 1.6.1
description: Media Types Example
paths:
'/animals':
post:
summary: Create Animal
operationId: createAnimal
requestBody:
content:
application/json;version=1.0.0:
schema:
$ref: '#/components/schemas/Animal'
application/json;version=2.0.0:
schema:
$ref: '#/components/schemas/AnimalV2'
required: true
responses:
'201':
description: Resource created.
components:
schemas:
AnimalV2:
type: object
title: AnimalV2
description: Animal
required:
- name
- owner
- species
additionalProperties: false
properties:
name:
type: string
owner:
type: string
species:
type: string
Animal:
type: object
title: Animal
description: Animal
required:
- name
- owner
- genus
additionalProperties: false
properties:
name:
type: string
owner:
type: string
genus:
type: string