-
Notifications
You must be signed in to change notification settings - Fork 2.2k
fix(rest): openapi rendering for crud #1994
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1994 +/- ##
==========================================
- Coverage 86.61% 81.29% -5.33%
==========================================
Files 148 165 +17
Lines 7084 7623 +539
==========================================
+ Hits 6136 6197 +61
- Misses 948 1426 +478
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Latency summaryCurrent PR yields:
Breakdown
Backed by latency-tracking. Further commits will update this comment. |
# To avoid an error while loading the request model schema on swagger, we've added an example. | ||
data: Union[List[JinaDocumentModel], List[Dict[str, Any]], List[str], List[bytes]] = \ | ||
Field(..., example=[Document().dict()]) | ||
request_size: Optional[int] = 1 |
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.
this should not be 1
, otherwise the REST interface will be unbelievable slow.
use set_client_parser().parser([]).request_size to get default request size
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.
request_size should not be 1
Fixes #1956