layoutSchema.json 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {
  2. "copyright": "Licensed Materials - Property of IBM. IBM Cognos Products: BI Cloud (C) Copyright IBM Corp. 2018, 2020. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.",
  3. "$id": "layoutSchema.json",
  4. "$schema": "http://json-schema.org/draft-07/schema#",
  5. "title": "layout",
  6. "description": "The layout of the dashboard specification, representing ...",
  7. "definitions": {
  8. "item": {
  9. "type": "object",
  10. "properties": {
  11. "id": { "$ref": "schemaDefs.json#/definitions/id" },
  12. "style": { "$ref": "schemaDefs.json#/definitions/style" },
  13. "type": { "$ref": "#/definitions/layoutType" },
  14. "relatedLayouts": { "type": "string" },
  15. "items": { "$ref": "#/definitions/items" },
  16. "css": { "type": "string" },
  17. "title": { "type": "string" },
  18. "templateName": { "type": "string" },
  19. "features": { "$ref": "#/definitions/features" }
  20. },
  21. "required": [ "id", "type"]
  22. },
  23. "features": {
  24. "type": "object",
  25. "patternProperties": {
  26. "[0-9,a-z,-,_]*": { "$ref": "widgetsTemplateSchema.json#/definitions/widget" }
  27. }
  28. },
  29. "items": {
  30. "type": "array",
  31. "minItems": 0,
  32. "items": { "$ref": "#/definitions/item" }
  33. },
  34. "layoutType": {
  35. "type": "string",
  36. "enum": ["tab", "absolute", "widget", "group"]
  37. }
  38. },
  39. "type": "object",
  40. "properties": {
  41. "id": { "$ref": "schemaDefs.json#/definitions/id" },
  42. "style": { "$ref": "schemaDefs.json#/definitions/style" },
  43. "items": { "$ref": "#/definitions/items" },
  44. "type": { "$ref": "#/definitions/layoutType" },
  45. "showGrid": { "type": "boolean" },
  46. "snapGrid": { "type": "boolean" },
  47. "snapObjects": { "type": "boolean" },
  48. "tabTextColor": { "type": "string" },
  49. "tabSelectedLineColor": { "type": "string" },
  50. "tabBackgroundColor": { "type": "string" },
  51. "hideTab": { "type": "boolean" },
  52. "tabPosition": { "type": "string" },
  53. "tabIconPosition": { "type": "string" },
  54. "tabIcon": { "type": "string" },
  55. "tabIconColor": { "type": "string" },
  56. "fitPage": { "type": "boolean" },
  57. "fillColor": { "type": "string" },
  58. "pageSize": {
  59. "type": "object",
  60. "properties": {
  61. "height": { "type": "number" },
  62. "width": { "type": "number" }
  63. }
  64. },
  65. "layoutPositioning": { "type": "string" },
  66. "features": { "$ref": "#/definitions/features" }
  67. },
  68. "required": [ "id", "type", "items" ]
  69. }