schema_cache.json 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "description": "Schema for the CMake cache object kind",
  4. "type": "object",
  5. "required": [
  6. "kind",
  7. "version",
  8. "entries"
  9. ],
  10. "properties": {
  11. "kind": {
  12. "type": "string",
  13. "const": "cache"
  14. },
  15. "version": {
  16. "type": "object",
  17. "required": [
  18. "major",
  19. "minor"
  20. ],
  21. "properties": {
  22. "major": {
  23. "type": "integer",
  24. "const": 2
  25. },
  26. "minor": {
  27. "type": "integer",
  28. "const": 0
  29. }
  30. },
  31. "additionalProperties": false
  32. },
  33. "entries": {
  34. "type": "array",
  35. "description": "Array of CMake cache entries",
  36. "items": {
  37. "type": "object",
  38. "required": [
  39. "name",
  40. "value",
  41. "type",
  42. "properties"
  43. ],
  44. "properties": {
  45. "name": {
  46. "type": "string",
  47. "description": "Name of the cache entry"
  48. },
  49. "value": {
  50. "type": "string",
  51. "description": "Value of the cache entry"
  52. },
  53. "type": {
  54. "type": "string",
  55. "description": "Type of the cache entry used by CMake GUI to choose a widget for editing"
  56. },
  57. "properties": {
  58. "type": "array",
  59. "description": "Associated properties for the cache entry",
  60. "items": {
  61. "type": "object",
  62. "required": [
  63. "name",
  64. "value"
  65. ],
  66. "properties": {
  67. "name": {
  68. "type": "string"
  69. },
  70. "value": {
  71. "type": "string"
  72. }
  73. },
  74. "additionalProperties": false
  75. }
  76. }
  77. },
  78. "additionalProperties": false
  79. }
  80. }
  81. },
  82. "additionalProperties": false
  83. }