question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not compatible with class-validator v0.12.0

See original GitHub issue

class-validator v0.12.0 has been releases as of 18-04-2020. class-validator-jsonschema is not compatible because of breaking changes, see changelog.

To be specific:

import { ValidationMetadata } from 'class-validator/metadata/ValidationMetadata';

needs to be replaced by

import { ValidationMetadata } from 'class-validator/types/metadata/ValidationMetadata'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
epiphonecommented, May 1, 2020

Alright, I baked together a pre-release. Can you try yarn add class-validator-jsonschema@next and let me know how it works?

I also released routing-controllers-openapi@next if you’re using that.

Note the API changes: https://github.com/epiphone/class-validator-jsonschema/blob/class-validator-0.12/CHANGELOG.md#200-rc1---2020-05-01

1reaction
epiphonecommented, Apr 25, 2020

Welp, looks like there’s been a bunch of changes in class-validator besides that import path.

I’m working on v0.12 support in https://github.com/epiphone/class-validator-jsonschema/pull/32, mind giving it a shot in your project and telling me whether anything breaks? yarn add epiphone/class-validator-jsonschema#class-validator-0.12 should get it installed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

class-validator - npm
Decorator-based property validation for classes. ... Start using class-validator in your project by running `npm i ... 0.12.0-refactor.5. 12.
Read more >
question: not working across node.js modules #132 - GitHub
We have a project with multiple node.js modules. Several of them use class-validator -- but they don't work together.
Read more >
class-validator vulnerabilities - Snyk
version published direct vulnerabilities 0.14.0 9 Dec, 2022 0. C. 0. H. 0. M. 0. L 0.13.2 20 Nov, 2021 0. C. 0. H. 0....
Read more >
Class-validator - validate array of objects - Stack Overflow
But I noticed that when the array contains an empty array (as opposed to say the AuthParam obj) it does not throw an...
Read more >
Validate Property Values - MATLAB & Simulink - MathWorks
You can use validation to constrain the class and size of property values. ... is not compatible with the current requirement that the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found