SDKs could bundle and release backend error codes #269
craicoverflow
started this conversation in
Ideas
Replies: 2 comments 4 replies
-
I have discussed that in context of registry. We could introduce enum with error codes that is used in examples etc. Additionally that will be also easy to enforce on spectral side? |
Beta Was this translation helpful? Give feedback.
0 replies
-
They do actually specify all error codes in single files (for all 3 services I have worked with doing so) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The custom error codes returned by the APIs could be constantly evolving as new features get added.
There is a possibility that SDK consumers are unaware of new error codes and cannot handle them appropriately.
It would be great if we could obtain the error codes from backends and release them with the SDKs.
The main blocker for this I see is there is no straightforward way to do this right now - unless the API teams provide micro-packages that expose these error codes.
Beta Was this translation helpful? Give feedback.
All reactions