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.

147 lines
3.4 KiB

  1. {
  2. "$schema": "http://json-schema.org/draft-04/schema#",
  3. "type": "object",
  4. "properties": {
  5. "title": {
  6. "type": "string",
  7. "minLength": 1,
  8. "default": "Home"
  9. },
  10. "template": {
  11. "type": "string",
  12. "minLength": 1,
  13. "default": "schedule"
  14. },
  15. "location": {
  16. "type": "string",
  17. "minLength": 1,
  18. "default": "Dublin City University"
  19. },
  20. "start": {
  21. "type": "integer",
  22. "multipleOf": 1,
  23. "maximum": 10000,
  24. "minimum": 1,
  25. "exclusiveMaximum": false,
  26. "exclusiveMinimum": false,
  27. "default": 15
  28. },
  29. "end": {
  30. "type": "integer",
  31. "multipleOf": 1,
  32. "maximum": 10000,
  33. "minimum": 1,
  34. "exclusiveMaximum": false,
  35. "exclusiveMinimum": false,
  36. "default": 29
  37. },
  38. "month": {
  39. "type": "string",
  40. "minLength": 1,
  41. "default": "March"
  42. },
  43. "year": {
  44. "type": "integer",
  45. "multipleOf": 1,
  46. "maximum": 10000,
  47. "minimum": 1,
  48. "exclusiveMaximum": false,
  49. "exclusiveMinimum": false,
  50. "default": 2017
  51. },
  52. "live": {
  53. "type": "string",
  54. "minLength": 1,
  55. "default": "2017-03-15T17:00:00"
  56. },
  57. "archive": {
  58. "type": "string",
  59. "minLength": 1,
  60. "default": "false"
  61. },
  62. "video": {
  63. "type": "string",
  64. "minLength": 1,
  65. "default": "https://www.youtube.com/embed/videoseries?list=PLPaLJSHTDMFhbDmyUeik6IHXmzVtWQQxu"
  66. },
  67. "days": {
  68. "type": "array",
  69. "uniqueItems": false,
  70. "items": {
  71. "type": "object",
  72. "properties": {
  73. "day": {
  74. "type": "string",
  75. "minLength": 1,
  76. "default": "Wednesday 29th"
  77. },
  78. "description": {
  79. "type": "string",
  80. "minLength": 1,
  81. "default": "Mobile Development"
  82. },
  83. "events": {
  84. "type": "array",
  85. "uniqueItems": false,
  86. "items": {
  87. "type": "object",
  88. "properties": {
  89. "name": {
  90. "type": "string",
  91. "minLength": 1,
  92. "default": "TBA"
  93. },
  94. "by": {
  95. "type": "string",
  96. "minLength": 1,
  97. "default": "TBA"
  98. },
  99. "time": {
  100. "type": "string",
  101. "minLength": 1,
  102. "default": "17:00"
  103. },
  104. "place": {
  105. "type": "object",
  106. "properties": {
  107. "id": {
  108. "type": "string",
  109. "minLength": 1,
  110. "default": "LG26"
  111. },
  112. "map": {
  113. "type": "string",
  114. "minLength": 1,
  115. "default": "Somewhere in DCU"
  116. }
  117. },
  118. "required": ["id", "map"]
  119. },
  120. "description": {
  121. "type": "string",
  122. "minLength": 1,
  123. "default": "TBA"
  124. }
  125. },
  126. "required": ["name", "by", "time", "place", "description"]
  127. }
  128. }
  129. },
  130. "required": ["day", "description", "events"]
  131. }
  132. }
  133. },
  134. "required": [
  135. "title",
  136. "location",
  137. "start",
  138. "end",
  139. "month",
  140. "year",
  141. "live",
  142. "archive",
  143. "video",
  144. "days"
  145. ]
  146. }