-
Notifications
You must be signed in to change notification settings - Fork 728
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
request body is required #1830
Comments
Thanks for the report @ronag! In many cases we defer validation to Elasticsearch itself for simplicity's sake, but ideally the client should validate required parameters like |
@ronag hello You wrote:
May I ask what additional value this creates for library users? |
@bijela-gora The value of client-side validation is that it makes validation much faster by having it happen in-process rather than deferring to a remote server. It also prevents unnecessary network traffic and load on Elasticsearch, and allows for more developer-friendly feedback. |
Hi! Thank you for your response. In my previous post, I referred to specific numbers differences, specifically related to feedback speed. In the context of feedback speed there are three things we can use to improve:
Considering these factors, I believe client-side runtime validation may not offer significant value to end users. Focusing on type system improvements might be more beneficial. Thanks for reading this. |
HI @JoshMock - Can I work on this issue ? this would be my first contribution to this project ? Thank you! |
@ArchitGajjar You definitely can. I'm still not entirely sure there's a better solution than what we're already doing, like @bijela-gora mentioned above, but you're welcome to discuss and propose ideas here or in a draft PR. |
While calling:
We get the following server error. Looks like an esc client bug? Even
Getting this server response should not even be possible since the client should validate and throw an error even if we the user are doing something wrong...
The text was updated successfully, but these errors were encountered: