Implement YAML Validator
[sdc.git] / catalog-be / src / test / resources / yamlValidation / noValid / data_types_valid-01.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_2
2 data_types:
3   datatype_test:
4     derived_from: tosca.datatypes.Root
5     properties:
6       pr_1:
7         type: map
8         entry_schema:
9           type: boolean
10       pr_2:
11         type: string
12         description: Globally unique identifier of the VNFD
13         required: true
14         constraints:
15           - equal: fgh
16       pr_3:
17         type: string
18         description: Globally unique identifier of the VNFD
19         required: true
20         constraints:
21           - greater_than: a
22       pr_4:
23         type: string
24         description: Globally unique identifier of the VNFD
25         required: true
26         constraints:
27           - greater_or_equal: b
28       pr_5:
29         type: string
30         description: Globally unique identifier of the VNFD
31         required: true
32         constraints:
33           - less_than: z
34       pr_6:
35         type: string
36         description: Globally unique identifier of the VNFD
37         required: true
38         constraints:
39           - less_or_equal: y
40       pr_7:
41         type: string
42         description: Globally unique identifier of the VNFD
43         required: true
44         constraints:
45           - in_range:
46               - bb
47               - yy
48       pr_8:
49         type: string
50         description: Globally unique identifier of the VNFD
51         required: true
52         constraints:
53           - valid_values:
54               - dd
55               - rr
56       pr_9:
57         type: string
58         description: Globally unique identifier of the VNFD
59         required: true
60         constraints:
61           - length: 3
62       pr_10:
63         type: string
64         description: Globally unique identifier of the VNFD
65         required: true
66         constraints:
67           - min_length: 3
68       pr_11:
69         type: string
70         description: Globally unique identifier of the VNFD
71         required: true
72         constraints:
73           - min_length: 3
74       pr_12:
75         type: string
76         description: Globally unique identifier of the VNFD
77         required: true
78         constraints:
79           - max_length: 3
80       pr_13:
81         type: string
82         description: Globally unique identifier of the VNFD
83         required: true
84         constraints:
85           - pattern: '[a-z]'