This commit is contained in:
seb
2026-10-15 21:04:27 +02:00
parent 508e1b6d7a
commit 8af63d6bf8
3 changed files with 9 additions and 9 deletions

View File

@@ -68,7 +68,7 @@ export function register(app, basePath = '') {
* type: integer
* default: 50
* minimum: 1
* maximum: 100
* maximum: 1000
* description: Number of orders to return
* - in: query
* name: search
@@ -248,8 +248,8 @@ export function register(app, basePath = '') {
if (rawLimit !== undefined) {
limit = parseInt(rawLimit, 10);
if (!Number.isInteger(limit) || limit < 1 || limit > 100) {
return res.status(400).json({ error: 'limit must be an integer between 1 and 100' });
if (!Number.isInteger(limit) || limit < 1 || limit > 1000) {
return res.status(400).json({ error: 'limit must be an integer between 1 and 1000' });
}
}

View File

@@ -71,7 +71,7 @@ export function register(app, basePath = '') {
* type: integer
* default: 50
* minimum: 1
* maximum: 100
* maximum: 1000
* description: Number of quotes to return
* - in: query
* name: search
@@ -239,8 +239,8 @@ export function register(app, basePath = '') {
if (rawLimit !== undefined) {
limit = parseInt(rawLimit, 10);
if (!Number.isInteger(limit) || limit < 1 || limit > 100) {
return res.status(400).json({ error: 'limit must be an integer between 1 and 100' });
if (!Number.isInteger(limit) || limit < 1 || limit > 1000) {
return res.status(400).json({ error: 'limit must be an integer between 1 and 1000' });
}
}

View File

@@ -281,7 +281,7 @@ export function register(app, basePath = '') {
* type: integer
* default: 50
* minimum: 1
* maximum: 100
* maximum: 1000
* description: Number of shipments to return
* - in: query
* name: search
@@ -362,8 +362,8 @@ export function register(app, basePath = '') {
if (rawLimit !== undefined) {
limit = parseInt(rawLimit, 10);
if (!Number.isInteger(limit) || limit < 1 || limit > 100) {
return res.status(400).json({ error: 'limit must be an integer between 1 and 100' });
if (!Number.isInteger(limit) || limit < 1 || limit > 1000) {
return res.status(400).json({ error: 'limit must be an integer between 1 and 1000' });
}
}