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