Skip to content

Commit 05fe898

Browse files
author
Sylvestre Gug
committed
fix ajv config
1 parent 77de4f6 commit 05fe898

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/validate.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Ajv from "ajv";
22

3-
const ajv = new Ajv();
3+
const ajv = new Ajv({allowUnionTypes: true});
44

55
export const validateQueryPayload = ajv.compile({
66
type: "object",
@@ -18,6 +18,6 @@ export const validateDescribeColumnsPayload = ajv.compile({
1818
properties: {
1919
catalog: {type: "string", minLength: 1, maxLength: 32 * 1000},
2020
schema: {type: "string", minLength: 1, maxLength: 32 * 1000},
21-
table: {type: "string", minLength: 1, maxLength: 32 * 1000}
21+
table: {type: "string", minLength: 1, maxLength: 32 * 1000},
2222
},
23-
})
23+
});

0 commit comments

Comments
 (0)