Adding validations for all JSON data across modules
[multicloud/k8s.git] / src / orchestrator / json-schemas / composite-profile.json
1 {
2     "$schema": "http://json-schema.org/schema#",
3     "type": "object",
4     "properties": {
5       "app-name": {
6         "description": "Application Name",
7         "required": [
8           "app-name"
9         ],
10         "type": "string",
11         "example": "Application1",
12         "maxLength": 128,
13         "pattern": "[-_0-9a-zA-Z]+$"
14       },
15       "metadata": {
16         "required": ["name"],
17         "properties": {
18           "userData2": {
19             "description": "User relevant data for the resource",
20             "type": "string",
21             "example": "Some more data",
22             "maxLength": 512
23           },
24           "userData1": {
25             "description": "User relevant data for the resource",
26             "type": "string",
27             "example": "Some data",
28             "maxLength": 512
29           },
30           "name": {
31             "description": "Name of the resource",
32             "type": "string",
33             "example": "ResName",
34             "maxLength": 128,
35             "pattern": "[-_0-9a-zA-Z]+$"
36           },
37           "description": {
38             "description": "Description for the resource",
39             "type": "string",
40             "example": "Resource description",
41             "maxLength": 1024
42           }
43         }
44       }
45     }
46   }