mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 20:19:26 +01:00
Add tags pivot in projects
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user