mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 20:19:26 +01:00
Working on posts
This commit is contained in:
@@ -10,7 +10,8 @@ export default class PostStoreValidator {
|
||||
title: schema.string(),
|
||||
description: schema.string(),
|
||||
cover: schema.string(),
|
||||
readingTime: schema.number()
|
||||
readingTime: schema.number(),
|
||||
date: schema.string(),
|
||||
})
|
||||
public messages = {
|
||||
required: 'The field {{field}} is required'
|
||||
|
||||
@@ -10,7 +10,8 @@ export default class PostUpdateValidator {
|
||||
title: schema.string.optional(),
|
||||
description: schema.string.optional(),
|
||||
cover: schema.string.optional(),
|
||||
readingTime: schema.number.optional()
|
||||
readingTime: schema.number.optional(),
|
||||
date: schema.string.optional(),
|
||||
})
|
||||
public messages = {
|
||||
required: 'The field {{field}} is required'
|
||||
|
||||
Reference in New Issue
Block a user