-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add strict mode to runtime-rest-client and runtime-lifecycle #166
Milestone
Comments
hrajchert
added this to the [#2] Improve error handling in the runtime-rest-client milestone
Jan 11, 2024
We shouldn't have strict mode be |
NotesProgress
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As mentioned in this discussion response:
The idea is to modify
mkRestClient
andmkRuntimeLifecycle
to accept astrict
property that hasfalse
as the default value.When the property is true, all calls to those API will try the guard on the input and throw a specific error (InvalidInputs/BadCall/error-to-be-named).
We could take this opportunity to also make a breaking change in the restClient so all functions accept a single object parameter. Right now we have some functions that accept a single Request parameter and some functions that accept multiple ones, this would simplify the API.
The text was updated successfully, but these errors were encountered: