Skip to content

Commit

Permalink
fix: added keyword to correct ajv this time
Browse files Browse the repository at this point in the history
  • Loading branch information
CptSchnitz committed Jun 30, 2024
1 parent 5d2e00f commit 72b525b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ export const ajvConfigValidator = addFormats(
useDefaults: true,
allErrors: true,
verbose: true,
keywords: ['x-env-value'],
}),
['date-time', 'time', 'date', 'email', 'hostname', 'ipv4', 'ipv6', 'uri', 'uuid', 'regex', 'uri-template']
);

export const ajvLibraryConfigValidator = new Ajv({
export const ajvLibraryOptionsValidator = new Ajv({
useDefaults: true,
coerceTypes: true,
allErrors: true,
verbose: true,
keywords: ['x-env-value'],
});

export function validate<T>(ajv: Ajv, schema: Schema, data: unknown): [ValidationError[], undefined] | [undefined, T] {
Expand Down

0 comments on commit 72b525b

Please sign in to comment.