Skip to content

Commit

Permalink
docs: update OpenAPI schema to use 'minimum' instead of 'min' for int…
Browse files Browse the repository at this point in the history
…eger validation (#1898)

## What kind of change does this PR introduce?

fix: update OpenAPI schema to use 'minimum' instead of 'min' for integer
validation

ref:https://swagger.io/docs/specification/v3_0/data-models/data-types/#numbers:~:text=2-,minimum,-%3A%201
  • Loading branch information
12138zhen authored Jan 10, 2025
1 parent 28b715b commit 5c1deb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1146,13 +1146,13 @@ paths:
in: query
schema:
type: integer
min: 1
minimum: 1
default: 1
- name: per_page
in: query
schema:
type: integer
min: 1
minimum: 1
default: 50
responses:
200:
Expand Down Expand Up @@ -1241,13 +1241,13 @@ paths:
in: query
schema:
type: integer
min: 1
minimum: 1
default: 1
- name: per_page
in: query
schema:
type: integer
min: 1
minimum: 1
default: 50
responses:
200:
Expand Down

0 comments on commit 5c1deb2

Please sign in to comment.