Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UserWarning: No validation schema is defined for the arguments of rule 'data_relation' / 'dependencies' / 'unique' #206

Open
ernests opened this issue Feb 21, 2021 · 1 comment

Comments

@ernests
Copy link

ernests commented Feb 21, 2021

Testing eve-sqlalchemy with Eve 1.1.5. and there are couple of Cerberus validator warnings and they break schema generation.

from eve_sqlalchemy.validation import ValidatorSQL
.../python3.9/site-packages/cerberus/validator.py:1607: UserWarning: No validation schema is defined for the arguments of rule 'data_relation'
  warn(
.../python3.9/site-packages/cerberus/validator.py:1607: UserWarning: No validation schema is defined for the arguments of rule 'dependencies'
  warn(
.../python3.9/site-packages/cerberus/validator.py:1607: UserWarning: No validation schema is defined for the arguments of rule 'readonly'
  warn(
.../python3.9/site-packages/cerberus/validator.py:1607: UserWarning: No validation schema is defined for the arguments of rule 'unique'
  warn(

I'm not entirely familiar with eve/cerberus/eve-sqlalchemy architecture. Where should I look to fix this? ValidatorSQL and some tests? I suspect that this could be an easy fix.

@111ashuEdu
Copy link

Testing eve-sqlalchemy with Eve 1.1.5. and there are couple of Cerberus validator warnings and they break schema generation.

from eve_sqlalchemy.validation import ValidatorSQL
.../python3.9/site-packages/cerberus/validator.py:1607: UserWarning: No validation schema is defined for the arguments of rule 'data_relation'
  warn(
.../python3.9/site-packages/cerberus/validator.py:1607: UserWarning: No validation schema is defined for the arguments of rule 'dependencies'
  warn(
.../python3.9/site-packages/cerberus/validator.py:1607: UserWarning: No validation schema is defined for the arguments of rule 'readonly'
  warn(
.../python3.9/site-packages/cerberus/validator.py:1607: UserWarning: No validation schema is defined for the arguments of rule 'unique'
  warn(

I'm not entirely familiar with eve/cerberus/eve-sqlalchemy architecture. Where should I look to fix this? ValidatorSQL and some tests? I suspect that this could be an easy fix.

I am also getting the same issue but i have used
from cerberus import Validator
have you fixed it or still have an issue. Please let me know if you get any solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants