Skip to content

Misusing instance field in the problem description of the error response #49

Answered by travisgosselin
greylurk asked this question in Q&A
Discussion options

You must be logged in to vote

Agreed that "instance" is best positioned with a specific reference to the exact error. It is much more anemic and less helpful as just an instance of the associated problematic resource. Feel free to provide the best contextual "instance" information you have in your API Error Responses, or do not use it at all if you cannot as it is optional like you say.

Hopefully as the SPS REST API Standard usage matures at SPS, we will be able to approach the usage of "instance" more effectively, along with well-defined and specific "types" as well.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by travisgosselin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
clarification Clarity on API Standards was needed (no changes).
2 participants
Converted from issue

This discussion was converted from issue #48 on January 03, 2023 20:21.