Skip to content

Commit dbaef66

Browse files
authored
fix(specs): userData is any type (#4702)
1 parent edeeda3 commit dbaef66

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

specs/common/schemas/IndexSettings.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,6 @@ hitsPerPage:
768768
- Pagination
769769

770770
userData:
771-
type: object
772771
example:
773772
settingID: f2a7b51e3503acc6a39b3784ffb84300
774773
pluginVersion: 1.6.0

templates/kotlin/json_object_serializer.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ internal object {{classname}}Serializer : KSerializer<{{classname}}> {
22
33
override val descriptor: SerialDescriptor = buildClassSerialDescriptor("{{classname}}") {
44
{{#vars}}
5-
element<{{{datatypeWithEnum}}}>("{{{vendorExtensions.x-base-name-literal}}}"{{^required}}, isOptional = true{{/required}})
5+
element<{{#isAnyType}}JsonElement{{/isAnyType}}{{^isAnyType}}{{{datatypeWithEnum}}}{{/isAnyType}}>("{{{vendorExtensions.x-base-name-literal}}}"{{^required}}, isOptional = true{{/required}})
66
{{/vars}}
77
}
88

tests/CTS/requests/search/setSettings.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,15 @@
760760
"indexName": "theIndexName",
761761
"indexSettings": {
762762
"ranking": [
763-
"desc(is_popular)", "typo", "geo", "words", "filters", "proximity", "attribute", "exact", "custom"
763+
"desc(is_popular)",
764+
"typo",
765+
"geo",
766+
"words",
767+
"filters",
768+
"proximity",
769+
"attribute",
770+
"exact",
771+
"custom"
764772
]
765773
}
766774
},
@@ -769,7 +777,15 @@
769777
"method": "PUT",
770778
"body": {
771779
"ranking": [
772-
"desc(is_popular)", "typo", "geo", "words", "filters", "proximity", "attribute", "exact", "custom"
780+
"desc(is_popular)",
781+
"typo",
782+
"geo",
783+
"words",
784+
"filters",
785+
"proximity",
786+
"attribute",
787+
"exact",
788+
"custom"
773789
]
774790
}
775791
}

0 commit comments

Comments
 (0)