Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/api_endpoint/swagger2/api_swagger_parameter_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def wrap_form_data_params(self, type_dict, wrapper_name):
"name": property_name}
formDataEntry.update({k: v for k, v in property_value.items() if k in ['type', 'description']})
if "required" in definition and property_name in definition["required"]:
formDataEntry["required"] = "true";
formDataEntry["required"] = True;
parameter_list.append(formDataEntry)
elif "$ref" in definition:
reference = definition["$ref"].replace("#/definitions/", "")
Expand Down
4 changes: 2 additions & 2 deletions lib/swagger_final_path_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def process_output(
'basic_auth': {
'type': 'basic'
}},
'basePath': '',
'basePath': '/',
'produces': [
'application/json'
],
Expand Down Expand Up @@ -159,4 +159,4 @@ def remove_query_params(self, path_dict):
operation_dict['parameters'].append(q_param)
path_dict[new_path] = path_dict.pop(old_path)
for path in paths_to_delete:
del path_dict[path]
del path_dict[path]