Skip to content

Commit 9614b1d

Browse files
Revert "fix: exclusive minimum and exclusive maximum are numbers"
1 parent 91a7c76 commit 9614b1d

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

e2e/api-spec.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,10 @@
286286
"required": true,
287287
"in": "query",
288288
"schema": {
289-
"exclusiveMinimum": 0,
290-
"exclusiveMaximum": 10000,
289+
"minimum": 0,
290+
"maximum": 10000,
291+
"exclusiveMaximum": true,
292+
"exclusiveMinimum": true,
291293
"title": "Page",
292294
"format": "int32",
293295
"default": 0,
@@ -481,8 +483,10 @@
481483
"in": "query",
482484
"required": true,
483485
"schema": {
484-
"exclusiveMinimum": 0,
485-
"exclusiveMaximum": 10000,
486+
"minimum": 0,
487+
"maximum": 10000,
488+
"exclusiveMaximum": true,
489+
"exclusiveMinimum": true,
486490
"title": "Page",
487491
"format": "int32",
488492
"default": 0,

e2e/src/cats/dto/pagination-query.dto.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ export enum LettersEnum {
88

99
export class PaginationQuery {
1010
@ApiProperty({
11-
exclusiveMinimum: 0,
12-
exclusiveMaximum: 10000,
11+
minimum: 0,
12+
maximum: 10000,
1313
title: 'Page',
14+
exclusiveMaximum: true,
15+
exclusiveMinimum: true,
1416
format: 'int32',
1517
default: 0
1618
})

lib/interfaces/open-api-spec.interface.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,9 @@ export interface SchemaObject {
219219
title?: string;
220220
multipleOf?: number;
221221
maximum?: number;
222-
exclusiveMaximum?: boolean | number;
222+
exclusiveMaximum?: boolean;
223223
minimum?: number;
224-
exclusiveMinimum?: boolean | number;
224+
exclusiveMinimum?: boolean;
225225
maxLength?: number;
226226
minLength?: number;
227227
pattern?: string;

0 commit comments

Comments
 (0)