Skip to content

Commit

Permalink
fix: validator incorrect example
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed May 29, 2021
1 parent 2150532 commit ac7838b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/guides/validator/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ Requests negotiating using `Accept=application/vnd.api+json` header, receives th
You can also use the validator outside of an HTTP request by importing the `validate` method from the Validator module. The functional API remains the same, however you will have to manually provide the `data` to validate.

```ts
import { validate, schema } from '@ioc:Adonis/Core/Validator'
import { validator, schema } from '@ioc:Adonis/Core/Validator'

await validate({
await validator.validate({
schema: schema.create({
// ... define schema
}),
Expand Down

0 comments on commit ac7838b

Please sign in to comment.