Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing argument, Set content_type in handle_request_mapping #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
5 changes: 4 additions & 1 deletion lib/api_endpoint/oas3/api_metamodel2openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@ def get_path(
show_unreleased_apis):
documentation = operation_info.documentation
op_metadata = operation_info.metadata
method_info = op_metadata[http_method]
content_type = method_info.elements["consumes"].string_value if "consumes" in method_info.elements else None

params = operation_info.params
errors = operation_info.errors
output = operation_info.output
http_method = http_method.lower()
par_array, url = self.handle_request_mapping(url, http_method, service_name,
operation_id, params, type_dict,
operation_id, params, content_type, type_dict,
structure_dict, enum_dict, show_unreleased_apis, api_open_ph)
response_map = api_open_rh.populate_response_map(
output,
Expand Down