-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapache-hudi-spectral-rules.yml
More file actions
64 lines (57 loc) · 1.67 KB
/
apache-hudi-spectral-rules.yml
File metadata and controls
64 lines (57 loc) · 1.67 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
63
64
rules:
hudi-operation-summary:
description: All Hudi Timeline Server API operations must have a summary
severity: error
given: "$.paths[*][get,put,post,delete,patch]"
then:
field: summary
function: truthy
hudi-operation-id:
description: All Hudi Timeline Server API operations must have an operationId
severity: error
given: "$.paths[*][get,put,post,delete,patch]"
then:
field: operationId
function: truthy
hudi-operation-tags:
description: All Hudi Timeline Server API operations must have at least one tag
severity: warn
given: "$.paths[*][get,put,post,delete,patch]"
then:
field: tags
function: truthy
hudi-schema-description:
description: All Hudi schema components must have a description
severity: warn
given: "$.components.schemas[*]"
then:
field: description
function: truthy
hudi-property-description:
description: All Hudi schema properties should have descriptions
severity: info
given: "$.components.schemas[*].properties[*]"
then:
field: description
function: truthy
hudi-info-contact:
description: API info must include contact information
severity: warn
given: "$.info"
then:
field: contact
function: truthy
hudi-info-license:
description: API info must include license information
severity: warn
given: "$.info"
then:
field: license
function: truthy
hudi-path-parameters-described:
description: All Hudi path parameters must have descriptions
severity: warn
given: "$.paths[*][*].parameters[?(@.in=='path')]"
then:
field: description
function: truthy