Convert class-validator-decorated classes into JSON schema
openapi3-ts
v3.0.0 (https://github.com/epiphone/class-validator-jsonschema/pull/99)
JSONSchema
decorator parameter type now uses updated JSON Schema type from openapi3-ts v3.IsPositive
and IsNegative
class-validator decorators now produce output like { "exclusiveMinimum": 0 }
instead of { "minimum": 0, "exclusiveMinimum": true }
(see JSON Schema docs).Full Changelog: https://github.com/epiphone/class-validator-jsonschema/compare/v4.0.0...v5.0.0
"^0.14.0"
by @willemgovaerts in https://github.com/epiphone/class-validator-jsonschema/pull/95
Full Changelog: https://github.com/epiphone/class-validator-jsonschema/compare/v3.1.1...v4.0.0
isExcluded
filter on inherited classes by @scarych in https://github.com/epiphone/class-validator-jsonschema/pull/78
0.5.x
by @orgads in https://github.com/epiphone/class-validator-jsonschema/pull/80
class-validator: ^0.13.1
and class-transformer: ^0.4.0
class-transformer
default metadata storage import changes as follows:
-import { defaultMetadataStorage } from 'class-transformer/storage';
+const { defaultMetadataStorage } = require('class-transformer/cjs/storage');
See https://github.com/typestack/class-transformer/issues/563 for alternatives to avoid the CommonJS require
.
Check https://github.com/epiphone/class-validator-jsonschema/blob/master/CHANGELOG.md for previous versions
IsObject
, IsEmptyObject
, Allow
and class-transformer's Exclude
decorators (#53){ not: { type: 'null' } }
to IsDefined
schema (#53)yarn
to npm
+ update dependencies (#51)