forked from DrSnowbird/amf
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathraml_profile.raml
More file actions
37 lines (26 loc) · 859 Bytes
/
raml_profile.raml
File metadata and controls
37 lines (26 loc) · 859 Bytes
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
#%Validation Profile 1.0
profile: RAML
extends: AMF
violation:
- amf-parser.raml-schemes
- amf-parser.raml-status-code
- amf-parser.array-shape-items-optional
validations:
amf-parser.raml-schemes:
message: Protocols must have a case insensitive value matching http or https
targetClass: schema.WebAPI
propertyConstraint: http.scheme
http.scheme:
in: [ http,https,HTTP,HTTPS ]
amf-parser.raml-status-code:
message: Status code must be numeric
targetClass: http.Response
propertyConstraint: hydra.statusCode
hydra.statusCode:
pattern: ^([0-9]{3})$
amf-parser.array-shape-items-optional:
message: items facet of RAML Array type is required
targetClass: raml-shapes.ArrayShape
propertyConstraint: raml-shapes.item
raml-shapes.item:
minCount: 0