-
Notifications
You must be signed in to change notification settings - Fork 17
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
using media types for errors #62
Comments
Running into this issue in scitt-community/scitt-api-emulator#27 as well. Would be great to return an object in addition to or instead of a string. Or allow for other properties which would be fully content-typeable to a custom response object within the error response on claim insert failure. Lack of this prevents an automated conversation to resolve issues with claim insertion. Human readable strings are great, but ideally a human doesn't even get involved and machines can auto remediate issues due to detailed failure reasoning. This way the a human readable string might only be needed after a failed machine driven insert conversation (more than one call response). For example if the identity is an OIDC token with an invalid subject, the policy error could say what the subject and or other fields should contain or be set to.
|
This is how we can track and Open Architecture (aka Alice) upstream Related: https://github.com/intel/dffml/blob/alice/docs/tutorials/rolling_alice/0000_architecting_alice/0007_an_image.md Related: scitt-community/scitt-api-emulator#27 Related: ietf-wg-scitt/draft-ietf-scitt-architecture#62
Should this move to SCRAPI |
Closing, with a link to the copied issue in SCRAPI: using media types for errors #4 |
application/problem+json
vsapplication/json
#60 (comment)
Why?
Are there any references for this design choice I can review?
The text was updated successfully, but these errors were encountered: