Skip to content

Commit

Permalink
Merge pull request #54 from onfido/feature/check-class
Browse files Browse the repository at this point in the history
Check class to allow `null` values for privacy consent parameter
  • Loading branch information
Phoebe-B authored Jun 29, 2021
2 parents b02d650 + b005bd3 commit 798e9ae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ private static TypeInfo typeInfoFor(PropertyJson propertyJson) {
switch (propertyJson.type) {
case "boolean":
return TypeInfo.primitiveType("boolean", "Boolean", "false");
case "Boolean":
return TypeInfo.primitiveType("Boolean", "Boolean", "null");
case "integer":
return TypeInfo.primitiveType("int", "Integer", "0");
case "object":
Expand Down
2 changes: 1 addition & 1 deletion onfido-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.onfido</groupId>
<artifactId>onfido-api-java</artifactId>
<version>2.2.0</version>
<version>2.2.1</version>

<name>Onfido API Java Client</name>
<description>Official Java API client library for the Onfido API</description>
Expand Down
2 changes: 1 addition & 1 deletion onfido-java/src/main/models/check.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"description": "The list of report object ids associated with the check."
},
"privacy_notices_read_consent_given": {
"type": "boolean",
"type": "Boolean",
"description": "Indicates that the privacy notices and terms of service have been read and, where specific laws require, that consent has been given for Onfido."
},
"webhook_ids": {
Expand Down

0 comments on commit 798e9ae

Please sign in to comment.