You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the library code, I set validate=True in the model construvtor and I collect both errors now. the issue remains that the instance is not created and, if I set f1='a', so it's valid, I'd expect that instance.f1 would be available as 'a'. But as the instance does not initialize, I haven't f1 available even if it is valid
`from schematics.models import Model
from schematics.types import StringType, FloatType
class schema(Model):
f1 = StringType(choices=['a'])
f2 = FloatType()
sample ={'f1': 'b', 'f2': 'x'}
instance = schema (sample)
instance.validate`
The exception only shows the float error without even initialixing the instance. How do I collect all errors according to documentation?
The text was updated successfully, but these errors were encountered: