Skip to content

Commit

Permalink
fix: remove list params validations (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
StashBank authored Sep 11, 2023
1 parent d0ac7eb commit 4b220b7
Show file tree
Hide file tree
Showing 6 changed files with 6,440 additions and 1,250 deletions.
22 changes: 22 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Nest Stripe Test",
"type": "node",
"port": 9229,
"request": "attach",
"cwd": "${workspaceFolder}/apps/nest-stripe-test/src/"
},
{
"name": "Attach By Process ID",
"type": "node",
"request": "attach",
"processId": "${command:PickProcess}",
"skipFiles": ["<node_internals>/**"]
},
]
}
6 changes: 4 additions & 2 deletions apps/nest-stripe-test/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
"projectType": "application",
"targets": {
"build": {
"executor": "@nrwl/node:webpack",
"executor": "@nrwl/webpack:webpack",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/apps/nest-stripe-test",
"main": "apps/nest-stripe-test/src/main.ts",
"tsConfig": "apps/nest-stripe-test/tsconfig.app.json",
"assets": ["apps/nest-stripe-test/src/assets"]
"assets": ["apps/nest-stripe-test/src/assets"],
"target": "node",
"compiler": "tsc"
},
"configurations": {
"production": {
Expand Down
2 changes: 1 addition & 1 deletion libs/stripe/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@valor/nestjs-stripe",
"version": "0.0.8",
"version": "0.0.9",
"type": "commonjs",
"private": false,
"author": "opavlovskyi-valor-software",
Expand Down
7 changes: 0 additions & 7 deletions libs/stripe/src/lib/dto/list-request-params.dto.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
import { ApiPropertyOptional } from '@nestjs/swagger';
import { IsNumber, IsOptional, IsString } from 'class-validator';

export class ListRequestParamsDto {
@ApiPropertyOptional()
@IsOptional()
@IsNumber()
limit?: number;

@ApiPropertyOptional()
@IsOptional()
@IsString()
startingAfter?: string;

@ApiPropertyOptional()
@IsOptional()
@IsString()
endingBefore?: string;

}
Loading

0 comments on commit 4b220b7

Please sign in to comment.