Skip to content

Ticket type price accepts non-numeric strings, causing an uncaught 500 #13

Description

@presidojay1

Same gap as the resale-listing DTO: price is only @IsString(), then passed to BigInt(dto.price) downstream. A malformed value throws an unhandled SyntaxError that surfaces as a 500 instead of a validation error.

Suggested fix: Add @Matches(/^[1-9]\d*$/, { message: 'price must be a positive integer string' }) to the price field.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions