eve-sqlalchemy icon indicating copy to clipboard operation
eve-sqlalchemy copied to clipboard

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

Open ernests opened this issue 5 years ago • 1 comments

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.

ernests avatar Feb 21 '21 09:02 ernests

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

111ashuEdu avatar Mar 30 '22 08:03 111ashuEdu