-
Notifications
You must be signed in to change notification settings - Fork 99
/
schema.json
83 lines (83 loc) · 2.08 KB
/
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"type": "object",
"patternProperties": {
"^([A-Z_]+[A-Z0-9_]*|_0x[0-9A-F]{16})$": {
"type": "object",
"patternProperties": {
"^0x[0-9A-F]{16}$": {
"type": "object",
"properties": {
"name": { "$ref": "#/$defs/native_name" },
"jhash": {
"type": "string",
"pattern": "^($|0x[0-9A-F]{8})$"
},
"comment": { "type": "string" },
"params": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": { "$ref": "#/$defs/param_type" },
"name": {
"type": "string",
"pattern": "^[A-Za-z_]+[A-Za-z0-9_]*$"
}
},
"required": ["type", "name"],
"additionalProperties": false
}
},
"return_type": { "$ref": "#/$defs/return_type" },
"build": { "type": "string" },
"unused": { "type": "boolean" },
"old_names": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": { "$ref": "#/$defs/native_name" }
}
},
"required": ["name", "jhash", "comment", "params", "return_type", "build"],
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"additionalProperties": false,
"$defs": {
"native_name": {
"type": "string",
"pattern": "^([A-Z_]+[A-Z0-9_]*|_0x[0-9A-F]{16})$"
},
"param_type": {
"type": "string",
"enum": [
"int", "int*",
"float", "float*",
"BOOL", "BOOL*",
"char*", "const char*",
"Any", "Any*",
"Blip", "Blip*",
"Cam", "Cam*",
"Entity", "Entity*",
"FireId", "FireId*",
"Hash", "Hash*",
"Interior", "Interior*",
"ItemSet", "ItemSet*",
"Object", "Object*",
"Ped", "Ped*",
"Pickup", "Pickup*",
"Player", "Player*",
"ScrHandle", "ScrHandle*",
"Vector3*",
"Vehicle", "Vehicle*"
]
},
"return_type": {
"type": "string",
"enum": ["void", "int", "float", "BOOL", "const char*", "Any", "Any*", "Blip", "Cam", "Entity", "FireId", "Hash", "Interior", "ItemSet", "Object", "Ped", "Pickup", "Player", "ScrHandle", "Vector3", "Vehicle"]
}
}
}