adonisjs / lucid

AdonisJS SQL ORM. Supports PostgreSQL, MySQL, MSSQL, Redshift, SQLite and many more
https://lucid.adonisjs.com/
MIT License
1.02k stars 189 forks source link

`unique` and `exists` are only available to `VineString` type #997

Closed Tahul closed 4 months ago

Tahul commented 4 months ago

Package version

20.1.0

Describe the bug

In the previous version of @adonisjs/validator, we had access to unique and exists on rules.number too.

In the current Vine bindings, it only gets added injected VineString, making it difficult to check for existence/uniqueness of numeric values.

Reproduction repo

No response