Skip to content

Commit

Permalink
hotfix: pydantic v2 migration
Browse files Browse the repository at this point in the history
model-field ranges with `Query`-annotated types aren't covered by the automated bump-pydantic tool.
  • Loading branch information
dwinston committed Nov 3, 2023
1 parent bb5f1df commit df1e0a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nmdc_runtime/api/models/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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[
Expand All @@ -33,7 +33,7 @@ class ListRequest(BaseModel):
"Example: `ecosystem_type,name`"
)
),
]
] = None


PerPageRange = Annotated[int, Field(gt=0, le=2_000)]
Expand Down

0 comments on commit df1e0a1

Please sign in to comment.