@lightdash/cli 2.495.2 → 2.496.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../src/handlers/lint.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../src/handlers/lint.ts"],"names":[],"mappings":"AA0BA,KAAK,WAAW,GAAG;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CAC3B,CAAC;AA2aF,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CA6JrE"}
|
package/dist/handlers/lint.js
CHANGED
|
@@ -145,7 +145,9 @@ function validateAsCodeSchema({ data, fileContent, filePath, locationMap, type,
|
|
|
145
145
|
return {
|
|
146
146
|
filePath,
|
|
147
147
|
valid: false,
|
|
148
|
-
|
|
148
|
+
// The chart schema picks a SQL chart or semantic layer chart shape
|
|
149
|
+
// with if/then/else; the wrapper error repeats the shape's errors.
|
|
150
|
+
errors: validate.errors.filter((error) => error.keyword !== 'if'),
|
|
149
151
|
fileContent,
|
|
150
152
|
locationMap,
|
|
151
153
|
type,
|
|
@@ -261,9 +263,6 @@ function validateFile(filePath, contentRoot) {
|
|
|
261
263
|
: { filePath, valid: true };
|
|
262
264
|
}
|
|
263
265
|
if (uploadType) {
|
|
264
|
-
if (uploadType === 'chart' && (0, fileDiscovery_1.isSqlChartContent)(dataObj)) {
|
|
265
|
-
return { filePath, valid: true, type: 'chart' };
|
|
266
|
-
}
|
|
267
266
|
return validateAsCodeSchema({
|
|
268
267
|
data,
|
|
269
268
|
fileContent,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightdash/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.496.0",
|
|
4
4
|
"description": "Lightdash CLI tool",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"@actions/core": "1.11.1",
|
|
23
23
|
"@aws-sdk/credential-providers": "3.995.0",
|
|
24
24
|
"@casl/ability": "6.8.0",
|
|
25
|
-
"@lightdash/common": "2.
|
|
26
|
-
"@lightdash/warehouses": "2.
|
|
25
|
+
"@lightdash/common": "2.496.0",
|
|
26
|
+
"@lightdash/warehouses": "2.496.0",
|
|
27
27
|
"@sidvind/better-ajv-errors": "7.0.0",
|
|
28
28
|
"@types/columnify": "1.5.1",
|
|
29
29
|
"ajv": "8.18.0",
|