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

Allow strict=False to override strict setting in Meta options class. #550

Closed
douglas-treadwell opened this Issue Nov 18, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@douglas-treadwell

douglas-treadwell commented Nov 18, 2016

I prefer strict=True by default (as someone else requested in another issue), so I was setting it in the Meta class to True... but then I found I could not set it to False in cases when I wanted it to be False.

Workaround for now... implemented a BaseSchema with overridden strict kwarg like this:

class BaseSchema(Schema):
    def __init__(self, strict=True, **kwargs):
        super(BaseSchema, self).__init__(strict=strict, **kwargs)
@sloria

This comment has been minimized.

Member

sloria commented Jan 8, 2017

Fixed by #569

@sloria sloria closed this Jan 8, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment