From df1e0a1b0d4eb8672f3bd08d3791c2621c668d0a Mon Sep 17 00:00:00 2001 From: Donny Winston Date: Wed, 1 Nov 2023 12:51:59 -0400 Subject: [PATCH] hotfix: pydantic v2 migration model-field ranges with `Query`-annotated types aren't covered by the automated bump-pydantic tool. --- nmdc_runtime/api/models/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nmdc_runtime/api/models/util.py b/nmdc_runtime/api/models/util.py index ff922531..c298560e 100644 --- a/nmdc_runtime/api/models/util.py +++ b/nmdc_runtime/api/models/util.py @@ -19,7 +19,7 @@ class ListRequest(BaseModel): Query( description='MongoDB-style JSON filter document. Example: `{"ecosystem_type": "Freshwater"}`' ), - ] + ] = None max_page_size: Optional[int] = 20 page_token: Optional[str] = None projection: Annotated[ @@ -33,7 +33,7 @@ class ListRequest(BaseModel): "Example: `ecosystem_type,name`" ) ), - ] + ] = None PerPageRange = Annotated[int, Field(gt=0, le=2_000)]