Skip to content

Releases: epiphone/class-validator-jsonschema

v5.0.1

18 May 08:08
Compare
Choose a tag to compare

Bugfixes

Chores

New Contributors

Full Changelog: v5.0.0...v5.0.1

v5.0.0

14 Jan 05:55
Compare
Choose a tag to compare

Breaking changes

  • Upgrade to openapi3-ts v3.0.0 (#99)
    • The 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: v4.0.0...v5.0.0

v4.0.0

07 Jan 02:49
Compare
Choose a tag to compare

Breaking changes

Improvements

Full Changelog: v3.1.1...v4.0.0

v3.1.1

29 May 10:30
Compare
Choose a tag to compare

Bugfixes

  • Issue #77: fix bug with isExcluded filter on inherited classes by @scarych in #78

Improvements

v3.1.0

24 Jul 02:20
Compare
Choose a tag to compare

Features

  • Add targetConstructorToSchema and validationMetadataArrayToSchemas functions for generating JSON Schema out of selected classes (#62)

v3.0.2

10 Jul 01:56
Compare
Choose a tag to compare

Bugfixes

  • Add missing escapes to isDateString() regular expression (#69)

v3.0.1

27 Mar 02:39
Compare
Choose a tag to compare

Improvements

  • Replace lodash dependency with native APIs and lodash sub-libraries (#52)

v3.0.0

20 Mar 08:23
Compare
Choose a tag to compare

Breaking changes

  • Peer dependencies ugraded to 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 typestack/class-transformer#563 for alternatives to avoid the CommonJS require.

v2.2.0

28 Feb 10:08
Compare
Choose a tag to compare

Features

  • Add a schemaNameField: string option to group schemas by a custom field instead of class name (#58)

v2.1.1

20 Jan 03:29
Compare
Choose a tag to compare

Bugfixes

  • Restrict class-transformer peer dependency to versions 0.2.3 - 0.3.1 since 0.3.2 comes with (for now) incompatible changes (#56)