forked from CesiumGS/3d-tiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.schema.json
55 lines (55 loc) · 1.96 KB
/
schema.schema.json
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "schema.schema.json",
"title": "Schema",
"type": "object",
"description": "An object defining classes and enums.",
"allOf": [
{
"$ref": "tilesetProperty.schema.json"
}
],
"properties": {
"id": {
"type": "string",
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$",
"description": "Unique identifier for the schema. Schema IDs must be alphanumeric identifiers matching the regular expression `^[a-zA-Z_][a-zA-Z0-9_]*$`."
},
"name": {
"type": "string",
"minLength": 1,
"description": "The name of the schema, e.g. for display purposes."
},
"description": {
"type": "string",
"minLength": 1,
"description": "The description of the schema."
},
"version": {
"type": "string",
"minLength": 1,
"description": "Application-specific version of the schema."
},
"classes": {
"type": "object",
"description": "A dictionary, where each key is a class ID and each value is an object defining the class. Class IDs must be alphanumeric identifiers matching the regular expression `^[a-zA-Z_][a-zA-Z0-9_]*$`.",
"minProperties": 1,
"additionalProperties": {
"$ref": "class.schema.json"
}
},
"enums": {
"type": "object",
"description": "A dictionary, where each key is an enum ID and each value is an object defining the values for the enum. Enum IDs must be alphanumeric identifiers matching the regular expression `^[a-zA-Z_][a-zA-Z0-9_]*$`.",
"minProperties": 1,
"additionalProperties": {
"$ref": "enum.schema.json"
}
},
"extensions": {},
"extras": {}
},
"required": [
"id"
]
}