Skip to content

FEAT: Make Error Object Source Allow Objects #369

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

Merged
merged 1 commit into from
Aug 8, 2018

Conversation

rtablada
Copy link
Contributor

@rtablada rtablada commented Aug 7, 2018

This allows error source to contain any object instead of string strings. This allows for deeper source details as needed for validations and other in-depth error messages:

Ex.

new Error(
  status: 422,
  title = "already exists",
  description = "this email already exists",
  source = new { pointer = "data/attributes/email" });

FEATURE

  • write tests that address the requirements outlined in the issue
  • fulfill the feature requirements
  • bump package version

@jaredcnance jaredcnance merged commit a050acd into json-api-dotnet:master Aug 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants