| 1 |
{ |
| 2 |
"$schema": "http://json-schema.org/draft-07/schema#", |
| 3 |
"type": "array", |
| 4 |
"items": { |
| 5 |
"type": "object", |
| 6 |
"additionalProperties": false, |
| 7 |
"properties": { |
| 8 |
"name": { |
| 9 |
"type": "string", |
| 10 |
"markdownDescription": "OCaml name of the meta." |
| 11 |
}, |
| 12 |
"metadata": { |
| 13 |
"type": "string", |
| 14 |
"markdownDescription": "Actual name of the meta as it's used in Haxe code." |
| 15 |
}, |
| 16 |
"doc": { |
| 17 |
"type": "string", |
| 18 |
"markdownDescription": "Documentation for the meta that is shown in `--help-metas` and IDE hints." |
| 19 |
}, |
| 20 |
"platforms": { |
| 21 |
"type": "array", |
| 22 |
"markdownDescription": "Platforms on which this meta has an effect.", |
| 23 |
"minItems": 1, |
| 24 |
"items": { |
| 25 |
"enum": [ |
| 26 |
"js", |
| 27 |
"lua", |
| 28 |
"neko", |
| 29 |
"flash", |
| 30 |
"php", |
| 31 |
"cpp", |
| 32 |
"cs", |
| 33 |
"java", |
| 34 |
"python", |
| 35 |
"hl", |
| 36 |
"eval" |
| 37 |
] |
| 38 |
} |
| 39 |
}, |
| 40 |
"params": { |
| 41 |
"type": "array", |
| 42 |
"markdownDescription": "Parameters this meta takes.", |
| 43 |
"minItems": 1, |
| 44 |
"items": { |
| 45 |
"type": "string" |
| 46 |
} |
| 47 |
}, |
| 48 |
"devcomment": { |
| 49 |
"type": "string", |
| 50 |
"markdownDescription": "Internal comment that is not exposed." |
| 51 |
}, |
| 52 |
"internal": { |
| 53 |
"type": "boolean", |
| 54 |
"markdownDescription": "Whether this define is for internal use only, in which case it is not exposed to the CLI and the `--display` protocol." |
| 55 |
}, |
| 56 |
"targets": { |
| 57 |
"type": "array", |
| 58 |
"markdownDescription": "On what the meta can be used.", |
| 59 |
"minItems": 1, |
| 60 |
"items": { |
| 61 |
"enum": [ |
| 62 |
"TClass", |
| 63 |
"TClassField", |
| 64 |
"TAbstract", |
| 65 |
"TAbstractField", |
| 66 |
"TEnum", |
| 67 |
"TTypedef", |
| 68 |
"TExpr", |
| 69 |
"TTypeParameter", |
| 70 |
"TAnyField" |
| 71 |
] |
| 72 |
} |
| 73 |
}, |
| 74 |
"links": { |
| 75 |
"type": "array", |
| 76 |
"markdownDescription": "Relevant URLs.", |
| 77 |
"minItems": 1, |
| 78 |
"items": { |
| 79 |
"type": "string", |
| 80 |
"format": "uri" |
| 81 |
} |
| 82 |
} |
| 83 |
}, |
| 84 |
"required": [ |
| 85 |
"name", |
| 86 |
"metadata", |
| 87 |
"doc" |
| 88 |
] |
| 89 |
} |
| 90 |
} |