Skip to content

com.riskified.validations.FieldBadFormatException #124

Description

@MarErm27

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?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions