-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathmega.yaml
50 lines (49 loc) · 1.21 KB
/
mega.yaml
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
openapi: 3.1.0
info:
summary: My API's summary
title: My API
version: 1.0.0
license:
name: Apache 2.0
identifier: Apache-2.0
jsonSchemaDialect: https://spec.openapis.org/oas/3.1/dialect/base
paths:
/:
get:
parameters: []
/{pathTest}: {}
webhooks:
myWebhook:
$ref: '#/components/pathItems/myPathItem'
description: Overriding description
components:
securitySchemes:
mtls:
type: mutualTLS
pathItems:
myPathItem:
post:
requestBody:
required: true
content:
'application/json':
schema:
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
x-extension: true
myArbitraryKeyword: true