diff --git a/src/ajv-options.ts b/src/ajv-options.ts deleted file mode 100644 index 69df064..0000000 --- a/src/ajv-options.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { Options } from 'ajv'; - -export const ajvOptions = { - keywords: ['transform'], -} satisfies Options; diff --git a/src/decorators.ts b/src/decorators.ts index 8058d43..367f785 100644 --- a/src/decorators.ts +++ b/src/decorators.ts @@ -23,7 +23,6 @@ import type { import { capitalize, coerceType, isObj } from './util.js'; import AjvFormats from 'ajv-formats'; -import { ajvOptions } from './ajv-options.js'; const ajv = new Ajv({ coerceTypes: 'array', @@ -36,7 +35,7 @@ const ajv = new Ajv({ allErrors: false, // Our custom options: - ...ajvOptions, + keywords: ['transform'], }); AjvFormats.default(ajv);