File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
localstack/services/apigateway Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -948,6 +948,7 @@ def import_documentation_parts(
948
948
documentation = resolved_schema .get (OpenAPIExt .DOCUMENTATION )
949
949
950
950
ids = []
951
+ # overwrite mode
951
952
if mode == PutMode .overwrite :
952
953
rest_api_container .documentation_parts .clear ()
953
954
for doc_part in documentation ["documentationParts" ]:
@@ -956,13 +957,7 @@ def import_documentation_parts(
956
957
id = entity_id , ** doc_part
957
958
)
958
959
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
966
961
return DocumentationPartIds (ids = ids )
967
962
968
963
# base path mappings
You can’t perform that action at this time.
0 commit comments