-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Expand file tree
/
Copy pathmega.yaml
More file actions
62 lines (62 loc) · 1.52 KB
/
mega.yaml
File metadata and controls
62 lines (62 loc) · 1.52 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
openapi: "3.2"
info:
summary: My API's summary
title: My API
version: 1.0.0
license:
name: Apache 2.0
identifier: Apache-2.0
paths:
/:
get:
parameters: []
/{pathTest}: {}
webhooks:
myWebhook:
$ref: '#/components/pathItems/myPathItem'
description: Overriding description
components:
securitySchemes:
mtls:
type: mutualTLS
schemas:
Foo:
type: object
properties:
type:
const: foo
pathItems:
myPathItem:
post:
requestBody:
required: true
content:
'application/json':
schema:
externalDocs:
description: More docs!
url: https://example.com/elsewhere.html
type: object
properties:
type:
type: string
int:
type: integer
exclusiveMaximum: 100
exclusiveMinimum: 0
none:
type: 'null'
arr:
type: array
$comment: Array without items keyword
either:
type: ['string','null']
discriminator:
propertyName: type
mapping:
foo: Foo
defaultMapping: Bar
x-extension: true
anyOf:
- $ref: "#/components/schemas/Foo"
myArbitraryKeyword: true