Skip to content

Commit

Permalink
fix(nodejs): list size and page limits
Browse files Browse the repository at this point in the history
  • Loading branch information
takoring committed Feb 10, 2025
1 parent 4c6a847 commit e1a1265
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dependencies": {
"@aws-sdk/client-s3": "^3.451.0",
"@types/sanitize-html": "^2.13.0",
"@viron/lib": "2.4.0-alpha.5",
"@viron/lib": "2.4.0-alpha.6",
"accepts": "^1.3.7",
"compression": "^1.7.4",
"cookie-parser": "^1.4.5",
Expand Down
4 changes: 4 additions & 0 deletions example/nodejs/src/openapi/components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@ components:
description: Size of list
schema:
type: integer
minimum: 1
maximum: 100
required: false
PagerPageQueryParam:
name: page
in: query
description: Page number of list
schema:
type: integer
minimum: 1
maximum: 100
required: false
SortQueryParam:
name: sort
Expand Down
2 changes: 1 addition & 1 deletion packages/nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@viron/lib",
"version": "2.4.0-alpha.5",
"version": "2.4.0-alpha.6",
"scripts": {
"build": "npm run clean && tsc --project tsconfig.json && cp -fr src/openapi dist/",
"clean": "rm -rf dist && rm -f tsconfig.tsbuildinfo",
Expand Down
4 changes: 4 additions & 0 deletions packages/nodejs/src/openapi/components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ components:
description: Size of list
schema:
type: integer
minimum: 1
maximum: 100
required: false

VironPagerPageQueryParam:
Expand All @@ -58,6 +60,8 @@ components:
description: Page number of list
schema:
type: integer
minimum: 1
maximum: 100
required: false

VironSortQueryParam:
Expand Down

0 comments on commit e1a1265

Please sign in to comment.