Skip to content

Commit 9e62b39

Browse files
committed
Update openapi models.
1 parent be95dbb commit 9e62b39

File tree

4 files changed

+27
-24
lines changed

4 files changed

+27
-24
lines changed

src/main/java/org/typesense/model/InlineResponse2001.java

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,26 @@
1515

1616
public class InlineResponse2001 {
1717

18-
@Schema(description = "")
19-
private String version = null;
18+
@Schema(example = "1", required = true, description = "The number of documents that have been updated")
2019
/**
21-
* Get version
22-
* @return version
20+
* The number of documents that have been updated
2321
**/
24-
@JsonProperty("version")
25-
public String getVersion() {
26-
return version;
22+
private Integer numUpdated = null;
23+
/**
24+
* The number of documents that have been updated
25+
* @return numUpdated
26+
**/
27+
@JsonProperty("num_updated")
28+
public Integer getNumUpdated() {
29+
return numUpdated;
2730
}
2831

29-
public void setVersion(String version) {
30-
this.version = version;
32+
public void setNumUpdated(Integer numUpdated) {
33+
this.numUpdated = numUpdated;
3134
}
3235

33-
public InlineResponse2001 version(String version) {
34-
this.version = version;
36+
public InlineResponse2001 numUpdated(Integer numUpdated) {
37+
this.numUpdated = numUpdated;
3538
return this;
3639
}
3740

@@ -41,7 +44,7 @@ public String toString() {
4144
StringBuilder sb = new StringBuilder();
4245
sb.append("class InlineResponse2001 {\n");
4346

44-
sb.append(" version: ").append(toIndentedString(version)).append("\n");
47+
sb.append(" numUpdated: ").append(toIndentedString(numUpdated)).append("\n");
4548
sb.append("}");
4649
return sb.toString();
4750
}

src/main/java/org/typesense/model/SearchGroupedHit.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
public class SearchGroupedHit {
2020

2121
@Schema(required = true, description = "")
22-
private List<String> groupKey = new ArrayList<String>();
22+
private List<Object> groupKey = new ArrayList<Object>();
2323

2424
@Schema(required = true, description = "The documents that matched the search query")
2525
/**
@@ -31,20 +31,20 @@ public class SearchGroupedHit {
3131
* @return groupKey
3232
**/
3333
@JsonProperty("group_key")
34-
public List<String> getGroupKey() {
34+
public List<Object> getGroupKey() {
3535
return groupKey;
3636
}
3737

38-
public void setGroupKey(List<String> groupKey) {
38+
public void setGroupKey(List<Object> groupKey) {
3939
this.groupKey = groupKey;
4040
}
4141

42-
public SearchGroupedHit groupKey(List<String> groupKey) {
42+
public SearchGroupedHit groupKey(List<Object> groupKey) {
4343
this.groupKey = groupKey;
4444
return this;
4545
}
4646

47-
public SearchGroupedHit addGroupKeyItem(String groupKeyItem) {
47+
public SearchGroupedHit addGroupKeyItem(Object groupKeyItem) {
4848
this.groupKey.add(groupKeyItem);
4949
return this;
5050
}

src/main/java/org/typesense/model/SearchParameters.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public class SearchParameters {
9191
/**
9292
* The number of typographical errors (1 or 2) that would be tolerated. Default: 2
9393
**/
94-
private Integer numTypos = null;
94+
private String numTypos = null;
9595

9696
@Schema(description = "Results from this specific page number would be fetched.")
9797
/**
@@ -481,15 +481,15 @@ public SearchParameters facetQuery(String facetQuery) {
481481
* @return numTypos
482482
**/
483483
@JsonProperty("num_typos")
484-
public Integer getNumTypos() {
484+
public String getNumTypos() {
485485
return numTypos;
486486
}
487487

488-
public void setNumTypos(Integer numTypos) {
488+
public void setNumTypos(String numTypos) {
489489
this.numTypos = numTypos;
490490
}
491491

492-
public SearchParameters numTypos(Integer numTypos) {
492+
public SearchParameters numTypos(String numTypos) {
493493
this.numTypos = numTypos;
494494
return this;
495495
}

src/main/java/org/typesense/model/SearchResult.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ public class SearchResult {
3636
**/
3737
private Integer searchTimeMs = null;
3838

39-
@Schema(description = "The total number of pages")
39+
@Schema(description = "The total number of documents in the collection")
4040
/**
41-
* The total number of pages
41+
* The total number of documents in the collection
4242
**/
4343
private Integer outOf = null;
4444

@@ -125,7 +125,7 @@ public SearchResult searchTimeMs(Integer searchTimeMs) {
125125
}
126126

127127
/**
128-
* The total number of pages
128+
* The total number of documents in the collection
129129
* @return outOf
130130
**/
131131
@JsonProperty("out_of")

0 commit comments

Comments
 (0)