|
6 | 6 | "$defs": { |
7 | 7 | "flipDirection": { |
8 | 8 | "type": "string", |
9 | | - "enum": ["horizontal", "vertical", "both"] |
| 9 | + "enum": ["none", "horizontal", "vertical", "both"] |
10 | 10 | }, |
11 | 11 | "rotation": { |
12 | 12 | "type": "number", |
|
92 | 92 | } |
93 | 93 | }, |
94 | 94 | "patternProperties": { |
95 | | - "Probability$": { |
| 95 | + "^[a-z][A-Za-z0-9]+Probability$": { |
96 | 96 | "type": "number", |
97 | 97 | "description": "Represents the probability that a component of the avatar will be displayed. The value can be either a float or an integer, but is interpreted as a percentage. For example, a value of 0 means the part will never be displayed, while a value of 100 means it will always be displayed.", |
98 | 98 | "minimum": 0, |
99 | 99 | "maximum": 100 |
100 | 100 | }, |
101 | | - "Variant$": { |
| 101 | + "^[a-z][A-Za-z0-9]+Variant$": { |
102 | 102 | "description": "Specifies which variants of the avatar part can be selected by the PRNG. If specified as a string or as an array with only one value, the value is fixed. However, if specified as an array with multiple values, the PRNG will choose from the available options.", |
103 | 103 | "oneOf": [ |
104 | 104 | { |
|
112 | 112 | } |
113 | 113 | ] |
114 | 114 | }, |
115 | | - "Color$": { |
| 115 | + "^[a-z][A-Za-z0-9]+Color$": { |
116 | 116 | "description": "Specifies which colors for the avatar component can be selected by the PRNG. If specified as a string or array with only one value, the value is fixed. However, if specified as an array with multiple values, the PRNG will choose from the available options. The color must be specified as a hex value.", |
117 | 117 | "oneOf": [ |
118 | 118 | { |
|
126 | 126 | } |
127 | 127 | ] |
128 | 128 | }, |
129 | | - "(^r|R)otation": { |
| 129 | + "^(r|[a-z][A-Za-z0-9]+R)otation": { |
130 | 130 | "description": "This is the rotation angle for the avatar or its parts. This value can be an integer or a float. A value of 0 results in no rotation, while values between -360 and 360 define the degree of rotation in both directions. If specified as an array, the PRNG will select a value within the specified range, including the values themselves. If not preceded by an avatar part, the option applies to the entire avatar.", |
131 | 131 | "oneOf": [ |
132 | 132 | { |
|
142 | 142 | } |
143 | 143 | ] |
144 | 144 | }, |
145 | | - "(^v|V)erticalOffset$": { |
| 145 | + "^(v|[a-z][A-Za-z0-9]+V)erticalOffset$": { |
146 | 146 | "description": "This is the vertical offset of the avatar or its parts. This value can be an integer or a float. A value of 0 results in no offset, while positive values move the part down as a percentage and negative values move it up as a percentage. If specified as an array, the PRNG will select a value within the specified range, including the values themselves. If no avatar part is specified, the option applies to the entire avatar.", |
147 | 147 | "oneOf": [ |
148 | 148 | { |
|
158 | 158 | } |
159 | 159 | ] |
160 | 160 | }, |
161 | | - "(^h|H)orizontalOffset$": { |
| 161 | + "^(h|[a-z][A-Za-z0-9]+H)orizontalOffset$": { |
162 | 162 | "description": "This is the horizontal offset of the avatar or its parts. This value can be an integer or a float. A value of 0 results in no offset, while positive values move the part to the right as a percentage and negative values move it to the left as a percentage. If specified as an array, the PRNG will select a value within the specified range, including the values themselves. If no avatar part is specified, the option applies to the entire avatar.", |
163 | 163 | "oneOf": [ |
164 | 164 | { |
|
0 commit comments