-
Notifications
You must be signed in to change notification settings - Fork 797
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
[Feature] Customizable request schema #1347
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1347 +/- ##
==========================================
- Coverage 67.92% 67.92% -0.01%
==========================================
Files 150 150
Lines 10042 10045 +3
==========================================
+ Hits 6821 6823 +2
- Misses 3221 3222 +1
Continue to review full report at Codecov.
|
protos/repository.proto
Outdated
@@ -50,6 +50,7 @@ message BentoServiceMetadata { | |||
int32 mb_max_latency = 7; | |||
int32 mb_max_batch_size = 8; | |||
bool batch = 9; | |||
string route = 10; |
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 think this is part of the #1334 ? I guess we are holding this after that PR merge in?
Might I suggest supporting pydantic for model schemas? It'll give BentoML field validation/errors/schema out of the box. |
@Trollgeir Appreciate it. This PR is just minimal changes to make it possible. |
@yubozhao ready for review |
LGTM. Merging it @Trollgeir I think that's a great suggestion. Let's create a different issue and PR to track include Pydantic for validation |
* customize schema * test customezed_schema * fix * finish test * fix * fix new-style property * refactor
Description
Motivation and Context
How Has This Been Tested?
Types of changes
Component(s) if applicable
Checklist:
./dev/format.sh
and./dev/lint.sh
script have passed(instructions).