Skip to content

Commit

Permalink
Merge pull request #380 from chhsiao1981/parameters
Browse files Browse the repository at this point in the history
apidoc: check schema in params
  • Loading branch information
chhsiao1981 authored Aug 4, 2023
2 parents cf21149 + dd81700 commit 3d953d0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apidoc/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ def _is_not_authorization(x):
if '$ref' in each:
val = re.sub(r'#/definitions', '#/components/schemas', each['$ref'])
each['$ref'] = val
if 'schema' in each:
schema = each['schema']
if '$ref' in schema:
val = re.sub(r'#/definitions', '#/components/schemas', schema['$ref'])
schema['$ref'] = val
data_by_method['parameters'] = params2

# definitions
Expand Down

0 comments on commit 3d953d0

Please sign in to comment.