Skip to content

Commit

Permalink
fix ajv config
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylvestre Gug committed Feb 1, 2023
1 parent 77de4f6 commit 05fe898
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/validate.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Ajv from "ajv";

const ajv = new Ajv();
const ajv = new Ajv({allowUnionTypes: true});

export const validateQueryPayload = ajv.compile({
type: "object",
Expand All @@ -18,6 +18,6 @@ export const validateDescribeColumnsPayload = ajv.compile({
properties: {
catalog: {type: "string", minLength: 1, maxLength: 32 * 1000},
schema: {type: "string", minLength: 1, maxLength: 32 * 1000},
table: {type: "string", minLength: 1, maxLength: 32 * 1000}
table: {type: "string", minLength: 1, maxLength: 32 * 1000},
},
})
});

0 comments on commit 05fe898

Please sign in to comment.