Revert giving get() a default
As per the PR review. Signed-off-by: Alexey Rusakov <Alexey.Rusakov@pm.me>
This commit is contained in:
parent
c6bfac41c5
commit
346db48588
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ def check_schema(filepath, example, schema):
|
|||
|
||||
|
||||
def check_parameter(filepath, request, parameter):
|
||||
schema = parameter.get("schema", {})
|
||||
schema = parameter.get("schema")
|
||||
example = schema.get('example')
|
||||
|
||||
if example and schema:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue