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

make schema non-strict by default #816

Merged
merged 3 commits into from
Jul 18, 2018
Merged

make schema non-strict by default #816

merged 3 commits into from
Jul 18, 2018

Conversation

ashcherbakov
Copy link
Contributor

Signed-off-by: ashcherbakov alexander.sherbakov@dsr-company.com

Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>


def test_client_req_not_strict_by_default():
validator = ClientMessageValidator(operation_schema_is_strict=False)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the test is intended for verifying the default behavior then no flag should be given when constructing the validator, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The field doesn't have a default value, so it must always be specified (unlike schema_is_strict).

@ashcherbakov
Copy link
Contributor Author

(ci) test this please

Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-company.com>
Copy link
Member

@skhoroshavin skhoroshavin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks for now, but in future we probably should consider using explicit protocol versions for node to node messages

@andkononykhin andkononykhin merged commit 42cb917 into master Jul 18, 2018
@ashcherbakov ashcherbakov deleted the unstrict-schema branch August 3, 2018 09:11
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

Successfully merging this pull request may close these issues.

None yet

4 participants