diff --git a/sphinxcontrib/openapi/openapi31.py b/sphinxcontrib/openapi/openapi31.py index eb3a7e0..7bc4f06 100644 --- a/sphinxcontrib/openapi/openapi31.py +++ b/sphinxcontrib/openapi/openapi31.py @@ -279,7 +279,7 @@ def _httpresource( ): # https://github.com/OAI/OpenAPI-Specification/blob/3.1.0/versions/3.1.0.md#operation-object parameters = properties.get("parameters", []) - responses = properties["responses"] + responses = properties.get("responses", {}) query_param_examples = [] indent = " " diff --git a/tests/OpenAPI-Specification b/tests/OpenAPI-Specification index 42a9e3d..69d8b79 160000 --- a/tests/OpenAPI-Specification +++ b/tests/OpenAPI-Specification @@ -1 +1 @@ -Subproject commit 42a9e3d4eddade52363a5c4fac852e80681c2fe5 +Subproject commit 69d8b7953c3259e243cf746388a0951b89649763