Skip to content

Commit d27aaab

Browse files
Merge pull request #220 from regulaforensics/9ff45e3b
Commit: 9ff45e3b
2 parents 99b0591 + 568a48d commit d27aaab

File tree

5 files changed

+21
-16
lines changed

5 files changed

+21
-16
lines changed

client/src/main/generated/com/regula/documentreader/webclient/model/DocVisualExtendedField.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ private String toIndentedString(Object o) {
124124
openapiRequiredFields.add("StringsCount");
125125
openapiRequiredFields.add("StringsResult");
126126
openapiRequiredFields.add("Buf_Length");
127-
openapiRequiredFields.add("Buf_Text");
128127
}
129128

130129
/**

client/src/main/generated/com/regula/documentreader/webclient/model/RFIDDocVisualExtendedField.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ private String toIndentedString(Object o) {
212212
openapiRequiredFields.add("StringsCount");
213213
openapiRequiredFields.add("StringsResult");
214214
openapiRequiredFields.add("Buf_Length");
215-
openapiRequiredFields.add("Buf_Text");
216215
}
217216

218217
/**

client/src/main/generated/com/regula/documentreader/webclient/model/RfidSessionData.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public class RfidSessionData {
113113
public static final String SERIALIZED_NAME_SESSION_KEY = "Session_key";
114114

115115
@SerializedName(SERIALIZED_NAME_SESSION_KEY)
116-
@javax.annotation.Nonnull
116+
@javax.annotation.Nullable
117117
private RfidAccessKey sessionKey;
118118

119119
public static final String SERIALIZED_NAME_SESSION_TERMINAL = "Session_terminal";
@@ -401,7 +401,7 @@ public void setTotalBytesReceived(@javax.annotation.Nonnull BigDecimal totalByte
401401
this.totalBytesReceived = totalBytesReceived;
402402
}
403403

404-
public RfidSessionData sessionKey(@javax.annotation.Nonnull RfidAccessKey sessionKey) {
404+
public RfidSessionData sessionKey(@javax.annotation.Nullable RfidAccessKey sessionKey) {
405405
this.sessionKey = sessionKey;
406406
return this;
407407
}
@@ -411,12 +411,12 @@ public RfidSessionData sessionKey(@javax.annotation.Nonnull RfidAccessKey sessio
411411
*
412412
* @return sessionKey
413413
*/
414-
@javax.annotation.Nonnull
414+
@javax.annotation.Nullable
415415
public RfidAccessKey getSessionKey() {
416416
return sessionKey;
417417
}
418418

419-
public void setSessionKey(@javax.annotation.Nonnull RfidAccessKey sessionKey) {
419+
public void setSessionKey(@javax.annotation.Nullable RfidAccessKey sessionKey) {
420420
this.sessionKey = sessionKey;
421421
}
422422

@@ -627,7 +627,6 @@ private String toIndentedString(Object o) {
627627
openapiRequiredFields.add("RootFiles");
628628
openapiRequiredFields.add("TotalBytesSent");
629629
openapiRequiredFields.add("TotalBytesReceived");
630-
openapiRequiredFields.add("Session_key");
631630
openapiRequiredFields.add("Session_terminal");
632631
openapiRequiredFields.add("Session_procedure");
633632
openapiRequiredFields.add("SecurityObjects");
@@ -723,8 +722,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
723722
"Expected the field `RootFiles` to be an array in the JSON string but got `%s`",
724723
jsonObj.get("RootFiles").toString()));
725724
}
726-
// validate the required field `Session_key`
727-
RfidAccessKey.validateJsonElement(jsonObj.get("Session_key"));
725+
// validate the optional field `Session_key`
726+
if (jsonObj.get("Session_key") != null && !jsonObj.get("Session_key").isJsonNull()) {
727+
RfidAccessKey.validateJsonElement(jsonObj.get("Session_key"));
728+
}
728729
// validate the required field `Session_terminal`
729730
RfidTerminal.validateJsonElement(jsonObj.get("Session_terminal"));
730731
// validate the required field `Session_procedure`

client/src/main/generated/com/regula/documentreader/webclient/model/Source.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,13 @@ public enum Source {
3939
MAGNETIC("MAGNETIC"),
4040

4141
/** External */
42-
EXTERNAL("EXTERNAL");
42+
EXTERNAL("EXTERNAL"),
43+
44+
/** Live */
45+
LIVE("LIVE"),
46+
47+
/** Fingerprint */
48+
FINGERPRINT("FINGERPRINT");
4349

4450
private String value;
4551

client/src/main/generated/com/regula/documentreader/webclient/model/VisualExtendedFieldItem.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public class VisualExtendedFieldItem {
6262
public static final String SERIALIZED_NAME_BUF_TEXT = "Buf_Text";
6363

6464
@SerializedName(SERIALIZED_NAME_BUF_TEXT)
65-
@javax.annotation.Nonnull
65+
@javax.annotation.Nullable
6666
private String bufText;
6767

6868
public static final String SERIALIZED_NAME_FIELD_MASK = "FieldMask";
@@ -209,7 +209,7 @@ public void setBufLength(@javax.annotation.Nonnull BigDecimal bufLength) {
209209
this.bufLength = bufLength;
210210
}
211211

212-
public VisualExtendedFieldItem bufText(@javax.annotation.Nonnull String bufText) {
212+
public VisualExtendedFieldItem bufText(@javax.annotation.Nullable String bufText) {
213213
this.bufText = bufText;
214214
return this;
215215
}
@@ -220,12 +220,12 @@ public VisualExtendedFieldItem bufText(@javax.annotation.Nonnull String bufText)
220220
*
221221
* @return bufText
222222
*/
223-
@javax.annotation.Nonnull
223+
@javax.annotation.Nullable
224224
public String getBufText() {
225225
return bufText;
226226
}
227227

228-
public void setBufText(@javax.annotation.Nonnull String bufText) {
228+
public void setBufText(@javax.annotation.Nullable String bufText) {
229229
this.bufText = bufText;
230230
}
231231

@@ -439,7 +439,6 @@ private String toIndentedString(Object o) {
439439
openapiRequiredFields.add("StringsCount");
440440
openapiRequiredFields.add("StringsResult");
441441
openapiRequiredFields.add("Buf_Length");
442-
openapiRequiredFields.add("Buf_Text");
443442
}
444443

445444
/**
@@ -481,7 +480,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
481480
StringRecognitionResult.validateJsonElement(jsonArraystringsResult.get(i));
482481
}
483482
;
484-
if (!jsonObj.get("Buf_Text").isJsonPrimitive()) {
483+
if ((jsonObj.get("Buf_Text") != null && !jsonObj.get("Buf_Text").isJsonNull())
484+
&& !jsonObj.get("Buf_Text").isJsonPrimitive()) {
485485
throw new IllegalArgumentException(
486486
String.format(
487487
"Expected the field `Buf_Text` to be a primitive type in the JSON string but got `%s`",

0 commit comments

Comments
 (0)