Skip to content

JsonMapperGlobalOptions

@tsed/json-mapper

Usage ​

typescript
import { JsonMapperGlobalOptions } from "@tsed/json-mapper";

See /packages/specs/json-mapper/src/domain/JsonMapperGlobalOptions.ts.

Overview ​

ts
interface JsonMapperGlobalOptions {
    additionalProperties?: boolean;
    disableUnsecureConstructor?: boolean;
    strictGroups?: boolean;
}

Description ​

Shared configuration flags used by both serialization and deserialization flows.

additionalProperties ​

ts
additionalProperties?: boolean;

JsonMapper additional property policy. (see JsonMapper)

disableUnsecureConstructor ​

ts
disableUnsecureConstructor?: boolean;

Disable the unsecure constructor injection when the deserialize function is used (by default: false)

strictGroups ​

ts
strictGroups?: boolean;

Enable strict Groups configuration when the options.groups is undefined. (by default: false)

Released under the MIT License.