Skip to content

Commit

Permalink
🎨 fix marshmallow warning
Browse files Browse the repository at this point in the history
Signed-off-by: ff137 <ff137@proton.me>
  • Loading branch information
ff137 committed Jun 5, 2024
1 parent 1db167c commit 127074e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aries_cloudagent/messaging/models/paginated_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class PaginatedQuerySchema(OpenAPISchema):

limit = fields.Int(
required=False,
missing=DEFAULT_PAGE_SIZE,
load_default=DEFAULT_PAGE_SIZE,
validate=lambda x: x > 0 and x <= MAXIMUM_PAGE_SIZE,
metadata={"description": "Number of results to return", "example": 50},
error_messages={
Expand All @@ -24,7 +24,7 @@ class PaginatedQuerySchema(OpenAPISchema):
)
offset = fields.Int(
required=False,
missing=0,
load_default=0,
validate=lambda x: x >= 0,
metadata={"description": "Offset for pagination", "example": 0},
error_messages={"validator_failed": "Value must be 0 or greater"},
Expand Down

0 comments on commit 127074e

Please sign in to comment.