Skip to content

Commit 5df5a67

Browse files
cloudant-sdks-automationeiri
authored andcommitted
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
1 parent 6e546ec commit 5df5a67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,7 @@ service = CloudantV1.new_instance()
14051405
# Type "text" index fields require an object with a name and type properties for the field.
14061406
index_field = IndexField(
14071407
name="address",
1408-
type="string"
1408+
type=IndexField.TypeEnum.STRING
14091409
)
14101410
index = IndexDefinition(
14111411
fields=[index_field]

examples/snippets/postIndex/example_request_using_text_type_index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Type "text" index fields require an object with a name and type properties for the field.
77
index_field = IndexField(
88
name="address",
9-
type="string"
9+
type=IndexField.TypeEnum.STRING
1010
)
1111
index = IndexDefinition(
1212
fields=[index_field]

0 commit comments

Comments
 (0)