-
Notifications
You must be signed in to change notification settings - Fork 140
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
adds inputs validation for create memory #2034
Conversation
Signed-off-by: Xun Zhang <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2034 +/- ##
=========================================
Coverage 82.57% 82.58%
- Complexity 5600 5602 +2
=========================================
Files 542 542
Lines 22536 22540 +4
Branches 2293 2293
=========================================
+ Hits 18610 18614 +4
Misses 2991 2991
Partials 935 935
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like try/catch is a bit of a hack but ok, it works
Also not entirely clear what the diff is before/after, judging from the pr description? |
It’s the status code returning should be 400. |
Signed-off-by: Xun Zhang <[email protected]> (cherry picked from commit 864d349)
Signed-off-by: Xun Zhang <[email protected]> (cherry picked from commit 864d349)
Signed-off-by: Xun Zhang <[email protected]> (cherry picked from commit 864d349) Co-authored-by: Xun Zhang <[email protected]>
Signed-off-by: Xun Zhang <[email protected]> (cherry picked from commit 864d349) Co-authored-by: Xun Zhang <[email protected]>
Signed-off-by: Xun Zhang <[email protected]>
Description
This is to address the Null value of the "name" in create a memory in the exceptions described here #1997. They should be all handled with 400 error code.
Before this change:
After this change:
Issues Resolved
[List any issues this PR will resolve]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.