This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Evers
authored and
Evers
committed
Mar 4, 2020
1 parent
cd52500
commit 8a222f3
Showing
6 changed files
with
81 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/services/attachments/schemas/attachment.create.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"title": "attachmentCreate", | ||
"required": [ | ||
"createdBy", | ||
"type", | ||
"target", | ||
"targetModel" | ||
], | ||
"properties": { | ||
"title": { | ||
"type": "string" | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"type": { | ||
"type": "string" | ||
}, | ||
"value": { | ||
"type": ["integer","string", "boolean", "object"] | ||
}, | ||
"target": { | ||
"type": "string", | ||
"pattern": "[a-f0-9]{24}" | ||
}, | ||
"targetModel": { | ||
"type": "string", | ||
"enum": ["lesson"] | ||
}, | ||
"createdBy": { | ||
"type": "string", | ||
"pattern": "[a-f0-9]{24}" | ||
} | ||
}, | ||
"additionalProperties": false | ||
} |
24 changes: 24 additions & 0 deletions
24
src/services/attachments/schemas/attachment.patch.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"title": "attachmentCreate", | ||
"required": [ | ||
"updatedBy" | ||
], | ||
"properties": { | ||
"title": { | ||
"type": "string" | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"value": { | ||
"type": ["integer","string", "boolean", "object"] | ||
}, | ||
"updatedBy": { | ||
"type": "string", | ||
"pattern": "[a-f0-9]{24}" | ||
} | ||
}, | ||
"additionalProperties": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
exports.createSchema = require('./attachment.create.schema.json'); | ||
exports.patchSchema = require('./attachment.patch.schema.json'); |