Skip to content

fix: peer dependency version difference (class-validator) #978

@anandpeethambarantp

Description

@anandpeethambarantp

Description

I was getting validation issue with the @queryParams decorator even without passing any query parameters.

Minimal code-snippet showcasing the problem
The error goes like this.

[
  ValidationError {
    target: GroupFilterModel {},
    value: undefined,
   property: undefined,
    children: [],
     constraints: {
     unknownValue: 'an unknown value was passed to the validate function'
   }
   }
 ]

Expected behavior

There should not be any validation issue.

Actual behavior

Getting validation issue with undefined property.

When I checked the routing-controllers package.json peerDependency version of class-validator is 0.13.2. But the latest version is 0.14.0.
With the latest version I'm getting this error and when I did a downgrade to old 0.13.4, there is no error.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs triageIssues which needs to be reproduced to be verified report.type: fixIssues describing a broken feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions