From 7686cff71409f7d72aad381a93f6f65e6e21f3f7 Mon Sep 17 00:00:00 2001 From: cloudant-sdks-automation <71659186+cloudant-sdks-automation@users.noreply.github.com> Date: Tue, 29 Jul 2025 12:42:02 +0000 Subject: [PATCH] fix(generated): use correct setters/constants in postIndex examples Generated SDK source code using: - Generator version 3.106.0 - Specification version 1.0.0-dev0.1.28 - Automation (cloudant-sdks) version dfe7806 --- examples/README.md | 2 +- .../snippets/postIndex/example_request_using_text_type_index.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/README.md b/examples/README.md index 0018942f..9673e113 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1405,7 +1405,7 @@ service = CloudantV1.new_instance() # Type "text" index fields require an object with a name and type properties for the field. index_field = IndexField( name="address", - type="string" + type=IndexField.TypeEnum.STRING ) index = IndexDefinition( fields=[index_field] diff --git a/examples/snippets/postIndex/example_request_using_text_type_index.py b/examples/snippets/postIndex/example_request_using_text_type_index.py index 0d085675..6c3e21f8 100644 --- a/examples/snippets/postIndex/example_request_using_text_type_index.py +++ b/examples/snippets/postIndex/example_request_using_text_type_index.py @@ -6,7 +6,7 @@ # Type "text" index fields require an object with a name and type properties for the field. index_field = IndexField( name="address", - type="string" + type=IndexField.TypeEnum.STRING ) index = IndexDefinition( fields=[index_field]