forked from jupyterhub/jupyterhub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
redocly.yaml
50 lines (46 loc) · 1.09 KB
/
redocly.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
50
extends:
- recommended-strict
apis:
rest:
root: ./docs/source/_static/rest-api.yml
rules:
info-license-url: off
operation-4xx-response: off
# custom rules
# https://redocly.com/docs/cli/rules/configurable-rules/
rules:
rule/required-items-in-array-schemas:
subject:
type: Schema
assertions:
required:
- items
where:
- subject:
type: Schema
property: type
assertions:
const: array
defined: true
message: The 'items' field is required for schemas of array type.
rule/require-schema-type:
subject:
type: Schema
property: type
assertions:
defined: true
message: schema missing type
where:
# don't require type on schemas that reference other schemas, which already must specify type
- subject:
type: Schema
property: allOf
assertions:
defined: false
rule/require-parameter-schema:
subject:
type: Parameter
property: schema
assertions:
defined: true
message: Parameter missing schema