Closed finestgecko closed 2 years ago
I am trying to use rules.alphaNum() (see docs) but I get this error:
rules.alphaNum()
Property 'alphaNum' does not exist on type 'Rules'.
AdonisJS 5.8.5
Node.js v16.15.0 NPM v8.5.5
const validated = await request.validate({ schema: schema.create({ code: schema.string([rules.alphaNum()]) }), messages: {}, })
Seems like the docs got published before the actual implementation. I have just made a release, so please update the @adonisjs/core to 5.8.6
@adonisjs/core
5.8.6
I am trying to use
rules.alphaNum()
(see docs) but I get this error:Package version
AdonisJS 5.8.5
Node.js and npm version
Node.js v16.15.0 NPM v8.5.5
Sample Code (to reproduce the issue)