Skip to content

Commit 6300241

Browse files
authored
Merge pull request #182 from Suzanna-Linn/Suzanna-Linn-constant-adding-info
Adding info to constants
2 parents e5de51c + 5e8951b commit 6300241

2 files changed

Lines changed: 1322 additions & 0 deletions

File tree

lsl_definitions.schema.json

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,76 @@
444444
"markdownDescription": "Override the auto-generated property alias for this constant when used as a table-ruleset key. Must be a valid Lua identifier (lowercase, underscores).",
445445
"type": "string",
446446
"pattern": "^[a-z][a-z0-9_]*$"
447+
},
448+
"range": {
449+
"markdownDescription": "An array with the start and end values.",
450+
"items": {
451+
"type": ["number", "string", "integer"]
452+
},
453+
"maxItems": 2,
454+
"minItems": 2,
455+
"type": "array"
456+
},
457+
"default": {
458+
"markdownDescription": "The default value.",
459+
"type": ["number", "string", "integer", "boolean"]
460+
},
461+
"enum": {
462+
"markdownDescription": "A category of constants valid for this value.",
463+
"type": "string"
464+
},
465+
"details": {
466+
"markdownDescription": "Additional information.",
467+
"type": "string"
468+
},
469+
"access": {
470+
"markdownDescription": "Access mode. 'arg' is always an argument. 'read' is used only when reading. 'write' is used only when writing.",
471+
"enum": ["arg", "read", "write", "read/write"],
472+
"type": "string"
473+
},
474+
"values": {
475+
"markdownDescription": "A list of values associated to the constant.",
476+
"type": "array",
477+
"items": {
478+
"type": "object",
479+
"additionalProperties": false,
480+
"properties": {
481+
"name": {
482+
"markdownDescription": "The name of this value.",
483+
"type": "string"
484+
},
485+
"value-type": {
486+
"markdownDescription": "For constants used as rule tags in list-based APIs: the type of the value that follows this constant in the list. Uses the same vocabulary as ruleset param types. 'string-csv' accepts a {string} array and serializes it as an escaped comma-separated string. 'string-map' accepts a {[string]: string} table and emits one tag/key/value triple per entry.",
487+
"enum": ["integer", "float", "string", "vector", "rotation", "boolean", "asset", "key", "string-csv", "string-map", "string-multi"]
488+
},
489+
"range": {
490+
"markdownDescription": "An array with the start and end values.",
491+
"items": {
492+
"type": ["number", "string", "integer"]
493+
},
494+
"maxItems": 2,
495+
"minItems": 2,
496+
"type": "array"
497+
},
498+
"default": {
499+
"markdownDescription": "The default value.",
500+
"type": ["number", "string", "integer", "boolean"]
501+
},
502+
"enum": {
503+
"markdownDescription": "A category of constants valid for this value.",
504+
"type": "string"
505+
},
506+
"details": {
507+
"markdownDescription": "Additional information.",
508+
"type": "string"
509+
},
510+
"access": {
511+
"markdownDescription": "Access mode. 'arg' is always an argument. 'read' is used only when reading. 'write' is used only when writing.",
512+
"enum": ["arg", "read", "write", "read/write"],
513+
"type": "string"
514+
}
515+
}
516+
}
447517
}
448518
},
449519
"required": [

0 commit comments

Comments
 (0)