diff --git a/e2e/api-spec.json b/e2e/api-spec.json index d9b8ec9da..a5d20add5 100644 --- a/e2e/api-spec.json +++ b/e2e/api-spec.json @@ -286,8 +286,10 @@ "required": true, "in": "query", "schema": { - "exclusiveMinimum": 0, - "exclusiveMaximum": 10000, + "minimum": 0, + "maximum": 10000, + "exclusiveMaximum": true, + "exclusiveMinimum": true, "title": "Page", "format": "int32", "default": 0, @@ -481,8 +483,10 @@ "in": "query", "required": true, "schema": { - "exclusiveMinimum": 0, - "exclusiveMaximum": 10000, + "minimum": 0, + "maximum": 10000, + "exclusiveMaximum": true, + "exclusiveMinimum": true, "title": "Page", "format": "int32", "default": 0, diff --git a/e2e/src/cats/dto/pagination-query.dto.ts b/e2e/src/cats/dto/pagination-query.dto.ts index 9dcb62bc5..a837af958 100644 --- a/e2e/src/cats/dto/pagination-query.dto.ts +++ b/e2e/src/cats/dto/pagination-query.dto.ts @@ -8,9 +8,11 @@ export enum LettersEnum { export class PaginationQuery { @ApiProperty({ - exclusiveMinimum: 0, - exclusiveMaximum: 10000, + minimum: 0, + maximum: 10000, title: 'Page', + exclusiveMaximum: true, + exclusiveMinimum: true, format: 'int32', default: 0 }) diff --git a/lib/interfaces/open-api-spec.interface.ts b/lib/interfaces/open-api-spec.interface.ts index 8686e071c..2cbfe64fd 100644 --- a/lib/interfaces/open-api-spec.interface.ts +++ b/lib/interfaces/open-api-spec.interface.ts @@ -219,9 +219,9 @@ export interface SchemaObject { title?: string; multipleOf?: number; maximum?: number; - exclusiveMaximum?: boolean | number; + exclusiveMaximum?: boolean; minimum?: number; - exclusiveMinimum?: boolean | number; + exclusiveMinimum?: boolean; maxLength?: number; minLength?: number; pattern?: string;