Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.33 KB | None | 0 0
  1. {
  2. "definitions": {},
  3. "$schema": "http://json-schema.org/draft-07/schema#",
  4. "$id": "http://example.com/root.json",
  5. "type": "object",
  6. "title": "The Root Schema",
  7. "required": [
  8. "id",
  9. "title",
  10. "content",
  11. "author",
  12. "referenceModule",
  13. "updatedAt",
  14. "createdAt"
  15. ],
  16. "properties": {
  17. "id": {
  18. "$id": "#/properties/id",
  19. "type": "string",
  20. "title": "Note Id",
  21. "default": "",
  22. "examples": [
  23. "5ad88dbb7fb20f1f5d312ed4"
  24. ],
  25. "pattern": "^(.*)$"
  26. },
  27. "title": {
  28. "$id": "#/properties/title",
  29. "type": "string",
  30. "title": "Note Title",
  31. "description": "Autogenerated based on module where note is left.",
  32. "default": "",
  33. "examples": [
  34. "INVOICE - 19-01385E-001F"
  35. ],
  36. "pattern": "^(.*)$"
  37. },
  38. "content": {
  39. "$id": "#/properties/content",
  40. "type": "string",
  41. "title": "Note Content",
  42. "description": "Note Content which can contain mentions defined in Mention Section. ",
  43. "default": "",
  44. "examples": [
  45. "<@id:5b17e7637fb20f0e27c4e439|name:David Brown> Make sure to share the Invoice with the client by tomorrow morning."
  46. ],
  47. "pattern": "^(.*)$"
  48. },
  49. "taggedUsers": {
  50. "$id": "#/properties/taggedUsers",
  51. "type": "array",
  52. "title": "Tagged Users",
  53. "description": "Contains all users tagged in content",
  54. "default": null,
  55. "items": {
  56. "$id": "#/properties/taggedUsers/items",
  57. "type": "object",
  58. "title": "User Schema",
  59. "default": null,
  60. "required": [
  61. "id",
  62. "firstName",
  63. "lastName"
  64. ],
  65. "properties": {
  66. "id": {
  67. "$id": "#/properties/taggedUsers/items/properties/id",
  68. "type": "string",
  69. "title": "User Id",
  70. "default": "",
  71. "examples": [
  72. "5b17e7637fb20f0e27c4e439"
  73. ],
  74. "pattern": "^(.*)$"
  75. },
  76. "firstName": {
  77. "$id": "#/properties/taggedUsers/items/properties/firstName",
  78. "type": "string",
  79. "title": "The Firstname Schema",
  80. "default": "",
  81. "examples": [
  82. "David"
  83. ],
  84. "pattern": "^(.*)$"
  85. },
  86. "lastName": {
  87. "$id": "#/properties/taggedUsers/items/properties/lastName",
  88. "type": "string",
  89. "title": "The Lastname Schema",
  90. "default": "",
  91. "examples": [
  92. "Brown"
  93. ],
  94. "pattern": "^(.*)$"
  95. }
  96. }
  97. }
  98. },
  99. "author": {
  100. "$id": "#/properties/author",
  101. "type": "object",
  102. "title": "User Schema ",
  103. "default": null,
  104. "required": [
  105. "id",
  106. "firstName",
  107. "lastName",
  108. "photoUrl"
  109. ],
  110. "properties": {
  111. "id": {
  112. "$id": "#/properties/author/properties/id",
  113. "type": "string",
  114. "title": "The Id Schema",
  115. "default": "",
  116. "examples": [
  117. "5a4c2bc47fb20f327f60ce49"
  118. ],
  119. "pattern": "^(.*)$"
  120. },
  121. "firstName": {
  122. "$id": "#/properties/author/properties/firstName",
  123. "type": "string",
  124. "title": "The Firstname Schema",
  125. "default": "",
  126. "examples": [
  127. "James"
  128. ],
  129. "pattern": "^(.*)$"
  130. },
  131. "lastName": {
  132. "$id": "#/properties/author/properties/lastName",
  133. "type": "string",
  134. "title": "The Lastname Schema",
  135. "default": "",
  136. "examples": [
  137. "Ables"
  138. ],
  139. "pattern": "^(.*)$"
  140. },
  141. "photoUrl": {
  142. "$id": "#/properties/author/properties/photoUrl",
  143. "type": "string",
  144. "title": "The Photourl Schema",
  145. "default": "",
  146. "examples": [
  147. "https://firebasestorage.googleapis.com/v0/b/blueteam-a010f.appspot.com/o/Internal%20Team%2FHeadshots%2Fc3bd105e-4278-4d47-8004-1f1bbd221aa5?alt=media&token=4d2c3505-0b54-4eb2-ad32-55934dafbf01"
  148. ],
  149. "pattern": "^(.*)$"
  150. }
  151. }
  152. },
  153. "referenceModule": {
  154. "$id": "#/properties/referenceModule",
  155. "type": "object",
  156. "title": "Reference Module Schema",
  157. "description": "Module information where Note is left",
  158. "default": null,
  159. "required": [
  160. "origin",
  161. "path"
  162. ],
  163. "properties": {
  164. "origin": {
  165. "$id": "#/properties/referenceModule/properties/origin",
  166. "type": "object",
  167. "title": "Module Schema ",
  168. "description": "Origin Module where Note is left.",
  169. "default": null,
  170. "required": [
  171. "id",
  172. "name"
  173. ],
  174. "properties": {
  175. "id": {
  176. "$id": "#/properties/referenceModule/properties/origin/properties/id",
  177. "type": "string",
  178. "title": "The Id ",
  179. "default": "",
  180. "examples": [
  181. "INVOICE_MODULE"
  182. ],
  183. "pattern": "^(.*)$"
  184. },
  185. "name": {
  186. "$id": "#/properties/referenceModule/properties/origin/properties/name",
  187. "type": "string",
  188. "title": "The Name Schema",
  189. "default": "",
  190. "examples": [
  191. "Invoice"
  192. ],
  193. "pattern": "^(.*)$"
  194. },
  195. "entity": {
  196. "$id": "#/properties/referenceModule/properties/origin/properties/entity",
  197. "type": "object",
  198. "title": "Entity Schema",
  199. "description": "Entity information if note is related with one entity inside the module ",
  200. "default": null,
  201. "required": [
  202. "id",
  203. "name"
  204. ],
  205. "properties": {
  206. "id": {
  207. "$id": "#/properties/referenceModule/properties/origin/properties/entity/properties/id",
  208. "type": "string",
  209. "title": "The Id Schema",
  210. "default": "",
  211. "examples": [
  212. "InvoiceId"
  213. ],
  214. "pattern": "^(.*)$"
  215. },
  216. "name": {
  217. "$id": "#/properties/referenceModule/properties/origin/properties/entity/properties/name",
  218. "type": "string",
  219. "title": "The Name Schema",
  220. "default": "",
  221. "examples": [
  222. "19-0001E-001"
  223. ],
  224. "pattern": "^(.*)$"
  225. }
  226. }
  227. }
  228. }
  229. },
  230. "path": {
  231. "$id": "#/properties/referenceModule/properties/path",
  232. "type": "array",
  233. "title": "The Path Schema",
  234. "description": "Hierarchy path to the Note's Origin Module ",
  235. "default": null,
  236. "items": {
  237. "$id": "#/properties/referenceModule/properties/path/items",
  238. "type": "object",
  239. "title": "Module Schema",
  240. "default": null,
  241. "required": [
  242. "id",
  243. "name",
  244. "lvl"
  245. ],
  246. "properties": {
  247. "id": {
  248. "$id": "#/properties/referenceModule/properties/path/items/properties/id",
  249. "type": "string",
  250. "title": "The Id Schema",
  251. "default": "",
  252. "examples": [
  253. "PROJECT_MODULE"
  254. ],
  255. "pattern": "^(.*)$"
  256. },
  257. "name": {
  258. "$id": "#/properties/referenceModule/properties/path/items/properties/name",
  259. "type": "string",
  260. "title": "The Name Schema",
  261. "default": "",
  262. "examples": [
  263. "Project"
  264. ],
  265. "pattern": "^(.*)$"
  266. },
  267. "entity": {
  268. "$id": "#/properties/referenceModule/properties/path/items/properties/entity",
  269. "type": "object",
  270. "title": "The entity Schema",
  271. "default": null,
  272. "required": [
  273. "id",
  274. "name"
  275. ],
  276. "properties": {
  277. "id": {
  278. "$id": "#/properties/referenceModule/properties/path/items/properties/entity/properties/id",
  279. "type": "string",
  280. "title": "The Id Schema",
  281. "default": "",
  282. "examples": [
  283. "5de788862c8c776d2fdf7536"
  284. ],
  285. "pattern": "^(.*)$"
  286. },
  287. "name": {
  288. "$id": "#/properties/referenceModule/properties/path/items/properties/entity/properties/name",
  289. "type": "string",
  290. "title": "The Name Schema",
  291. "default": "",
  292. "examples": [
  293. "19-01385E"
  294. ],
  295. "pattern": "^(.*)$"
  296. }
  297. }
  298. },
  299. "lvl": {
  300. "$id": "#/properties/referenceModule/properties/path/items/properties/lvl",
  301. "type": "integer",
  302. "title": "The Lvl Schema",
  303. "description": "Depth of this module in Module Hierarchy ",
  304. "default": 0,
  305. "examples": [
  306. 1
  307. ]
  308. }
  309. }
  310. }
  311. }
  312. }
  313. },
  314. "updatedAt": {
  315. "$id": "#/properties/updatedAt",
  316. "type": "string",
  317. "title": "The Updatedat Schema",
  318. "default": "",
  319. "examples": [
  320. "2019-11-27T16:10:34.554+0000"
  321. ],
  322. "pattern": "^(.*)$",
  323. "format": null
  324. },
  325. "createdAt": {
  326. "$id": "#/properties/createdAt",
  327. "type": "string",
  328. "title": "The Createdat Schema",
  329. "default": "",
  330. "examples": [
  331. "2019-11-27T16:10:34.554+0000"
  332. ],
  333. "pattern": "^(.*)$"
  334. }
  335. }
  336. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement