Not compatible with class-validator v0.12.0
See original GitHub issueclass-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:
- Created 3 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
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.