Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "definitions": {},
- "$schema": "http://json-schema.org/draft-07/schema#",
- "$id": "http://example.com/root.json",
- "type": "object",
- "title": "The Root Schema",
- "required": [
- "id",
- "title",
- "content",
- "author",
- "referenceModule",
- "updatedAt",
- "createdAt"
- ],
- "properties": {
- "id": {
- "$id": "#/properties/id",
- "type": "string",
- "title": "Note Id",
- "default": "",
- "examples": [
- "5ad88dbb7fb20f1f5d312ed4"
- ],
- "pattern": "^(.*)$"
- },
- "title": {
- "$id": "#/properties/title",
- "type": "string",
- "title": "Note Title",
- "description": "Autogenerated based on module where note is left.",
- "default": "",
- "examples": [
- "INVOICE - 19-01385E-001F"
- ],
- "pattern": "^(.*)$"
- },
- "content": {
- "$id": "#/properties/content",
- "type": "string",
- "title": "Note Content",
- "description": "Note Content which can contain mentions defined in Mention Section. ",
- "default": "",
- "examples": [
- "<@id:5b17e7637fb20f0e27c4e439|name:David Brown> Make sure to share the Invoice with the client by tomorrow morning."
- ],
- "pattern": "^(.*)$"
- },
- "taggedUsers": {
- "$id": "#/properties/taggedUsers",
- "type": "array",
- "title": "Tagged Users",
- "description": "Contains all users tagged in content",
- "default": null,
- "items": {
- "$id": "#/properties/taggedUsers/items",
- "type": "object",
- "title": "User Schema",
- "default": null,
- "required": [
- "id",
- "firstName",
- "lastName"
- ],
- "properties": {
- "id": {
- "$id": "#/properties/taggedUsers/items/properties/id",
- "type": "string",
- "title": "User Id",
- "default": "",
- "examples": [
- "5b17e7637fb20f0e27c4e439"
- ],
- "pattern": "^(.*)$"
- },
- "firstName": {
- "$id": "#/properties/taggedUsers/items/properties/firstName",
- "type": "string",
- "title": "The Firstname Schema",
- "default": "",
- "examples": [
- "David"
- ],
- "pattern": "^(.*)$"
- },
- "lastName": {
- "$id": "#/properties/taggedUsers/items/properties/lastName",
- "type": "string",
- "title": "The Lastname Schema",
- "default": "",
- "examples": [
- "Brown"
- ],
- "pattern": "^(.*)$"
- }
- }
- }
- },
- "author": {
- "$id": "#/properties/author",
- "type": "object",
- "title": "User Schema ",
- "default": null,
- "required": [
- "id",
- "firstName",
- "lastName",
- "photoUrl"
- ],
- "properties": {
- "id": {
- "$id": "#/properties/author/properties/id",
- "type": "string",
- "title": "The Id Schema",
- "default": "",
- "examples": [
- "5a4c2bc47fb20f327f60ce49"
- ],
- "pattern": "^(.*)$"
- },
- "firstName": {
- "$id": "#/properties/author/properties/firstName",
- "type": "string",
- "title": "The Firstname Schema",
- "default": "",
- "examples": [
- "James"
- ],
- "pattern": "^(.*)$"
- },
- "lastName": {
- "$id": "#/properties/author/properties/lastName",
- "type": "string",
- "title": "The Lastname Schema",
- "default": "",
- "examples": [
- "Ables"
- ],
- "pattern": "^(.*)$"
- },
- "photoUrl": {
- "$id": "#/properties/author/properties/photoUrl",
- "type": "string",
- "title": "The Photourl Schema",
- "default": "",
- "examples": [
- "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"
- ],
- "pattern": "^(.*)$"
- }
- }
- },
- "referenceModule": {
- "$id": "#/properties/referenceModule",
- "type": "object",
- "title": "Reference Module Schema",
- "description": "Module information where Note is left",
- "default": null,
- "required": [
- "origin",
- "path"
- ],
- "properties": {
- "origin": {
- "$id": "#/properties/referenceModule/properties/origin",
- "type": "object",
- "title": "Module Schema ",
- "description": "Origin Module where Note is left.",
- "default": null,
- "required": [
- "id",
- "name"
- ],
- "properties": {
- "id": {
- "$id": "#/properties/referenceModule/properties/origin/properties/id",
- "type": "string",
- "title": "The Id ",
- "default": "",
- "examples": [
- "INVOICE_MODULE"
- ],
- "pattern": "^(.*)$"
- },
- "name": {
- "$id": "#/properties/referenceModule/properties/origin/properties/name",
- "type": "string",
- "title": "The Name Schema",
- "default": "",
- "examples": [
- "Invoice"
- ],
- "pattern": "^(.*)$"
- },
- "entity": {
- "$id": "#/properties/referenceModule/properties/origin/properties/entity",
- "type": "object",
- "title": "Entity Schema",
- "description": "Entity information if note is related with one entity inside the module ",
- "default": null,
- "required": [
- "id",
- "name"
- ],
- "properties": {
- "id": {
- "$id": "#/properties/referenceModule/properties/origin/properties/entity/properties/id",
- "type": "string",
- "title": "The Id Schema",
- "default": "",
- "examples": [
- "InvoiceId"
- ],
- "pattern": "^(.*)$"
- },
- "name": {
- "$id": "#/properties/referenceModule/properties/origin/properties/entity/properties/name",
- "type": "string",
- "title": "The Name Schema",
- "default": "",
- "examples": [
- "19-0001E-001"
- ],
- "pattern": "^(.*)$"
- }
- }
- }
- }
- },
- "path": {
- "$id": "#/properties/referenceModule/properties/path",
- "type": "array",
- "title": "The Path Schema",
- "description": "Hierarchy path to the Note's Origin Module ",
- "default": null,
- "items": {
- "$id": "#/properties/referenceModule/properties/path/items",
- "type": "object",
- "title": "Module Schema",
- "default": null,
- "required": [
- "id",
- "name",
- "lvl"
- ],
- "properties": {
- "id": {
- "$id": "#/properties/referenceModule/properties/path/items/properties/id",
- "type": "string",
- "title": "The Id Schema",
- "default": "",
- "examples": [
- "PROJECT_MODULE"
- ],
- "pattern": "^(.*)$"
- },
- "name": {
- "$id": "#/properties/referenceModule/properties/path/items/properties/name",
- "type": "string",
- "title": "The Name Schema",
- "default": "",
- "examples": [
- "Project"
- ],
- "pattern": "^(.*)$"
- },
- "entity": {
- "$id": "#/properties/referenceModule/properties/path/items/properties/entity",
- "type": "object",
- "title": "The entity Schema",
- "default": null,
- "required": [
- "id",
- "name"
- ],
- "properties": {
- "id": {
- "$id": "#/properties/referenceModule/properties/path/items/properties/entity/properties/id",
- "type": "string",
- "title": "The Id Schema",
- "default": "",
- "examples": [
- "5de788862c8c776d2fdf7536"
- ],
- "pattern": "^(.*)$"
- },
- "name": {
- "$id": "#/properties/referenceModule/properties/path/items/properties/entity/properties/name",
- "type": "string",
- "title": "The Name Schema",
- "default": "",
- "examples": [
- "19-01385E"
- ],
- "pattern": "^(.*)$"
- }
- }
- },
- "lvl": {
- "$id": "#/properties/referenceModule/properties/path/items/properties/lvl",
- "type": "integer",
- "title": "The Lvl Schema",
- "description": "Depth of this module in Module Hierarchy ",
- "default": 0,
- "examples": [
- 1
- ]
- }
- }
- }
- }
- }
- },
- "updatedAt": {
- "$id": "#/properties/updatedAt",
- "type": "string",
- "title": "The Updatedat Schema",
- "default": "",
- "examples": [
- "2019-11-27T16:10:34.554+0000"
- ],
- "pattern": "^(.*)$",
- "format": null
- },
- "createdAt": {
- "$id": "#/properties/createdAt",
- "type": "string",
- "title": "The Createdat Schema",
- "default": "",
- "examples": [
- "2019-11-27T16:10:34.554+0000"
- ],
- "pattern": "^(.*)$"
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement