feat(api): add create folder endpoint for users
This commit is contained in:
@@ -22,6 +22,9 @@ exports[`Folder model > jsonSchema should have correct validations 1`] = `
|
||||
"type": "string",
|
||||
},
|
||||
},
|
||||
"required": [
|
||||
"name",
|
||||
],
|
||||
"type": "object",
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -7,6 +7,8 @@ class Folder extends Base {
|
||||
|
||||
static jsonSchema = {
|
||||
type: 'object',
|
||||
required: ['name'],
|
||||
|
||||
properties: {
|
||||
id: { type: 'string', format: 'uuid' },
|
||||
name: { type: 'string', minLength: 1 },
|
||||
|
||||
Reference in New Issue
Block a user