You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

114 lines
3.2 KiB

4 years ago
  1. {
  2. "$id": "streamConfig.json",
  3. "$schema": "http://json-schema.org/draft-07/schema#",
  4. "type": "object",
  5. "properties": {
  6. "border": {
  7. "$ref": "#/definitions/borders"
  8. },
  9. "columns": {
  10. "$ref": "#/definitions/columns"
  11. },
  12. "columnDefault": {
  13. "$ref": "#/definitions/column"
  14. },
  15. "columnCount": {
  16. "type": "number"
  17. }
  18. },
  19. "additionalProperties": false,
  20. "definitions": {
  21. "columns": {
  22. "type": "object",
  23. "patternProperties": {
  24. "^[0-9]+$": {
  25. "$ref": "#/definitions/column"
  26. }
  27. },
  28. "additionalProperties": false
  29. },
  30. "column": {
  31. "type": "object",
  32. "properties": {
  33. "alignment": {
  34. "type": "string",
  35. "enum": [
  36. "left",
  37. "right",
  38. "center"
  39. ]
  40. },
  41. "width": {
  42. "type": "number"
  43. },
  44. "wrapWord": {
  45. "type": "boolean"
  46. },
  47. "truncate": {
  48. "type": "number"
  49. },
  50. "paddingLeft": {
  51. "type": "number"
  52. },
  53. "paddingRight": {
  54. "type": "number"
  55. }
  56. },
  57. "additionalProperties": false
  58. },
  59. "borders": {
  60. "type": "object",
  61. "properties": {
  62. "topBody": {
  63. "$ref": "#/definitions/border"
  64. },
  65. "topJoin": {
  66. "$ref": "#/definitions/border"
  67. },
  68. "topLeft": {
  69. "$ref": "#/definitions/border"
  70. },
  71. "topRight": {
  72. "$ref": "#/definitions/border"
  73. },
  74. "bottomBody": {
  75. "$ref": "#/definitions/border"
  76. },
  77. "bottomJoin": {
  78. "$ref": "#/definitions/border"
  79. },
  80. "bottomLeft": {
  81. "$ref": "#/definitions/border"
  82. },
  83. "bottomRight": {
  84. "$ref": "#/definitions/border"
  85. },
  86. "bodyLeft": {
  87. "$ref": "#/definitions/border"
  88. },
  89. "bodyRight": {
  90. "$ref": "#/definitions/border"
  91. },
  92. "bodyJoin": {
  93. "$ref": "#/definitions/border"
  94. },
  95. "joinBody": {
  96. "$ref": "#/definitions/border"
  97. },
  98. "joinLeft": {
  99. "$ref": "#/definitions/border"
  100. },
  101. "joinRight": {
  102. "$ref": "#/definitions/border"
  103. },
  104. "joinJoin": {
  105. "$ref": "#/definitions/border"
  106. }
  107. },
  108. "additionalProperties": false
  109. },
  110. "border": {
  111. "type": "string"
  112. }
  113. }
  114. }