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

Use wildcards in reason parsing #64

Closed
alexkwolfe opened this issue Jun 26, 2018 · 0 comments · Fixed by #67
Closed

Use wildcards in reason parsing #64

alexkwolfe opened this issue Jun 26, 2018 · 0 comments · Fixed by #67

Comments

@alexkwolfe
Copy link
Contributor

Could we use wildcards in reason parsing using the dot-wild package instead of dotaccess?

Here's an example response:

{
  "accepted": "false",
  "redisplay": "false",
  "errors": {
    "duplicate": "Duplicate information"
  }
}

The sub-key duplicate changes based on the type of error and the user always just wants to extract the value. Ideally the user could specify the errors.* reason_path and get the return value [ "Duplicate information" ].

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

Successfully merging a pull request may close this issue.

2 participants