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

Remove instance type check while marshaling models #236

Conversation

macisamuele
Copy link
Collaborator

Fixes: #222
The goal of this PR is to remove model type check while marshaling models.
The "old" behavior adds a sort of type validation even if validate_response is set to false.

With this PR the only check that is made is that marshal_model is a bravado_core.model.Model instance, so we have guarantees that model_value._as_dict() will not raise an error.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 97.928% when pulling 6dd3dcd on macisamuele:maci-remove-instance-type-check-while-marshaling-models into c17d605 on Yelp:master.

@sjaensch sjaensch merged commit 20d7d7f into Yelp:master Jan 16, 2018
@macisamuele macisamuele deleted the maci-remove-instance-type-check-while-marshaling-models branch February 7, 2018 22:08
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.

3 participants