mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-27 01:50:26 +01:00
Working on posts
This commit is contained in:
@@ -6,7 +6,11 @@ export default class PostUpdateValidator {
|
||||
public schema = schema.create({
|
||||
slug: schema.string.optional(),
|
||||
likes: schema.number.optional(),
|
||||
tags: schema.array.optional().members(schema.string())
|
||||
tags: schema.array.optional().members(schema.string()),
|
||||
title: schema.string.optional(),
|
||||
description: schema.string.optional(),
|
||||
cover: schema.string.optional(),
|
||||
readingTime: schema.number.optional()
|
||||
})
|
||||
public messages = {
|
||||
required: 'The field {{field}} is required'
|
||||
|
||||
Reference in New Issue
Block a user