Skip to content

Commit

Permalink
馃悰 fix: fix ajv schema
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Dec 13, 2023
1 parent 57e998f commit 40f22c5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const createGatewayOnNodeRuntime = (options: NodeRuntimeGatewayOptions =
const gateway = new Gateway({
...options,
Validator: (schema, value) => {
const ajv = new Ajv();
const ajv = new Ajv({ validateFormats: false });
const validate = ajv.compile(schema);

const valid = validate(value);
Expand Down Expand Up @@ -43,7 +43,6 @@ export const createGatewayOnNodeRuntime = (options: NodeRuntimeGatewayOptions =

const settings = getPluginSettingsFromHeaders(req.headers as any);

console.log(requestPayload, settings);
try {
const { data } = await gateway.execute(requestPayload, settings);

Expand Down

0 comments on commit 40f22c5

Please sign in to comment.