Skip to content

Commit

Permalink
Merge pull request #111 from venmo/pass_through_validate_kwargs
Browse files Browse the repository at this point in the history
pass through kwargs to validate subcalls
  • Loading branch information
pipermerriam committed Apr 21, 2016
2 parents f99ce0b + 3ab0e5a commit 7a3f6ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flex/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ def validate(raw_schema, target=None, **kwargs):
spec, validate that the schema complies to spec. If `target` is provided,
that target will be validated against the provided schema.
"""
schema = schema_validator(raw_schema)
schema = schema_validator(raw_schema, **kwargs)

if target is not None:
validate_object(target, schema=schema)
validate_object(target, schema=schema, **kwargs)


def validate_api_call(schema, raw_request, raw_response):
Expand Down

0 comments on commit 7a3f6ad

Please sign in to comment.