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

com.riskified.validations.FieldBadFormatException #124

Open
MarErm27 opened this issue Jun 9, 2022 · 0 comments
Open

com.riskified.validations.FieldBadFormatException #124

MarErm27 opened this issue Jun 9, 2022 · 0 comments

Comments

@MarErm27
Copy link

MarErm27 commented Jun 9, 2022

Hello, Riskified, I following this example:
https://github.com/Riskified/java_sdk/blob/master/riskified-sample/src/main/java/com/riskified/samples/orderClient/JsonClient.java

Order fields: "name", "updated_at" in the documentation both marked as optional, but whenRiskifiedClient is created with Validation.ALL, the request client.createOrder(order) fails with com.riskified.validations.FieldBadFormatException because these two fields not set. They are not set in your official sample too (link above).

Is Validation.ALL mode is meant for production use, or only for testing purposes? Is there a validation mode for production? Why Validation.ALL demands these two optional fields to be set?

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

No branches or pull requests

1 participant