-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathopenapi_profile.raml
More file actions
82 lines (61 loc) · 2.04 KB
/
openapi_profile.raml
File metadata and controls
82 lines (61 loc) · 2.04 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#%Validation Profile 1.0
profile: OpenAPI
extends: AMF
violation:
- amf-parser.mandatory-api-version
- amf-parser.openapi-schemes
- amf-parser.empty-endpoints
- amf-parser.mandatory-external-doc-url
- amf-parser.mandatory-license-name
- amf-parser.host-valid-domain
- amf-parser.empty-responses
- amf-parser.empty-enum
- amf-parser.array-shape-items-mandatory
validations:
amf-parser.mandatory-api-version:
message: API Version is Mandatory
targetClass: schema.WebAPI
propertyConstraint: schema.version
schema.version:
minCount: 1
amf-parser.openapi-schemes:
message: Protocols must match a value http, https, ws or wss
targetClass: schema.WebAPI
propertyConstraint: http.scheme
http.scheme:
in: [ http,https,ws,wss ]
amf-parser.mandatory-external-doc-url:
message: Documentation URL is mandatory in API external documentation
targetClass: schema.CreativeWork
propertyConstraint: schema.url
schema.url:
minCount: 1
amf-parser.mandatory-license-name:
message: License name is mandatory if license information is included
targetClass: http.License
propertyConstraint: schema.name
schema.name:
minCount: 1
amf-parser.host-valid-domain:
message: BaseUris must be valid and not templates
targetClass: schema.WebAPI
propertyConstraint: http.host
http.host:
pattern: ^[^{}\/ :\\]+(?::\d+)?$
amf-parser.empty-responses:
message: Responses array cannot be empty
targetClass: hydra.Operation
propertyConstraint: hydra.returns
hydra.returns:
minCount: 1
amf-parser.empty-enum:
message: Enum in types cannot be empty
targetClass: raml-shapes.Shape
functionConstraint:
functionName: nonEmptyList_shacl_in
amf-parser.array-shape-items-mandatory:
message: items facet of RAML Array type is required
targetClass: raml-shapes.ArrayShape
propertyConstraint: raml-shapes.item
raml-shapes.item:
minCount: 1