Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codify document options #32

Open
hsyed opened this issue May 10, 2019 · 1 comment
Open

Codify document options #32

hsyed opened this issue May 10, 2019 · 1 comment

Comments

@hsyed
Copy link
Contributor

hsyed commented May 10, 2019

We just heard from Onfido that the document check can return address information if the document contained it (driving license). This need to enabled in options as follows:

{
	"type": "express",
	"asynchronous": true,
	"reports": [{
		"name": "document",
		"options": [
        {
          "name": "document_address_information"
        }
      ]
	}]
}

Since a lot of the fields are type-safe (ish) is there a nice way to encode this ? At the moment the options field is map[string]interface{}.

@hsyed
Copy link
Contributor Author

hsyed commented May 10, 2019

hmm, it should probably be []map[string]interface{} ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant