RecifeJs

RecifeJs

  • Docs
  • Blog
  • Github

›Concepts Basics

RecifeJs

  • About
  • Philosophy
  • Contribution

Getting Started

  • Installation
  • Settings

Concepts Basics

  • Controllers
  • Decorators
  • Middlewares
  • Models
  • Plugins
  • Scalars
  • Validators

CLI

  • Introduction
  • Create Structures

Validators

Creating Validator

Use the CLI for create a new validator:

recife validator User

or

npx recife-cli validator User


The validator will be created in the src/validators directory with the name UserValidator.ts. And it will have the following content:

class UserValidator {
  constructor() {
    //
  }
}

export default UserValidator;
Last updated on 6/13/2020 by André Lins
← ScalarsIntroduction →
  • Creating Validator
RecifeJs

Docs

Getting StartedCLIPhilosophy

Community

User ShowcaseProject ChatBlogGitHubStar
Copyright © 2020 RecifeJs