Skip to content

Commit

Permalink
ignore example keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
MatanYadaev committed Jul 30, 2024
1 parent 74de761 commit 454e212
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ballerine-nestjs-typebox",
"version": "3.0.2-next.9",
"version": "3.0.2-next.10",
"description": "",
"author": "Andrew Smiley <[email protected]>",
"license": "MIT",
Expand Down
6 changes: 3 additions & 3 deletions src/decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import { ApiBody, ApiOperation, ApiParam, ApiQuery } from '@nestjs/swagger';
import { DECORATORS } from '@nestjs/swagger/dist/constants.js';
import { Static, TSchema, Type, TypeGuard } from '@sinclair/typebox';
import Ajv from 'ajv';
import AjvFormats from 'ajv-formats';
import fastUri from 'fast-uri';

import { AjvValidationException } from './exceptions.js';
import { TypeboxTransformInterceptor } from './interceptors.js';
import type {
Expand All @@ -22,8 +24,6 @@ import type {
} from './types.js';
import { capitalize, coerceType, isObj } from './util.js';

import AjvFormats from 'ajv-formats';

const ajv = new Ajv({
coerceTypes: 'array',
useDefaults: true,
Expand All @@ -35,7 +35,7 @@ const ajv = new Ajv({
allErrors: false,

// Our custom options:
keywords: ['transform'],
keywords: ['transform', 'example'],
});

AjvFormats.default(ajv);
Expand Down

0 comments on commit 454e212

Please sign in to comment.