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

using media types for errors #62

Closed
OR13 opened this issue Mar 26, 2023 · 3 comments
Closed

using media types for errors #62

OR13 opened this issue Mar 26, 2023 · 3 comments
Milestone

Comments

@OR13
Copy link
Collaborator

OR13 commented Mar 26, 2023

application/problem+json vs application/json

#60 (comment)

Why?

Are there any references for this design choice I can review?

@OR13 OR13 mentioned this issue Mar 26, 2023
@johnandersen777
Copy link

johnandersen777 commented Apr 27, 2023

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.

@SteveLasker
Copy link
Collaborator

Should this move to SCRAPI

@SteveLasker
Copy link
Collaborator

Closing, with a link to the copied issue in SCRAPI: using media types for errors #4

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