define.schema.json 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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 define."
  11. },
  12. "define": {
  13. "type": "string",
  14. "markdownDescription": "Actual name of the define as it's used in `-D` on the CLI and in Haxe code."
  15. },
  16. "doc": {
  17. "type": "string",
  18. "markdownDescription": "Documentation for the define that is shown in `--help-defines`."
  19. },
  20. "platforms": {
  21. "type": "array",
  22. "markdownDescription": "Platforms on which this define 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. "jvm",
  35. "python",
  36. "hl",
  37. "eval"
  38. ]
  39. }
  40. },
  41. "params": {
  42. "type": "array",
  43. "markdownDescription": "Parameters this define takes.",
  44. "minItems": 1,
  45. "items": {
  46. "type": "string"
  47. }
  48. },
  49. "devcomment": {
  50. "type": "string",
  51. "markdownDescription": "Internal comment that is not exposed."
  52. },
  53. "links": {
  54. "type": "array",
  55. "markdownDescription": "Relevant URLs.",
  56. "minItems": 1,
  57. "items": {
  58. "type": "string",
  59. "format": "uri"
  60. }
  61. },
  62. "reserved": {
  63. "type": "boolean",
  64. "markdownDescription": "Reserved defines may not be defined from the command line."
  65. },
  66. "deprecated": {
  67. "type": "string",
  68. "markdownDescription": "Reason for the define to be deprecated."
  69. },
  70. "default": {
  71. "type": "string",
  72. "markdownDescription": "Default value if not explicitly set."
  73. },
  74. "deprecatedDefine": {
  75. "type": "string",
  76. "markdownDescription": "Replace and deprecate the given definition name, which can still be used in -D."
  77. },
  78. "signatureNeutral": {
  79. "type": "boolean",
  80. "markdownDescription": "Does not affect compilation signature."
  81. }
  82. },
  83. "required": [
  84. "name",
  85. "define",
  86. "doc"
  87. ]
  88. }
  89. }