Skip to content

cannot collect all model errors #629

Open
@dedominicisfa

Description

@dedominicisfa

`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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions