Skip to content

Commit

Permalink
Revert "fix: exclusive minimum and exclusive maximum are numbers"
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec authored Jul 1, 2024
1 parent 91a7c76 commit 9614b1d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
12 changes: 8 additions & 4 deletions e2e/api-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
6 changes: 4 additions & 2 deletions e2e/src/cats/dto/pagination-query.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down
4 changes: 2 additions & 2 deletions lib/interfaces/open-api-spec.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9614b1d

Please sign in to comment.