mirror of
https://github.com/correl/openapi-core.git
synced 2024-11-21 19:18:41 +00:00
Parameter value deserialization error handling
This commit is contained in:
parent
d4ada7bcbb
commit
95204cba61
1 changed files with 4 additions and 1 deletions
|
@ -108,7 +108,10 @@ class Parameter(object):
|
|||
if not self.schema:
|
||||
return value
|
||||
|
||||
deserialized = self.deserialize(value)
|
||||
try:
|
||||
deserialized = self.deserialize(value)
|
||||
except ValueError as exc:
|
||||
raise InvalidParameterValue(str(exc))
|
||||
|
||||
try:
|
||||
return self.schema.unmarshal(deserialized)
|
||||
|
|
Loading…
Reference in a new issue