schemaDefs.json 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. {
  2. "copyright": "Licensed Materials - Property of IBM. IBM Cognos Products: BI Cloud (C) Copyright IBM Corp. 2018. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.",
  3. "$id": "schemaDefs.json",
  4. "$schema": "http://json-schema.org/draft-07/schema#",
  5. "title": "Definitions",
  6. "definitions": {
  7. "id": {
  8. "type": "string"
  9. },
  10. "modelId": {
  11. "type": "string"
  12. },
  13. "queryId": {
  14. "type": "string"
  15. },
  16. "name": {
  17. "type": ["string", "null"]
  18. },
  19. "theme": {
  20. "oneOf": [{
  21. "enum": ["defaultTheme"]
  22. }, {
  23. "type": "string"
  24. }]
  25. },
  26. "type": {
  27. "type": "string",
  28. "enum": ["templateDropZone", "scalingAbsolute", "container", "uploadedFile", "theme"]
  29. },
  30. "style": {
  31. "height": { "type": "string" },
  32. "width": { "type": "string" },
  33. "left": { "type": "string" },
  34. "top": { "type": "string" },
  35. "transform": { "type": "string" },
  36. "-webkit-transform": { "type": "string" }
  37. },
  38. "assetId": {
  39. "type": "string",
  40. "pattern": "^i[0-9,A-F]"
  41. },
  42. "strArray": {
  43. "type": "array",
  44. "items": {
  45. "type": "string"
  46. }
  47. },
  48. "uniqueId": {
  49. "type": "string",
  50. "pattern": "[0-9,a-f,-]*"
  51. },
  52. "layoutItem": {
  53. "type": "object",
  54. "properties": {
  55. "id": { "$ref": "#/definitions/id" },
  56. "style": { "$ref": "#/definitions/style" },
  57. "type": { "$ref": "#/definitions/layoutType" },
  58. "relatedLayouts": { "type": "string" },
  59. "items": { "$ref": "#/definitions/layoutItems" },
  60. "css": { "type": "string" },
  61. "title": { "type": "string" },
  62. "templateName": { "type": "string" }
  63. },
  64. "required": [ "id", "type" ]
  65. },
  66. "layoutItems": {
  67. "type": "array",
  68. "minItems": 0,
  69. "items": { "$ref": "#/definitions/layoutItem" }
  70. },
  71. "layoutType": {
  72. "type": "string",
  73. "enum": ["tab", "absolute", "widget", "group"]
  74. }
  75. }
  76. }