mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 20:19:26 +01:00
19 lines
525 B
TypeScript
19 lines
525 B
TypeScript
import {schema} from '@ioc:Adonis/Core/Validator'
|
|
import {HttpContextContract} from '@ioc:Adonis/Core/HttpContext'
|
|
|
|
export default class ProjectUpdateValidator {
|
|
public schema = schema.create({
|
|
name: schema.string.optional(),
|
|
description: schema.string.optional(),
|
|
progress: schema.number.optional(),
|
|
url: schema.string.optional(),
|
|
cover: schema.string.optional()
|
|
})
|
|
public messages = {
|
|
required: 'The field {{field}} is required'
|
|
}
|
|
|
|
constructor (protected ctx: HttpContextContract) {
|
|
}
|
|
}
|