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

Consistency in error payload #16

Closed
bijujoseph opened this issue Oct 17, 2017 · 3 comments
Closed

Consistency in error payload #16

bijujoseph opened this issue Oct 17, 2017 · 3 comments
Assignees

Comments

@bijujoseph
Copy link
Member

At the moment we get errors in different shapes. Sometimes the error is a single self-contained object, (example validate with 1 error), and some other times details as an array (example validate with multiple errors).
So the idea here is to have transformations to expose a consistent error payload back.
Example: Error with details always an array.
Whomsoever is working on this task must go through the errors thrown by following, to come up with a consistent response payload structure.
/validate (post)
/submissions (get)
/measurement-sets/ (post)
/measurement-sets/:id (put)

@maripuncel
Copy link

Hey Biju! This is something we have on our radar. I'll share the spec with you once I'm done!

@bijujoseph
Copy link
Member Author

Awesome @marimiyachi - I was thinking of transform errors properly in here... so when you get a chance, please link the ticket here. So, we will use this ISSUE as a test.

@joshboley joshboley self-assigned this Nov 6, 2017
@joshboley
Copy link
Contributor

This work is done for the current implementation. We will handle QRDA error formatting in #12

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

3 participants