Skip to content

Commit

Permalink
Merge pull request #99 from nrathaus/fix_payloads
Browse files Browse the repository at this point in the history
Set the 'type' param so that future calls will know its type
  • Loading branch information
dmdhrumilmistry authored May 12, 2024
2 parents f782af4 + 4690359 commit 27ae825
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/offat/tester/fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def fuzz_type_value(param_type: str, param_name: str):
def fill_params(params: list[dict], is_v3: bool) -> list[dict]:
"""fills params for OAS/swagger specs"""
schema_params = []
for index in range(len(params)):
for index, _ in enumerate(params):
param_type = (
params[index].get("schema", {}).get("type")
if is_v3
Expand All @@ -125,6 +125,7 @@ def fill_params(params: list[dict], is_v3: bool) -> list[dict]:
"name": param_name,
"required": param_is_required,
"value": param_value,
"type": param_type
}
]

Expand Down

0 comments on commit 27ae825

Please sign in to comment.