mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 12:14:33 +01:00
18 lines
425 B
TypeScript
18 lines
425 B
TypeScript
import { schema } from '@ioc:Adonis/Core/Validator'
|
|
import type { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
|
|
|
|
export default class SkillStoreValidator {
|
|
constructor(protected ctx: HttpContextContract) {
|
|
}
|
|
|
|
public schema = schema.create({
|
|
name: schema.string(),
|
|
cover: schema.string(),
|
|
color: schema.string(),
|
|
})
|
|
|
|
public messages = {
|
|
required: 'The field {{field}} is required',
|
|
}
|
|
}
|