Adonis Repository

rewrite validator schema string default required rule and number default required rule let string allow empty string and number allow 0

📦 Installing

Simply run the following commands on your shell

npm install @lu7766lu7766/adonis-schema-override
node ace invoke @lu7766lu7766/adonis-schema-override

Usage

schema.string() // "" or "hello"
schema.string.required() // cannot empty

schema.number() // number

📝 Contributing

If you find any issue, bug or missing feature, please kindly create an issue or submit a pull request.