Class Validator Jsonschema Versions Save

Convert class-validator-decorated classes into JSON schema

v5.0.0

1 year ago

Breaking changes

Full Changelog: https://github.com/epiphone/class-validator-jsonschema/compare/v4.0.0...v5.0.0

v4.0.0

1 year ago

Breaking changes

Improvements

Full Changelog: https://github.com/epiphone/class-validator-jsonschema/compare/v3.1.1...v4.0.0

v3.1.1

1 year ago

Bugfixes

Improvements

v3.1.0

2 years ago

Features

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

v3.0.2

2 years ago

Bugfixes

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

v3.0.1

3 years ago

Improvements

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

v3.0.0

3 years ago

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 https://github.com/typestack/class-transformer/issues/563 for alternatives to avoid the CommonJS require.

v2.2.0

3 years ago

Features

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

v2.1.1

3 years ago

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)

v2.1.0

3 years ago

Check https://github.com/epiphone/class-validator-jsonschema/blob/master/CHANGELOG.md for previous versions

Features

  • Handle class-validator's IsObject, IsEmptyObject, Allow and class-transformer's Exclude decorators (#53)

Improvements

  • Add { not: { type: 'null' } } to IsDefined schema (#53)
  • Move from TravisCI to Github Actions, yarn to npm + update dependencies (#51)