10000 wip support to import documentation parts · localstack/localstack@b1e7dce · GitHub
[go: up one dir, main page]

Skip to content

Commit b1e7dce

Browse files
committed
wip support to import documentation parts
1 parent 51f41a6 commit b1e7dce

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

localstack/services/apigateway/provider.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,7 @@ def import_documentation_parts(
948948
documentation = resolved_schema.get(OpenAPIExt.DOCUMENTATION)
949949

950950
ids = []
951+
# overwrite mode
951952
if mode == PutMode.overwrite:
952953
rest_api_container.documentation_parts.clear()
953954
for doc_part in documentation["documentationParts"]:
@@ -956,13 +957,7 @@ def import_documentation_parts(
956957
id=entity_id, **doc_part
957958
)
958959
ids.append(entity_id)
959-
960-
# doc_parts = rest_api_container.documentation_parts.values()
961-
# for doc_part in doc_parts:
962-
# # override doc_part with same location and properties of the imported doc_part
963-
# if doc_part.location in to_import_doc_parts:
964-
# doc_part.properties = to_import_doc_parts[doc_part.location]
965-
960+
# TODO: implement the merge mode
966961
return DocumentationPartIds(ids=ids)
967962

968963
# base path mappings

0 commit comments

Comments
 (0)
0