@stemy/backend 5.0.3 → 5.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,6 +30,7 @@ import { v4 } from 'uuid';
30
30
  import { createTransport } from 'nodemailer';
31
31
  import * as Handlebars from 'handlebars';
32
32
  import { routingControllersToSpec, OpenAPI, getStatusCode } from 'routing-controllers-openapi';
33
+ import { defaultMetadataStorage } from 'class-transformer/cjs/storage';
33
34
  import { validationMetadatasToSchemas } from 'class-validator-jsonschema';
34
35
  import { ValidatorConstraint, ValidationTypes, Min, Max, IsOptional, IsBoolean } from 'class-validator';
35
36
  import { CommandsAddon, AnsiCodes } from '@stemy/terminal-commands-addon';
@@ -2458,6 +2459,7 @@ let OpenApi = class OpenApi {
2458
2459
  const docs = routingControllersToSpec(storage);
2459
2460
  docs.basePath = "/api/";
2460
2461
  docs.definitions = validationMetadatasToSchemas({
2462
+ classTransformerMetadataStorage: defaultMetadataStorage,
2461
2463
  additionalConverters: {
2462
2464
  [ValidationTypes.CUSTOM_VALIDATION]: (meta, options) => {
2463
2465
  const res = isFunction(this.customValidation) ? this.customValidation(meta, options) : this.customValidation;