Add tags pivot in projects

This commit is contained in:
2021-08-16 23:30:32 +02:00
parent 5c3dd37758
commit 2931be07bb
4 changed files with 17 additions and 9 deletions

View File

@@ -10,7 +10,8 @@ export default class ProjectStoreValidator {
description: schema.string(),
progress: schema.number(),
url: schema.string(),
cover: schema.string()
cover: schema.string(),
tags: schema.array.optional().members(schema.string())
})
public messages = {

View File

@@ -7,7 +7,8 @@ export default class ProjectUpdateValidator {
description: schema.string.optional(),
progress: schema.number.optional(),
url: schema.string.optional(),
cover: schema.string.optional()
cover: schema.string.optional(),
tags: schema.array.optional().members(schema.string())
})
public messages = {
required: 'The field {{field}} is required'