We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77de4f6 commit 05fe898Copy full SHA for 05fe898
lib/validate.js
@@ -1,6 +1,6 @@
1
import Ajv from "ajv";
2
3
-const ajv = new Ajv();
+const ajv = new Ajv({allowUnionTypes: true});
4
5
export const validateQueryPayload = ajv.compile({
6
type: "object",
@@ -18,6 +18,6 @@ export const validateDescribeColumnsPayload = ajv.compile({
18
properties: {
19
catalog: {type: "string", minLength: 1, maxLength: 32 * 1000},
20
schema: {type: "string", minLength: 1, maxLength: 32 * 1000},
21
- table: {type: "string", minLength: 1, maxLength: 32 * 1000}
+ table: {type: "string", minLength: 1, maxLength: 32 * 1000},
22
},
23
-})
+});
0 commit comments