File tree Expand file tree Collapse file tree 2 files changed +4
-16
lines changed
src/main/java/org/typesense Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Original file line number Diff line number Diff line change 11package org .typesense .api ;
22
33import com .fasterxml .jackson .annotation .JsonInclude ;
4+ import com .fasterxml .jackson .databind .DeserializationFeature ;
45import com .fasterxml .jackson .databind .ObjectMapper ;
56import okhttp3 .*;
67import org .apache .logging .log4j .LogManager ;
@@ -44,6 +45,7 @@ public ApiCall(Configuration configuration) {
4445 this .retryInterval = configuration .retryInterval ;
4546
4647 mapper .setSerializationInclusion (JsonInclude .Include .NON_NULL );
48+ mapper .disable (DeserializationFeature .FAIL_ON_UNKNOWN_PROPERTIES );
4749
4850 client = new OkHttpClient ()
4951 .newBuilder ()
Original file line number Diff line number Diff line change 1717
1818public class ApiKey extends ApiKeySchema {
1919
20- @ Schema (required = true , description = "" )
20+ @ Schema (description = "" )
2121 private Long id = null ;
2222
23- @ Schema (required = true , description = "" )
24- private String value = null ;
25-
26- @ Schema (required = true , description = "" )
23+ @ Schema (description = "" )
2724 private String valuePrefix = null ;
2825 /**
2926 * Get id
@@ -35,16 +32,6 @@ public Long getId() {
3532 }
3633
3734
38- /**
39- * Get value
40- * @return value
41- **/
42- @ JsonProperty ("value" )
43- public String getValue () {
44- return value ;
45- }
46-
47-
4835 /**
4936 * Get valuePrefix
5037 * @return valuePrefix
@@ -62,7 +49,6 @@ public String toString() {
6249 sb .append ("class ApiKey {\n " );
6350 sb .append (" " ).append (toIndentedString (super .toString ())).append ("\n " );
6451 sb .append (" id: " ).append (toIndentedString (id )).append ("\n " );
65- sb .append (" value: " ).append (toIndentedString (value )).append ("\n " );
6652 sb .append (" valuePrefix: " ).append (toIndentedString (valuePrefix )).append ("\n " );
6753 sb .append ("}" );
6854 return sb .toString ();
You can’t perform that action at this time.
0 commit comments