@@ -5,7 +5,10 @@ type: object
5
5
6
6
properties :
7
7
shared :
8
- description : A shared specification of a function.
8
+ description : |
9
+ A shared specification of a function.
10
+ You must always create a server and a client property, and merge this into both
11
+ using a reference.
9
12
$ref : ' #/$defs/common_properties'
10
13
server :
11
14
description : A server-side specification of a function.
@@ -26,6 +29,17 @@ $defs:
26
29
pair :
27
30
type : string
28
31
description : Associates this function with another getter or setter function.
32
+ oop :
33
+ $ref : ' #/$defs/oop'
34
+ disabled :
35
+ description : |
36
+ Describe why the function was disabled, and if there is an alternative approach;
37
+ or just set the property to "true".
38
+ anyOf :
39
+ - type : string
40
+ - const : true
41
+ meta :
42
+ $ref : ' #/$defs/meta'
29
43
description :
30
44
type : string
31
45
description : Describes the functionality provided by the function.
@@ -58,18 +72,63 @@ $defs:
58
72
$ref : ' #/$defs/examples'
59
73
see_also :
60
74
type : array
61
- description : A list of other items and categories for further reading.
75
+ description : |
76
+ A list of other items and categories for further reading.
77
+ Every function will implicitly display it's own category in *See Also*, unless you
78
+ introduce this property, then you have to be explicit about it.
62
79
items :
63
80
type : string
64
81
pattern : " ^(item|category|tag):"
65
82
uniqueItems : true
66
83
84
+ oop :
85
+ type : object
86
+ description : Object-Oriented Programming (OOP) information block for the function.
87
+ required :
88
+ - entity
89
+ properties :
90
+ note :
91
+ type : string
92
+ description : A piece of information to show alongside OOP syntax.
93
+ entity :
94
+ type : string
95
+ description : Name of the element or userdata.
96
+ oneOf :
97
+ - required :
98
+ - method
99
+ properties :
100
+ method :
101
+ type : string
102
+ description : Name of the method.
103
+ static :
104
+ type : boolean
105
+ default : false
106
+ description : If set to true, this method will be marked as static.
107
+ variable :
108
+ type : string
109
+ description : Name of the variable without a leading dot.
110
+ - required :
111
+ - constructor
112
+ properties :
113
+ constructor :
114
+ type : string
115
+ description : Name of the constructor.
116
+
117
+ meta :
118
+ type : array
119
+ description : A list of meta properties about the function and it's documentation.
120
+ items :
121
+ type : object
122
+ properties :
123
+ needs_checking :
124
+ type : string
125
+ description : Describe why the function needs checking by another person. What's problematic?
126
+
67
127
preview :
68
128
type : array
69
129
description : A list of picture assets demonstrating the function.
70
130
items :
71
131
type : object
72
- description : A single function preview.
73
132
required :
74
133
- path
75
134
properties :
@@ -85,7 +144,6 @@ $defs:
85
144
description : A list of required and optional parameters for the function.
86
145
items :
87
146
type : object
88
- description : A single function parameter.
89
147
required :
90
148
- name
91
149
- type
@@ -123,7 +181,6 @@ $defs:
123
181
description : A list of named values returned by the function.
124
182
items :
125
183
type : object
126
- description : A single function return value.
127
184
required :
128
185
- type
129
186
- name
@@ -147,13 +204,15 @@ $defs:
147
204
deprecated :
148
205
type : string
149
206
description : Version when this item was deprecated in MTA.
207
+ replacement :
208
+ type : string
209
+ description : An optional replacement for this item.
150
210
151
211
issues :
152
212
type : array
153
213
description : A list of related issues for this function.
154
214
items :
155
215
type : object
156
- description : A single function-related issue.
157
216
required :
158
217
- id
159
218
- description
@@ -170,7 +229,6 @@ $defs:
170
229
description : A list of source code examples demonstrating the function.
171
230
items :
172
231
type : object
173
- description : A single source code example.
174
232
required :
175
233
- path
176
234
properties :
0 commit comments