mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-23 08:20:27 +01:00
Fix
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
import { schema } from '@ioc:Adonis/Core/Validator'
|
||||
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
|
||||
|
||||
export default class StateValidator {
|
||||
constructor (protected ctx: HttpContextContract) {
|
||||
}
|
||||
|
||||
public schema = schema.create({
|
||||
is_sleeping: schema.boolean.optional(),
|
||||
is_learning: schema.boolean.optional(),
|
||||
is_developing: schema.boolean.optional(),
|
||||
is_listening_music: schema.boolean.optional(),
|
||||
})
|
||||
|
||||
|
||||
public messages = {
|
||||
required: 'Le champ {{field}} doit être valide !',
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user