@baron1996/kline-scene-schema 0.2.3 → 0.4.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.
- package/dist/decimal-normalization.d.ts +6 -0
- package/dist/decimal-normalization.d.ts.map +1 -0
- package/dist/decimal-normalization.js +47 -0
- package/dist/drawable-workspace-canonical-json.d.ts +3 -0
- package/dist/drawable-workspace-canonical-json.d.ts.map +1 -0
- package/dist/drawable-workspace-canonical-json.js +15 -0
- package/dist/drawable-workspace-canonicalize.d.ts +3 -0
- package/dist/drawable-workspace-canonicalize.d.ts.map +1 -0
- package/dist/drawable-workspace-canonicalize.js +19 -0
- package/dist/drawable-workspace-errors.d.ts +14 -0
- package/dist/drawable-workspace-errors.d.ts.map +1 -0
- package/dist/drawable-workspace-errors.js +12 -0
- package/dist/drawable-workspace-semantic-validator.d.ts +5 -0
- package/dist/drawable-workspace-semantic-validator.d.ts.map +1 -0
- package/dist/drawable-workspace-semantic-validator.js +127 -0
- package/dist/drawable-workspace-validator.d.ts +4 -0
- package/dist/drawable-workspace-validator.d.ts.map +1 -0
- package/dist/drawable-workspace-validator.js +74 -0
- package/dist/drawing-canonical-json.d.ts +3 -0
- package/dist/drawing-canonical-json.d.ts.map +1 -0
- package/dist/drawing-canonical-json.js +15 -0
- package/dist/drawing-canonicalize.d.ts +3 -0
- package/dist/drawing-canonicalize.d.ts.map +1 -0
- package/dist/drawing-canonicalize.js +19 -0
- package/dist/drawing-errors.d.ts +13 -0
- package/dist/drawing-errors.d.ts.map +1 -0
- package/dist/drawing-errors.js +12 -0
- package/dist/drawing-semantic-validator.d.ts +6 -0
- package/dist/drawing-semantic-validator.d.ts.map +1 -0
- package/dist/drawing-semantic-validator.js +123 -0
- package/dist/drawing-validator.d.ts +4 -0
- package/dist/drawing-validator.d.ts.map +1 -0
- package/dist/drawing-validator.js +66 -0
- package/dist/generated/chart-scene.d.ts +11 -1
- package/dist/generated/chart-scene.d.ts.map +1 -1
- package/dist/generated/drawable-workspace.d.ts +526 -0
- package/dist/generated/drawable-workspace.d.ts.map +1 -0
- package/dist/generated/drawable-workspace.js +2 -0
- package/dist/generated/drawing-document.d.ts +216 -0
- package/dist/generated/drawing-document.d.ts.map +1 -0
- package/dist/generated/drawing-document.js +2 -0
- package/dist/generated/schemas.d.ts +1062 -17
- package/dist/generated/schemas.d.ts.map +1 -1
- package/dist/generated/schemas.js +1391 -28
- package/dist/generated/time-series-scene.d.ts +88 -0
- package/dist/generated/time-series-scene.d.ts.map +1 -0
- package/dist/generated/time-series-scene.js +2 -0
- package/dist/generated/validate-chart-scene.d.ts.map +1 -1
- package/dist/generated/validate-chart-scene.js +550 -237
- package/dist/generated/validate-drawable-workspace.d.ts +15 -0
- package/dist/generated/validate-drawable-workspace.d.ts.map +1 -0
- package/dist/generated/validate-drawable-workspace.js +13449 -0
- package/dist/generated/validate-drawing-document.d.ts +15 -0
- package/dist/generated/validate-drawing-document.d.ts.map +1 -0
- package/dist/generated/validate-drawing-document.js +4307 -0
- package/dist/generated/validate-time-series-scene.d.ts +15 -0
- package/dist/generated/validate-time-series-scene.d.ts.map +1 -0
- package/dist/generated/validate-time-series-scene.js +2359 -0
- package/dist/index.d.ts +20 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -1
- package/dist/time-series-canonical-json.d.ts +3 -0
- package/dist/time-series-canonical-json.d.ts.map +1 -0
- package/dist/time-series-canonical-json.js +15 -0
- package/dist/time-series-canonicalize.d.ts +3 -0
- package/dist/time-series-canonicalize.d.ts.map +1 -0
- package/dist/time-series-canonicalize.js +19 -0
- package/dist/time-series-errors.d.ts +13 -0
- package/dist/time-series-errors.d.ts.map +1 -0
- package/dist/time-series-errors.js +12 -0
- package/dist/time-series-semantic-validator.d.ts +5 -0
- package/dist/time-series-semantic-validator.d.ts.map +1 -0
- package/dist/time-series-semantic-validator.js +81 -0
- package/dist/time-series-validator.d.ts +4 -0
- package/dist/time-series-validator.d.ts.map +1 -0
- package/dist/time-series-validator.js +52 -0
- package/package.json +1 -1
- package/schema/chart-config.schema.json +68 -1
- package/schema/chart-scene.schema.json +1 -27
- package/schema/common.schema.json +26 -0
- package/schema/drawable-workspace.schema.json +110 -0
- package/schema/drawing-document.schema.json +811 -0
- package/schema/time-series-chart-config.schema.json +75 -0
- package/schema/time-series-runtime.schema.json +13 -0
- package/schema/time-series-scene.schema.json +145 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
// @ts-nocheck -- generated standalone validator
|
|
2
2
|
"use strict";
|
|
3
3
|
export const validateChartScene = validate20;
|
|
4
|
-
const schema31 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://baron.dev/kline-scene/chart-scene.schema.json", "title": "ChartScene", "type": "object", "additionalProperties": false, "required": ["schema", "version", "runtime", "symbol", "period", "data", "chart", "panes", "overlays", "viewport", "render", "metadata"], "properties": { "schema": { "const": "@baron1996/kline-scene" }, "version": { "const": 1 }, "runtime": { "$ref": "https://baron.dev/kline-scene/runtime.schema.json" }, "symbol": { "$ref": "#/$defs/symbol" }, "period": { "$ref": "#/$defs/period" }, "data": { "type": "array", "minItems": 1, "maxItems": 1000000, "items": { "$ref": "https://baron.dev/kline-scene/market-data.schema.json" } }, "chart": { "$ref": "https://baron.dev/kline-scene/chart-config.schema.json" }, "panes": { "type": "array", "minItems": 1, "maxItems": 32, "items": { "$ref": "https://baron.dev/kline-scene/pane.schema.json" } }, "overlays": { "type": "array", "maxItems": 10000, "items": { "$ref": "https://baron.dev/kline-scene/overlay.schema.json" } }, "viewport": { "$ref": "#/$defs/viewport" }, "render": { "$ref": "#/$defs/render" }, "metadata": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/metadata" } }, "$defs": { "symbol": { "type": "object", "additionalProperties": false, "required": ["ticker", "pricePrecision", "volumePrecision"], "properties": { "ticker": { "type": "string", "minLength": 1, "maxLength": 128 }, "name": { "type": "string", "minLength": 1, "maxLength": 256 }, "pricePrecision": { "type": "integer", "minimum": 0, "maximum": 16 }, "volumePrecision": { "type": "integer", "minimum": 0, "maximum": 16 } } }, "
|
|
4
|
+
const schema31 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://baron.dev/kline-scene/chart-scene.schema.json", "title": "ChartScene", "type": "object", "additionalProperties": false, "required": ["schema", "version", "runtime", "symbol", "period", "data", "chart", "panes", "overlays", "viewport", "render", "metadata"], "properties": { "schema": { "const": "@baron1996/kline-scene" }, "version": { "const": 1 }, "runtime": { "$ref": "https://baron.dev/kline-scene/runtime.schema.json" }, "symbol": { "$ref": "#/$defs/symbol" }, "period": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/period" }, "data": { "type": "array", "minItems": 1, "maxItems": 1000000, "items": { "$ref": "https://baron.dev/kline-scene/market-data.schema.json" } }, "chart": { "$ref": "https://baron.dev/kline-scene/chart-config.schema.json" }, "panes": { "type": "array", "minItems": 1, "maxItems": 32, "items": { "$ref": "https://baron.dev/kline-scene/pane.schema.json" } }, "overlays": { "type": "array", "maxItems": 10000, "items": { "$ref": "https://baron.dev/kline-scene/overlay.schema.json" } }, "viewport": { "$ref": "#/$defs/viewport" }, "render": { "$ref": "#/$defs/render" }, "metadata": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/metadata" } }, "$defs": { "symbol": { "type": "object", "additionalProperties": false, "required": ["ticker", "pricePrecision", "volumePrecision"], "properties": { "ticker": { "type": "string", "minLength": 1, "maxLength": 128 }, "name": { "type": "string", "minLength": 1, "maxLength": 256 }, "pricePrecision": { "type": "integer", "minimum": 0, "maximum": 16 }, "volumePrecision": { "type": "integer", "minimum": 0, "maximum": 16 } } }, "viewport": { "type": "object", "additionalProperties": false, "required": ["barSpace", "rightOffsetDistance", "anchorTimestamp"], "properties": { "barSpace": { "type": "number", "minimum": 1, "maximum": 100 }, "rightOffsetDistance": { "type": "number", "minimum": 0, "maximum": 10000 }, "anchorTimestamp": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" } } }, "render": { "type": "object", "additionalProperties": false, "required": ["width", "height", "deviceScaleFactor", "background", "fontFamily", "timeoutMs"], "properties": { "width": { "type": "integer", "minimum": 320, "maximum": 8192 }, "height": { "type": "integer", "minimum": 240, "maximum": 8192 }, "deviceScaleFactor": { "type": "number", "minimum": 0.5, "maximum": 4 }, "background": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" }, "fontFamily": { "enum": ["Baron Sans"] }, "timeoutMs": { "type": "integer", "minimum": 100, "maximum": 120000 } } } } };
|
|
5
5
|
const schema32 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://baron.dev/kline-scene/runtime.schema.json", "title": "RuntimeIdentity", "type": "object", "additionalProperties": false, "required": ["engine", "engineVersion", "runtimeVersion"], "properties": { "engine": { "const": "klinecharts" }, "engineVersion": { "const": "10.0.0" }, "runtimeVersion": { "enum": ["0.1.0", "0.2.0"] } } };
|
|
6
6
|
const schema33 = { "type": "object", "additionalProperties": false, "required": ["ticker", "pricePrecision", "volumePrecision"], "properties": { "ticker": { "type": "string", "minLength": 1, "maxLength": 128 }, "name": { "type": "string", "minLength": 1, "maxLength": 256 }, "pricePrecision": { "type": "integer", "minimum": 0, "maximum": 16 }, "volumePrecision": { "type": "integer", "minimum": 0, "maximum": 16 } } };
|
|
7
|
-
const
|
|
7
|
+
const schema35 = { "type": "object", "additionalProperties": false, "required": ["span", "type"], "properties": { "span": { "type": "integer", "minimum": 1, "maximum": 100000 }, "type": { "enum": ["second", "minute", "hour", "day", "week", "month", "year"] } } };
|
|
8
8
|
const func1 = Object.prototype.hasOwnProperty;
|
|
9
9
|
const func2 = (value) => { let length = 0; for (const _character of value)
|
|
10
10
|
length++; return length; };
|
|
11
|
-
const
|
|
11
|
+
const schema36 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://baron.dev/kline-scene/market-data.schema.json", "title": "MarketData", "type": "object", "additionalProperties": false, "required": ["timestamp", "open", "high", "low", "close"], "properties": { "timestamp": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" }, "open": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" }, "high": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" }, "low": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" }, "close": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" }, "volume": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/nonNegativeNumber" }, "turnover": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/nonNegativeNumber" } } };
|
|
12
12
|
const schema37 = { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 };
|
|
13
13
|
const schema38 = { "type": "number", "minimum": -1.7976931348623157e+308, "maximum": 1.7976931348623157e+308 };
|
|
14
14
|
const schema42 = { "type": "number", "minimum": 0, "maximum": 1.7976931348623157e+308 };
|
|
15
|
-
function
|
|
15
|
+
function validate22(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://baron.dev/kline-scene/market-data.schema.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate22.evaluated; if (evaluated0.dynamicProps) {
|
|
16
16
|
evaluated0.props = undefined;
|
|
17
17
|
} if (evaluated0.dynamicItems) {
|
|
18
18
|
evaluated0.items = undefined;
|
|
@@ -334,9 +334,9 @@ else {
|
|
|
334
334
|
vErrors.push(err27);
|
|
335
335
|
}
|
|
336
336
|
errors++;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
const schema44 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://baron.dev/kline-scene/chart-config.schema.json", "title": "ChartConfig", "type": "object", "additionalProperties": false, "required": ["locale", "timezone", "layout", "candle", "grid", "thousandsSeparator", "decimalFold", "zoomAnchor", "dateFormat", "largeNumberFormat"], "properties": { "locale": { "type": "string", "minLength": 2, "maxLength": 64, "pattern": "^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$" }, "timezone": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z_+-]+(?:/[A-Za-z0-9_+-]+)*$" }, "layout": { "type": "object", "additionalProperties": false, "required": ["backgroundColor", "textColor", "fontFamily", "fontSize"], "properties": { "backgroundColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" }, "textColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" }, "fontFamily": { "type": "string", "minLength": 1, "maxLength": 128 }, "fontSize": { "type": "number", "minimum": 8, "maximum": 32 } } }, "candle": { "type": "object", "additionalProperties": false, "required": ["type", "upColor", "downColor", "noChangeColor", "upBorderColor", "downBorderColor", "noChangeBorderColor", "upWickColor", "downWickColor", "noChangeWickColor"], "properties": { "type": { "enum": ["candle_solid", "candle_stroke", "candle_up_stroke", "candle_down_stroke", "ohlc"] }, "upColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" }, "downColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" }, "noChangeColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" }, "upBorderColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" }, "downBorderColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" }, "noChangeBorderColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" }, "upWickColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" }, "downWickColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" }, "noChangeWickColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" } } }, "grid": { "type": "object", "additionalProperties": false, "required": ["horizontalColor", "verticalColor"], "properties": { "horizontalColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" }, "verticalColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" } } }, "thousandsSeparator": { "enum": ["", ",", " ", "_"] }, "decimalFold": { "type": "object", "additionalProperties": false, "required": ["enabled", "threshold"], "properties": { "enabled": { "type": "boolean" }, "threshold": { "type": "integer", "minimum": 1, "maximum": 16 } } }, "zoomAnchor": { "enum": ["cursor", "right"] }, "dateFormat": { "enum": ["yyyy-MM-dd", "yyyy-MM-dd HH:mm", "yyyy-MM-dd HH:mm:ss"] }, "largeNumberFormat": { "enum": ["western", "chinese", "plain"] } } };
|
|
337
|
+
} validate22.errors = vErrors; return errors === 0; }
|
|
338
|
+
validate22.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
339
|
+
const schema44 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://baron.dev/kline-scene/chart-config.schema.json", "title": "ChartConfig", "type": "object", "additionalProperties": false, "required": ["locale", "timezone", "layout", "candle", "grid", "thousandsSeparator", "decimalFold", "zoomAnchor", "dateFormat", "largeNumberFormat"], "properties": { "locale": { "type": "string", "minLength": 2, "maxLength": 64, "pattern": "^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$" }, "timezone": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z_+-]+(?:/[A-Za-z0-9_+-]+)*$" }, "layout": { "type": "object", "additionalProperties": false, "required": ["backgroundColor", "textColor", "fontFamily", "fontSize"], "properties": { "backgroundColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" }, "textColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" }, "fontFamily": { "type": "string", "minLength": 1, "maxLength": 128 }, "fontSize": { "type": "number", "minimum": 8, "maximum": 32 } } }, "candle": { "type": "object", "additionalProperties": false, "required": ["type", "upColor", "downColor", "noChangeColor", "upBorderColor", "downBorderColor", "noChangeBorderColor", "upWickColor", "downWickColor", "noChangeWickColor"], "properties": { "type": { "enum": ["candle_solid", "candle_stroke", "candle_up_stroke", "candle_down_stroke", "ohlc", "area"] }, "area": { "type": "object", "additionalProperties": false, "required": ["value", "line", "backgroundColor", "smooth", "pointVisible"], "properties": { "value": { "const": "close" }, "line": { "type": "object", "additionalProperties": false, "required": ["color", "size"], "properties": { "color": { "const": "rgba(41, 98, 255, 1)" }, "size": { "const": 2 } } }, "backgroundColor": { "const": "rgba(0, 0, 0, 0)" }, "smooth": { "const": false }, "pointVisible": { "const": false } } }, "upColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" }, "downColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" }, "noChangeColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" }, "upBorderColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" }, "downBorderColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" }, "noChangeBorderColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" }, "upWickColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" }, "downWickColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" }, "noChangeWickColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" } }, "if": { "properties": { "type": { "const": "area" } }, "required": ["type"] }, "then": { "required": ["area"], "properties": { "area": true } }, "else": { "not": { "required": ["area"] } } }, "grid": { "type": "object", "additionalProperties": false, "required": ["horizontalColor", "verticalColor"], "properties": { "horizontalColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" }, "verticalColor": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" } } }, "thousandsSeparator": { "enum": ["", ",", " ", "_"] }, "decimalFold": { "type": "object", "additionalProperties": false, "required": ["enabled", "threshold"], "properties": { "enabled": { "type": "boolean" }, "threshold": { "type": "integer", "minimum": 1, "maximum": 16 } } }, "zoomAnchor": { "enum": ["cursor", "right"] }, "dateFormat": { "enum": ["yyyy-MM-dd", "yyyy-MM-dd HH:mm", "yyyy-MM-dd HH:mm:ss"] }, "largeNumberFormat": { "enum": ["western", "chinese", "plain"] } } };
|
|
340
340
|
const schema45 = { "type": "string", "pattern": "^rgba\\(\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*(?:0(?:\\.[0-9]+)?|1(?:\\.0+)?)\\s*\\)$" };
|
|
341
341
|
const pattern4 = new RegExp("^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$", "u");
|
|
342
342
|
const pattern5 = new RegExp("^[A-Za-z_+-]+(?:/[A-Za-z0-9_+-]+)*$", "u");
|
|
@@ -737,9 +737,13 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
737
737
|
}
|
|
738
738
|
if (data.candle !== undefined) {
|
|
739
739
|
let data7 = data.candle;
|
|
740
|
+
const _errs21 = errors;
|
|
741
|
+
let valid4 = true;
|
|
742
|
+
const _errs22 = errors;
|
|
740
743
|
if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
|
|
741
|
-
|
|
742
|
-
|
|
744
|
+
let missing0;
|
|
745
|
+
if ((data7.type === undefined) && (missing0 = "type")) {
|
|
746
|
+
const err35 = {};
|
|
743
747
|
if (vErrors === null) {
|
|
744
748
|
vErrors = [err35];
|
|
745
749
|
}
|
|
@@ -748,545 +752,854 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
748
752
|
}
|
|
749
753
|
errors++;
|
|
750
754
|
}
|
|
755
|
+
else {
|
|
756
|
+
if (data7.type !== undefined) {
|
|
757
|
+
if ("area" !== data7.type) {
|
|
758
|
+
const err36 = {};
|
|
759
|
+
if (vErrors === null) {
|
|
760
|
+
vErrors = [err36];
|
|
761
|
+
}
|
|
762
|
+
else {
|
|
763
|
+
vErrors.push(err36);
|
|
764
|
+
}
|
|
765
|
+
errors++;
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
var _valid0 = _errs22 === errors;
|
|
771
|
+
errors = _errs21;
|
|
772
|
+
if (vErrors !== null) {
|
|
773
|
+
if (_errs21) {
|
|
774
|
+
vErrors.length = _errs21;
|
|
775
|
+
}
|
|
776
|
+
else {
|
|
777
|
+
vErrors = null;
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
let ifClause0;
|
|
781
|
+
if (_valid0) {
|
|
782
|
+
const _errs24 = errors;
|
|
783
|
+
if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
|
|
784
|
+
if (data7.area === undefined) {
|
|
785
|
+
const err37 = { instancePath: instancePath + "/candle", schemaPath: "#/properties/candle/then/required", keyword: "required", params: { missingProperty: "area" }, message: "must have required property '" + "area" + "'" };
|
|
786
|
+
if (vErrors === null) {
|
|
787
|
+
vErrors = [err37];
|
|
788
|
+
}
|
|
789
|
+
else {
|
|
790
|
+
vErrors.push(err37);
|
|
791
|
+
}
|
|
792
|
+
errors++;
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
var _valid0 = _errs24 === errors;
|
|
796
|
+
valid4 = _valid0;
|
|
797
|
+
if (valid4) {
|
|
798
|
+
var props0 = {};
|
|
799
|
+
props0.area = true;
|
|
800
|
+
props0.type = true;
|
|
801
|
+
}
|
|
802
|
+
ifClause0 = "then";
|
|
803
|
+
}
|
|
804
|
+
else {
|
|
805
|
+
const _errs25 = errors;
|
|
806
|
+
const _errs26 = errors;
|
|
807
|
+
const _errs27 = errors;
|
|
808
|
+
if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
|
|
809
|
+
let missing1;
|
|
810
|
+
if ((data7.area === undefined) && (missing1 = "area")) {
|
|
811
|
+
const err38 = {};
|
|
812
|
+
if (vErrors === null) {
|
|
813
|
+
vErrors = [err38];
|
|
814
|
+
}
|
|
815
|
+
else {
|
|
816
|
+
vErrors.push(err38);
|
|
817
|
+
}
|
|
818
|
+
errors++;
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
var valid6 = _errs27 === errors;
|
|
822
|
+
if (valid6) {
|
|
823
|
+
const err39 = { instancePath: instancePath + "/candle", schemaPath: "#/properties/candle/else/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
824
|
+
if (vErrors === null) {
|
|
825
|
+
vErrors = [err39];
|
|
826
|
+
}
|
|
827
|
+
else {
|
|
828
|
+
vErrors.push(err39);
|
|
829
|
+
}
|
|
830
|
+
errors++;
|
|
831
|
+
}
|
|
832
|
+
else {
|
|
833
|
+
errors = _errs26;
|
|
834
|
+
if (vErrors !== null) {
|
|
835
|
+
if (_errs26) {
|
|
836
|
+
vErrors.length = _errs26;
|
|
837
|
+
}
|
|
838
|
+
else {
|
|
839
|
+
vErrors = null;
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
var _valid0 = _errs25 === errors;
|
|
844
|
+
valid4 = _valid0;
|
|
845
|
+
ifClause0 = "else";
|
|
846
|
+
}
|
|
847
|
+
if (!valid4) {
|
|
848
|
+
const err40 = { instancePath: instancePath + "/candle", schemaPath: "#/properties/candle/if", keyword: "if", params: { failingKeyword: ifClause0 }, message: "must match \"" + ifClause0 + "\" schema" };
|
|
849
|
+
if (vErrors === null) {
|
|
850
|
+
vErrors = [err40];
|
|
851
|
+
}
|
|
852
|
+
else {
|
|
853
|
+
vErrors.push(err40);
|
|
854
|
+
}
|
|
855
|
+
errors++;
|
|
856
|
+
}
|
|
857
|
+
if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
|
|
858
|
+
if (data7.type === undefined) {
|
|
859
|
+
const err41 = { instancePath: instancePath + "/candle", schemaPath: "#/properties/candle/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property '" + "type" + "'" };
|
|
860
|
+
if (vErrors === null) {
|
|
861
|
+
vErrors = [err41];
|
|
862
|
+
}
|
|
863
|
+
else {
|
|
864
|
+
vErrors.push(err41);
|
|
865
|
+
}
|
|
866
|
+
errors++;
|
|
867
|
+
}
|
|
751
868
|
if (data7.upColor === undefined) {
|
|
752
|
-
const
|
|
869
|
+
const err42 = { instancePath: instancePath + "/candle", schemaPath: "#/properties/candle/required", keyword: "required", params: { missingProperty: "upColor" }, message: "must have required property '" + "upColor" + "'" };
|
|
753
870
|
if (vErrors === null) {
|
|
754
|
-
vErrors = [
|
|
871
|
+
vErrors = [err42];
|
|
755
872
|
}
|
|
756
873
|
else {
|
|
757
|
-
vErrors.push(
|
|
874
|
+
vErrors.push(err42);
|
|
758
875
|
}
|
|
759
876
|
errors++;
|
|
760
877
|
}
|
|
761
878
|
if (data7.downColor === undefined) {
|
|
762
|
-
const
|
|
879
|
+
const err43 = { instancePath: instancePath + "/candle", schemaPath: "#/properties/candle/required", keyword: "required", params: { missingProperty: "downColor" }, message: "must have required property '" + "downColor" + "'" };
|
|
763
880
|
if (vErrors === null) {
|
|
764
|
-
vErrors = [
|
|
881
|
+
vErrors = [err43];
|
|
765
882
|
}
|
|
766
883
|
else {
|
|
767
|
-
vErrors.push(
|
|
884
|
+
vErrors.push(err43);
|
|
768
885
|
}
|
|
769
886
|
errors++;
|
|
770
887
|
}
|
|
771
888
|
if (data7.noChangeColor === undefined) {
|
|
772
|
-
const
|
|
889
|
+
const err44 = { instancePath: instancePath + "/candle", schemaPath: "#/properties/candle/required", keyword: "required", params: { missingProperty: "noChangeColor" }, message: "must have required property '" + "noChangeColor" + "'" };
|
|
773
890
|
if (vErrors === null) {
|
|
774
|
-
vErrors = [
|
|
891
|
+
vErrors = [err44];
|
|
775
892
|
}
|
|
776
893
|
else {
|
|
777
|
-
vErrors.push(
|
|
894
|
+
vErrors.push(err44);
|
|
778
895
|
}
|
|
779
896
|
errors++;
|
|
780
897
|
}
|
|
781
898
|
if (data7.upBorderColor === undefined) {
|
|
782
|
-
const
|
|
899
|
+
const err45 = { instancePath: instancePath + "/candle", schemaPath: "#/properties/candle/required", keyword: "required", params: { missingProperty: "upBorderColor" }, message: "must have required property '" + "upBorderColor" + "'" };
|
|
783
900
|
if (vErrors === null) {
|
|
784
|
-
vErrors = [
|
|
901
|
+
vErrors = [err45];
|
|
785
902
|
}
|
|
786
903
|
else {
|
|
787
|
-
vErrors.push(
|
|
904
|
+
vErrors.push(err45);
|
|
788
905
|
}
|
|
789
906
|
errors++;
|
|
790
907
|
}
|
|
791
908
|
if (data7.downBorderColor === undefined) {
|
|
792
|
-
const
|
|
909
|
+
const err46 = { instancePath: instancePath + "/candle", schemaPath: "#/properties/candle/required", keyword: "required", params: { missingProperty: "downBorderColor" }, message: "must have required property '" + "downBorderColor" + "'" };
|
|
793
910
|
if (vErrors === null) {
|
|
794
|
-
vErrors = [
|
|
911
|
+
vErrors = [err46];
|
|
795
912
|
}
|
|
796
913
|
else {
|
|
797
|
-
vErrors.push(
|
|
914
|
+
vErrors.push(err46);
|
|
798
915
|
}
|
|
799
916
|
errors++;
|
|
800
917
|
}
|
|
801
918
|
if (data7.noChangeBorderColor === undefined) {
|
|
802
|
-
const
|
|
919
|
+
const err47 = { instancePath: instancePath + "/candle", schemaPath: "#/properties/candle/required", keyword: "required", params: { missingProperty: "noChangeBorderColor" }, message: "must have required property '" + "noChangeBorderColor" + "'" };
|
|
803
920
|
if (vErrors === null) {
|
|
804
|
-
vErrors = [
|
|
921
|
+
vErrors = [err47];
|
|
805
922
|
}
|
|
806
923
|
else {
|
|
807
|
-
vErrors.push(
|
|
924
|
+
vErrors.push(err47);
|
|
808
925
|
}
|
|
809
926
|
errors++;
|
|
810
927
|
}
|
|
811
928
|
if (data7.upWickColor === undefined) {
|
|
812
|
-
const
|
|
929
|
+
const err48 = { instancePath: instancePath + "/candle", schemaPath: "#/properties/candle/required", keyword: "required", params: { missingProperty: "upWickColor" }, message: "must have required property '" + "upWickColor" + "'" };
|
|
813
930
|
if (vErrors === null) {
|
|
814
|
-
vErrors = [
|
|
931
|
+
vErrors = [err48];
|
|
815
932
|
}
|
|
816
933
|
else {
|
|
817
|
-
vErrors.push(
|
|
934
|
+
vErrors.push(err48);
|
|
818
935
|
}
|
|
819
936
|
errors++;
|
|
820
937
|
}
|
|
821
938
|
if (data7.downWickColor === undefined) {
|
|
822
|
-
const
|
|
939
|
+
const err49 = { instancePath: instancePath + "/candle", schemaPath: "#/properties/candle/required", keyword: "required", params: { missingProperty: "downWickColor" }, message: "must have required property '" + "downWickColor" + "'" };
|
|
823
940
|
if (vErrors === null) {
|
|
824
|
-
vErrors = [
|
|
941
|
+
vErrors = [err49];
|
|
825
942
|
}
|
|
826
943
|
else {
|
|
827
|
-
vErrors.push(
|
|
944
|
+
vErrors.push(err49);
|
|
828
945
|
}
|
|
829
946
|
errors++;
|
|
830
947
|
}
|
|
831
948
|
if (data7.noChangeWickColor === undefined) {
|
|
832
|
-
const
|
|
949
|
+
const err50 = { instancePath: instancePath + "/candle", schemaPath: "#/properties/candle/required", keyword: "required", params: { missingProperty: "noChangeWickColor" }, message: "must have required property '" + "noChangeWickColor" + "'" };
|
|
833
950
|
if (vErrors === null) {
|
|
834
|
-
vErrors = [
|
|
951
|
+
vErrors = [err50];
|
|
835
952
|
}
|
|
836
953
|
else {
|
|
837
|
-
vErrors.push(
|
|
954
|
+
vErrors.push(err50);
|
|
838
955
|
}
|
|
839
956
|
errors++;
|
|
840
957
|
}
|
|
841
958
|
for (const key2 in data7) {
|
|
842
959
|
if (!(func1.call(schema44.properties.candle.properties, key2))) {
|
|
843
|
-
const
|
|
960
|
+
const err51 = { instancePath: instancePath + "/candle", schemaPath: "#/properties/candle/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
|
|
844
961
|
if (vErrors === null) {
|
|
845
|
-
vErrors = [
|
|
962
|
+
vErrors = [err51];
|
|
846
963
|
}
|
|
847
964
|
else {
|
|
848
|
-
vErrors.push(
|
|
965
|
+
vErrors.push(err51);
|
|
849
966
|
}
|
|
850
967
|
errors++;
|
|
851
968
|
}
|
|
852
969
|
}
|
|
853
970
|
if (data7.type !== undefined) {
|
|
854
|
-
let
|
|
855
|
-
if (!(((((
|
|
856
|
-
const
|
|
971
|
+
let data9 = data7.type;
|
|
972
|
+
if (!((((((data9 === "candle_solid") || (data9 === "candle_stroke")) || (data9 === "candle_up_stroke")) || (data9 === "candle_down_stroke")) || (data9 === "ohlc")) || (data9 === "area"))) {
|
|
973
|
+
const err52 = { instancePath: instancePath + "/candle/type", schemaPath: "#/properties/candle/properties/type/enum", keyword: "enum", params: { allowedValues: schema44.properties.candle.properties.type.enum }, message: "must be equal to one of the allowed values" };
|
|
857
974
|
if (vErrors === null) {
|
|
858
|
-
vErrors = [
|
|
975
|
+
vErrors = [err52];
|
|
859
976
|
}
|
|
860
977
|
else {
|
|
861
|
-
vErrors.push(
|
|
978
|
+
vErrors.push(err52);
|
|
979
|
+
}
|
|
980
|
+
errors++;
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
if (data7.area !== undefined) {
|
|
984
|
+
let data10 = data7.area;
|
|
985
|
+
if (data10 && typeof data10 == "object" && !Array.isArray(data10)) {
|
|
986
|
+
if (data10.value === undefined) {
|
|
987
|
+
const err53 = { instancePath: instancePath + "/candle/area", schemaPath: "#/properties/candle/properties/area/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property '" + "value" + "'" };
|
|
988
|
+
if (vErrors === null) {
|
|
989
|
+
vErrors = [err53];
|
|
990
|
+
}
|
|
991
|
+
else {
|
|
992
|
+
vErrors.push(err53);
|
|
993
|
+
}
|
|
994
|
+
errors++;
|
|
995
|
+
}
|
|
996
|
+
if (data10.line === undefined) {
|
|
997
|
+
const err54 = { instancePath: instancePath + "/candle/area", schemaPath: "#/properties/candle/properties/area/required", keyword: "required", params: { missingProperty: "line" }, message: "must have required property '" + "line" + "'" };
|
|
998
|
+
if (vErrors === null) {
|
|
999
|
+
vErrors = [err54];
|
|
1000
|
+
}
|
|
1001
|
+
else {
|
|
1002
|
+
vErrors.push(err54);
|
|
1003
|
+
}
|
|
1004
|
+
errors++;
|
|
1005
|
+
}
|
|
1006
|
+
if (data10.backgroundColor === undefined) {
|
|
1007
|
+
const err55 = { instancePath: instancePath + "/candle/area", schemaPath: "#/properties/candle/properties/area/required", keyword: "required", params: { missingProperty: "backgroundColor" }, message: "must have required property '" + "backgroundColor" + "'" };
|
|
1008
|
+
if (vErrors === null) {
|
|
1009
|
+
vErrors = [err55];
|
|
1010
|
+
}
|
|
1011
|
+
else {
|
|
1012
|
+
vErrors.push(err55);
|
|
1013
|
+
}
|
|
1014
|
+
errors++;
|
|
1015
|
+
}
|
|
1016
|
+
if (data10.smooth === undefined) {
|
|
1017
|
+
const err56 = { instancePath: instancePath + "/candle/area", schemaPath: "#/properties/candle/properties/area/required", keyword: "required", params: { missingProperty: "smooth" }, message: "must have required property '" + "smooth" + "'" };
|
|
1018
|
+
if (vErrors === null) {
|
|
1019
|
+
vErrors = [err56];
|
|
1020
|
+
}
|
|
1021
|
+
else {
|
|
1022
|
+
vErrors.push(err56);
|
|
1023
|
+
}
|
|
1024
|
+
errors++;
|
|
1025
|
+
}
|
|
1026
|
+
if (data10.pointVisible === undefined) {
|
|
1027
|
+
const err57 = { instancePath: instancePath + "/candle/area", schemaPath: "#/properties/candle/properties/area/required", keyword: "required", params: { missingProperty: "pointVisible" }, message: "must have required property '" + "pointVisible" + "'" };
|
|
1028
|
+
if (vErrors === null) {
|
|
1029
|
+
vErrors = [err57];
|
|
1030
|
+
}
|
|
1031
|
+
else {
|
|
1032
|
+
vErrors.push(err57);
|
|
1033
|
+
}
|
|
1034
|
+
errors++;
|
|
1035
|
+
}
|
|
1036
|
+
for (const key3 in data10) {
|
|
1037
|
+
if (!(((((key3 === "value") || (key3 === "line")) || (key3 === "backgroundColor")) || (key3 === "smooth")) || (key3 === "pointVisible"))) {
|
|
1038
|
+
const err58 = { instancePath: instancePath + "/candle/area", schemaPath: "#/properties/candle/properties/area/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" };
|
|
1039
|
+
if (vErrors === null) {
|
|
1040
|
+
vErrors = [err58];
|
|
1041
|
+
}
|
|
1042
|
+
else {
|
|
1043
|
+
vErrors.push(err58);
|
|
1044
|
+
}
|
|
1045
|
+
errors++;
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
if (data10.value !== undefined) {
|
|
1049
|
+
if ("close" !== data10.value) {
|
|
1050
|
+
const err59 = { instancePath: instancePath + "/candle/area/value", schemaPath: "#/properties/candle/properties/area/properties/value/const", keyword: "const", params: { allowedValue: "close" }, message: "must be equal to constant" };
|
|
1051
|
+
if (vErrors === null) {
|
|
1052
|
+
vErrors = [err59];
|
|
1053
|
+
}
|
|
1054
|
+
else {
|
|
1055
|
+
vErrors.push(err59);
|
|
1056
|
+
}
|
|
1057
|
+
errors++;
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
if (data10.line !== undefined) {
|
|
1061
|
+
let data12 = data10.line;
|
|
1062
|
+
if (data12 && typeof data12 == "object" && !Array.isArray(data12)) {
|
|
1063
|
+
if (data12.color === undefined) {
|
|
1064
|
+
const err60 = { instancePath: instancePath + "/candle/area/line", schemaPath: "#/properties/candle/properties/area/properties/line/required", keyword: "required", params: { missingProperty: "color" }, message: "must have required property '" + "color" + "'" };
|
|
1065
|
+
if (vErrors === null) {
|
|
1066
|
+
vErrors = [err60];
|
|
1067
|
+
}
|
|
1068
|
+
else {
|
|
1069
|
+
vErrors.push(err60);
|
|
1070
|
+
}
|
|
1071
|
+
errors++;
|
|
1072
|
+
}
|
|
1073
|
+
if (data12.size === undefined) {
|
|
1074
|
+
const err61 = { instancePath: instancePath + "/candle/area/line", schemaPath: "#/properties/candle/properties/area/properties/line/required", keyword: "required", params: { missingProperty: "size" }, message: "must have required property '" + "size" + "'" };
|
|
1075
|
+
if (vErrors === null) {
|
|
1076
|
+
vErrors = [err61];
|
|
1077
|
+
}
|
|
1078
|
+
else {
|
|
1079
|
+
vErrors.push(err61);
|
|
1080
|
+
}
|
|
1081
|
+
errors++;
|
|
1082
|
+
}
|
|
1083
|
+
for (const key4 in data12) {
|
|
1084
|
+
if (!((key4 === "color") || (key4 === "size"))) {
|
|
1085
|
+
const err62 = { instancePath: instancePath + "/candle/area/line", schemaPath: "#/properties/candle/properties/area/properties/line/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" };
|
|
1086
|
+
if (vErrors === null) {
|
|
1087
|
+
vErrors = [err62];
|
|
1088
|
+
}
|
|
1089
|
+
else {
|
|
1090
|
+
vErrors.push(err62);
|
|
1091
|
+
}
|
|
1092
|
+
errors++;
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
if (data12.color !== undefined) {
|
|
1096
|
+
if ("rgba(41, 98, 255, 1)" !== data12.color) {
|
|
1097
|
+
const err63 = { instancePath: instancePath + "/candle/area/line/color", schemaPath: "#/properties/candle/properties/area/properties/line/properties/color/const", keyword: "const", params: { allowedValue: "rgba(41, 98, 255, 1)" }, message: "must be equal to constant" };
|
|
1098
|
+
if (vErrors === null) {
|
|
1099
|
+
vErrors = [err63];
|
|
1100
|
+
}
|
|
1101
|
+
else {
|
|
1102
|
+
vErrors.push(err63);
|
|
1103
|
+
}
|
|
1104
|
+
errors++;
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
if (data12.size !== undefined) {
|
|
1108
|
+
if (2 !== data12.size) {
|
|
1109
|
+
const err64 = { instancePath: instancePath + "/candle/area/line/size", schemaPath: "#/properties/candle/properties/area/properties/line/properties/size/const", keyword: "const", params: { allowedValue: 2 }, message: "must be equal to constant" };
|
|
1110
|
+
if (vErrors === null) {
|
|
1111
|
+
vErrors = [err64];
|
|
1112
|
+
}
|
|
1113
|
+
else {
|
|
1114
|
+
vErrors.push(err64);
|
|
1115
|
+
}
|
|
1116
|
+
errors++;
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
else {
|
|
1121
|
+
const err65 = { instancePath: instancePath + "/candle/area/line", schemaPath: "#/properties/candle/properties/area/properties/line/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1122
|
+
if (vErrors === null) {
|
|
1123
|
+
vErrors = [err65];
|
|
1124
|
+
}
|
|
1125
|
+
else {
|
|
1126
|
+
vErrors.push(err65);
|
|
1127
|
+
}
|
|
1128
|
+
errors++;
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
if (data10.backgroundColor !== undefined) {
|
|
1132
|
+
if ("rgba(0, 0, 0, 0)" !== data10.backgroundColor) {
|
|
1133
|
+
const err66 = { instancePath: instancePath + "/candle/area/backgroundColor", schemaPath: "#/properties/candle/properties/area/properties/backgroundColor/const", keyword: "const", params: { allowedValue: "rgba(0, 0, 0, 0)" }, message: "must be equal to constant" };
|
|
1134
|
+
if (vErrors === null) {
|
|
1135
|
+
vErrors = [err66];
|
|
1136
|
+
}
|
|
1137
|
+
else {
|
|
1138
|
+
vErrors.push(err66);
|
|
1139
|
+
}
|
|
1140
|
+
errors++;
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
if (data10.smooth !== undefined) {
|
|
1144
|
+
if (false !== data10.smooth) {
|
|
1145
|
+
const err67 = { instancePath: instancePath + "/candle/area/smooth", schemaPath: "#/properties/candle/properties/area/properties/smooth/const", keyword: "const", params: { allowedValue: false }, message: "must be equal to constant" };
|
|
1146
|
+
if (vErrors === null) {
|
|
1147
|
+
vErrors = [err67];
|
|
1148
|
+
}
|
|
1149
|
+
else {
|
|
1150
|
+
vErrors.push(err67);
|
|
1151
|
+
}
|
|
1152
|
+
errors++;
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
if (data10.pointVisible !== undefined) {
|
|
1156
|
+
if (false !== data10.pointVisible) {
|
|
1157
|
+
const err68 = { instancePath: instancePath + "/candle/area/pointVisible", schemaPath: "#/properties/candle/properties/area/properties/pointVisible/const", keyword: "const", params: { allowedValue: false }, message: "must be equal to constant" };
|
|
1158
|
+
if (vErrors === null) {
|
|
1159
|
+
vErrors = [err68];
|
|
1160
|
+
}
|
|
1161
|
+
else {
|
|
1162
|
+
vErrors.push(err68);
|
|
1163
|
+
}
|
|
1164
|
+
errors++;
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
else {
|
|
1169
|
+
const err69 = { instancePath: instancePath + "/candle/area", schemaPath: "#/properties/candle/properties/area/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1170
|
+
if (vErrors === null) {
|
|
1171
|
+
vErrors = [err69];
|
|
1172
|
+
}
|
|
1173
|
+
else {
|
|
1174
|
+
vErrors.push(err69);
|
|
862
1175
|
}
|
|
863
1176
|
errors++;
|
|
864
1177
|
}
|
|
865
1178
|
}
|
|
866
1179
|
if (data7.upColor !== undefined) {
|
|
867
|
-
let
|
|
868
|
-
if (typeof
|
|
869
|
-
if (!pattern6.test(
|
|
870
|
-
const
|
|
1180
|
+
let data18 = data7.upColor;
|
|
1181
|
+
if (typeof data18 === "string") {
|
|
1182
|
+
if (!pattern6.test(data18)) {
|
|
1183
|
+
const err70 = { instancePath: instancePath + "/candle/upColor", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor/pattern", keyword: "pattern", params: { pattern: "^rgba\\(\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*(?:0(?:\\.[0-9]+)?|1(?:\\.0+)?)\\s*\\)$" }, message: "must match pattern \"" + "^rgba\\(\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*(?:0(?:\\.[0-9]+)?|1(?:\\.0+)?)\\s*\\)$" + "\"" };
|
|
871
1184
|
if (vErrors === null) {
|
|
872
|
-
vErrors = [
|
|
1185
|
+
vErrors = [err70];
|
|
873
1186
|
}
|
|
874
1187
|
else {
|
|
875
|
-
vErrors.push(
|
|
1188
|
+
vErrors.push(err70);
|
|
876
1189
|
}
|
|
877
1190
|
errors++;
|
|
878
1191
|
}
|
|
879
1192
|
}
|
|
880
1193
|
else {
|
|
881
|
-
const
|
|
1194
|
+
const err71 = { instancePath: instancePath + "/candle/upColor", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
882
1195
|
if (vErrors === null) {
|
|
883
|
-
vErrors = [
|
|
1196
|
+
vErrors = [err71];
|
|
884
1197
|
}
|
|
885
1198
|
else {
|
|
886
|
-
vErrors.push(
|
|
1199
|
+
vErrors.push(err71);
|
|
887
1200
|
}
|
|
888
1201
|
errors++;
|
|
889
1202
|
}
|
|
890
1203
|
}
|
|
891
1204
|
if (data7.downColor !== undefined) {
|
|
892
|
-
let
|
|
893
|
-
if (typeof
|
|
894
|
-
if (!pattern6.test(
|
|
895
|
-
const
|
|
1205
|
+
let data19 = data7.downColor;
|
|
1206
|
+
if (typeof data19 === "string") {
|
|
1207
|
+
if (!pattern6.test(data19)) {
|
|
1208
|
+
const err72 = { instancePath: instancePath + "/candle/downColor", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor/pattern", keyword: "pattern", params: { pattern: "^rgba\\(\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*(?:0(?:\\.[0-9]+)?|1(?:\\.0+)?)\\s*\\)$" }, message: "must match pattern \"" + "^rgba\\(\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*(?:0(?:\\.[0-9]+)?|1(?:\\.0+)?)\\s*\\)$" + "\"" };
|
|
896
1209
|
if (vErrors === null) {
|
|
897
|
-
vErrors = [
|
|
1210
|
+
vErrors = [err72];
|
|
898
1211
|
}
|
|
899
1212
|
else {
|
|
900
|
-
vErrors.push(
|
|
1213
|
+
vErrors.push(err72);
|
|
901
1214
|
}
|
|
902
1215
|
errors++;
|
|
903
1216
|
}
|
|
904
1217
|
}
|
|
905
1218
|
else {
|
|
906
|
-
const
|
|
1219
|
+
const err73 = { instancePath: instancePath + "/candle/downColor", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
907
1220
|
if (vErrors === null) {
|
|
908
|
-
vErrors = [
|
|
1221
|
+
vErrors = [err73];
|
|
909
1222
|
}
|
|
910
1223
|
else {
|
|
911
|
-
vErrors.push(
|
|
1224
|
+
vErrors.push(err73);
|
|
912
1225
|
}
|
|
913
1226
|
errors++;
|
|
914
1227
|
}
|
|
915
1228
|
}
|
|
916
1229
|
if (data7.noChangeColor !== undefined) {
|
|
917
|
-
let
|
|
918
|
-
if (typeof
|
|
919
|
-
if (!pattern6.test(
|
|
920
|
-
const
|
|
1230
|
+
let data20 = data7.noChangeColor;
|
|
1231
|
+
if (typeof data20 === "string") {
|
|
1232
|
+
if (!pattern6.test(data20)) {
|
|
1233
|
+
const err74 = { instancePath: instancePath + "/candle/noChangeColor", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor/pattern", keyword: "pattern", params: { pattern: "^rgba\\(\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*(?:0(?:\\.[0-9]+)?|1(?:\\.0+)?)\\s*\\)$" }, message: "must match pattern \"" + "^rgba\\(\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*(?:0(?:\\.[0-9]+)?|1(?:\\.0+)?)\\s*\\)$" + "\"" };
|
|
921
1234
|
if (vErrors === null) {
|
|
922
|
-
vErrors = [
|
|
1235
|
+
vErrors = [err74];
|
|
923
1236
|
}
|
|
924
1237
|
else {
|
|
925
|
-
vErrors.push(
|
|
1238
|
+
vErrors.push(err74);
|
|
926
1239
|
}
|
|
927
1240
|
errors++;
|
|
928
1241
|
}
|
|
929
1242
|
}
|
|
930
1243
|
else {
|
|
931
|
-
const
|
|
1244
|
+
const err75 = { instancePath: instancePath + "/candle/noChangeColor", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
932
1245
|
if (vErrors === null) {
|
|
933
|
-
vErrors = [
|
|
1246
|
+
vErrors = [err75];
|
|
934
1247
|
}
|
|
935
1248
|
else {
|
|
936
|
-
vErrors.push(
|
|
1249
|
+
vErrors.push(err75);
|
|
937
1250
|
}
|
|
938
1251
|
errors++;
|
|
939
1252
|
}
|
|
940
1253
|
}
|
|
941
1254
|
if (data7.upBorderColor !== undefined) {
|
|
942
|
-
let
|
|
943
|
-
if (typeof
|
|
944
|
-
if (!pattern6.test(
|
|
945
|
-
const
|
|
1255
|
+
let data21 = data7.upBorderColor;
|
|
1256
|
+
if (typeof data21 === "string") {
|
|
1257
|
+
if (!pattern6.test(data21)) {
|
|
1258
|
+
const err76 = { instancePath: instancePath + "/candle/upBorderColor", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor/pattern", keyword: "pattern", params: { pattern: "^rgba\\(\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*(?:0(?:\\.[0-9]+)?|1(?:\\.0+)?)\\s*\\)$" }, message: "must match pattern \"" + "^rgba\\(\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*(?:0(?:\\.[0-9]+)?|1(?:\\.0+)?)\\s*\\)$" + "\"" };
|
|
946
1259
|
if (vErrors === null) {
|
|
947
|
-
vErrors = [
|
|
1260
|
+
vErrors = [err76];
|
|
948
1261
|
}
|
|
949
1262
|
else {
|
|
950
|
-
vErrors.push(
|
|
1263
|
+
vErrors.push(err76);
|
|
951
1264
|
}
|
|
952
1265
|
errors++;
|
|
953
1266
|
}
|
|
954
1267
|
}
|
|
955
1268
|
else {
|
|
956
|
-
const
|
|
1269
|
+
const err77 = { instancePath: instancePath + "/candle/upBorderColor", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
957
1270
|
if (vErrors === null) {
|
|
958
|
-
vErrors = [
|
|
1271
|
+
vErrors = [err77];
|
|
959
1272
|
}
|
|
960
1273
|
else {
|
|
961
|
-
vErrors.push(
|
|
1274
|
+
vErrors.push(err77);
|
|
962
1275
|
}
|
|
963
1276
|
errors++;
|
|
964
1277
|
}
|
|
965
1278
|
}
|
|
966
1279
|
if (data7.downBorderColor !== undefined) {
|
|
967
|
-
let
|
|
968
|
-
if (typeof
|
|
969
|
-
if (!pattern6.test(
|
|
970
|
-
const
|
|
1280
|
+
let data22 = data7.downBorderColor;
|
|
1281
|
+
if (typeof data22 === "string") {
|
|
1282
|
+
if (!pattern6.test(data22)) {
|
|
1283
|
+
const err78 = { instancePath: instancePath + "/candle/downBorderColor", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor/pattern", keyword: "pattern", params: { pattern: "^rgba\\(\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*(?:0(?:\\.[0-9]+)?|1(?:\\.0+)?)\\s*\\)$" }, message: "must match pattern \"" + "^rgba\\(\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*(?:0(?:\\.[0-9]+)?|1(?:\\.0+)?)\\s*\\)$" + "\"" };
|
|
971
1284
|
if (vErrors === null) {
|
|
972
|
-
vErrors = [
|
|
1285
|
+
vErrors = [err78];
|
|
973
1286
|
}
|
|
974
1287
|
else {
|
|
975
|
-
vErrors.push(
|
|
1288
|
+
vErrors.push(err78);
|
|
976
1289
|
}
|
|
977
1290
|
errors++;
|
|
978
1291
|
}
|
|
979
1292
|
}
|
|
980
1293
|
else {
|
|
981
|
-
const
|
|
1294
|
+
const err79 = { instancePath: instancePath + "/candle/downBorderColor", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
982
1295
|
if (vErrors === null) {
|
|
983
|
-
vErrors = [
|
|
1296
|
+
vErrors = [err79];
|
|
984
1297
|
}
|
|
985
1298
|
else {
|
|
986
|
-
vErrors.push(
|
|
1299
|
+
vErrors.push(err79);
|
|
987
1300
|
}
|
|
988
1301
|
errors++;
|
|
989
1302
|
}
|
|
990
1303
|
}
|
|
991
1304
|
if (data7.noChangeBorderColor !== undefined) {
|
|
992
|
-
let
|
|
993
|
-
if (typeof
|
|
994
|
-
if (!pattern6.test(
|
|
995
|
-
const
|
|
1305
|
+
let data23 = data7.noChangeBorderColor;
|
|
1306
|
+
if (typeof data23 === "string") {
|
|
1307
|
+
if (!pattern6.test(data23)) {
|
|
1308
|
+
const err80 = { instancePath: instancePath + "/candle/noChangeBorderColor", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor/pattern", keyword: "pattern", params: { pattern: "^rgba\\(\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*(?:0(?:\\.[0-9]+)?|1(?:\\.0+)?)\\s*\\)$" }, message: "must match pattern \"" + "^rgba\\(\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*(?:0(?:\\.[0-9]+)?|1(?:\\.0+)?)\\s*\\)$" + "\"" };
|
|
996
1309
|
if (vErrors === null) {
|
|
997
|
-
vErrors = [
|
|
1310
|
+
vErrors = [err80];
|
|
998
1311
|
}
|
|
999
1312
|
else {
|
|
1000
|
-
vErrors.push(
|
|
1313
|
+
vErrors.push(err80);
|
|
1001
1314
|
}
|
|
1002
1315
|
errors++;
|
|
1003
1316
|
}
|
|
1004
1317
|
}
|
|
1005
1318
|
else {
|
|
1006
|
-
const
|
|
1319
|
+
const err81 = { instancePath: instancePath + "/candle/noChangeBorderColor", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1007
1320
|
if (vErrors === null) {
|
|
1008
|
-
vErrors = [
|
|
1321
|
+
vErrors = [err81];
|
|
1009
1322
|
}
|
|
1010
1323
|
else {
|
|
1011
|
-
vErrors.push(
|
|
1324
|
+
vErrors.push(err81);
|
|
1012
1325
|
}
|
|
1013
1326
|
errors++;
|
|
1014
1327
|
}
|
|
1015
1328
|
}
|
|
1016
1329
|
if (data7.upWickColor !== undefined) {
|
|
1017
|
-
let
|
|
1018
|
-
if (typeof
|
|
1019
|
-
if (!pattern6.test(
|
|
1020
|
-
const
|
|
1330
|
+
let data24 = data7.upWickColor;
|
|
1331
|
+
if (typeof data24 === "string") {
|
|
1332
|
+
if (!pattern6.test(data24)) {
|
|
1333
|
+
const err82 = { instancePath: instancePath + "/candle/upWickColor", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor/pattern", keyword: "pattern", params: { pattern: "^rgba\\(\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*(?:0(?:\\.[0-9]+)?|1(?:\\.0+)?)\\s*\\)$" }, message: "must match pattern \"" + "^rgba\\(\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*(?:0(?:\\.[0-9]+)?|1(?:\\.0+)?)\\s*\\)$" + "\"" };
|
|
1021
1334
|
if (vErrors === null) {
|
|
1022
|
-
vErrors = [
|
|
1335
|
+
vErrors = [err82];
|
|
1023
1336
|
}
|
|
1024
1337
|
else {
|
|
1025
|
-
vErrors.push(
|
|
1338
|
+
vErrors.push(err82);
|
|
1026
1339
|
}
|
|
1027
1340
|
errors++;
|
|
1028
1341
|
}
|
|
1029
1342
|
}
|
|
1030
1343
|
else {
|
|
1031
|
-
const
|
|
1344
|
+
const err83 = { instancePath: instancePath + "/candle/upWickColor", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1032
1345
|
if (vErrors === null) {
|
|
1033
|
-
vErrors = [
|
|
1346
|
+
vErrors = [err83];
|
|
1034
1347
|
}
|
|
1035
1348
|
else {
|
|
1036
|
-
vErrors.push(
|
|
1349
|
+
vErrors.push(err83);
|
|
1037
1350
|
}
|
|
1038
1351
|
errors++;
|
|
1039
1352
|
}
|
|
1040
1353
|
}
|
|
1041
1354
|
if (data7.downWickColor !== undefined) {
|
|
1042
|
-
let
|
|
1043
|
-
if (typeof
|
|
1044
|
-
if (!pattern6.test(
|
|
1045
|
-
const
|
|
1355
|
+
let data25 = data7.downWickColor;
|
|
1356
|
+
if (typeof data25 === "string") {
|
|
1357
|
+
if (!pattern6.test(data25)) {
|
|
1358
|
+
const err84 = { instancePath: instancePath + "/candle/downWickColor", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor/pattern", keyword: "pattern", params: { pattern: "^rgba\\(\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*(?:0(?:\\.[0-9]+)?|1(?:\\.0+)?)\\s*\\)$" }, message: "must match pattern \"" + "^rgba\\(\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*(?:0(?:\\.[0-9]+)?|1(?:\\.0+)?)\\s*\\)$" + "\"" };
|
|
1046
1359
|
if (vErrors === null) {
|
|
1047
|
-
vErrors = [
|
|
1360
|
+
vErrors = [err84];
|
|
1048
1361
|
}
|
|
1049
1362
|
else {
|
|
1050
|
-
vErrors.push(
|
|
1363
|
+
vErrors.push(err84);
|
|
1051
1364
|
}
|
|
1052
1365
|
errors++;
|
|
1053
1366
|
}
|
|
1054
1367
|
}
|
|
1055
1368
|
else {
|
|
1056
|
-
const
|
|
1369
|
+
const err85 = { instancePath: instancePath + "/candle/downWickColor", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1057
1370
|
if (vErrors === null) {
|
|
1058
|
-
vErrors = [
|
|
1371
|
+
vErrors = [err85];
|
|
1059
1372
|
}
|
|
1060
1373
|
else {
|
|
1061
|
-
vErrors.push(
|
|
1374
|
+
vErrors.push(err85);
|
|
1062
1375
|
}
|
|
1063
1376
|
errors++;
|
|
1064
1377
|
}
|
|
1065
1378
|
}
|
|
1066
1379
|
if (data7.noChangeWickColor !== undefined) {
|
|
1067
|
-
let
|
|
1068
|
-
if (typeof
|
|
1069
|
-
if (!pattern6.test(
|
|
1070
|
-
const
|
|
1380
|
+
let data26 = data7.noChangeWickColor;
|
|
1381
|
+
if (typeof data26 === "string") {
|
|
1382
|
+
if (!pattern6.test(data26)) {
|
|
1383
|
+
const err86 = { instancePath: instancePath + "/candle/noChangeWickColor", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor/pattern", keyword: "pattern", params: { pattern: "^rgba\\(\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*(?:0(?:\\.[0-9]+)?|1(?:\\.0+)?)\\s*\\)$" }, message: "must match pattern \"" + "^rgba\\(\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*(?:0(?:\\.[0-9]+)?|1(?:\\.0+)?)\\s*\\)$" + "\"" };
|
|
1071
1384
|
if (vErrors === null) {
|
|
1072
|
-
vErrors = [
|
|
1385
|
+
vErrors = [err86];
|
|
1073
1386
|
}
|
|
1074
1387
|
else {
|
|
1075
|
-
vErrors.push(
|
|
1388
|
+
vErrors.push(err86);
|
|
1076
1389
|
}
|
|
1077
1390
|
errors++;
|
|
1078
1391
|
}
|
|
1079
1392
|
}
|
|
1080
1393
|
else {
|
|
1081
|
-
const
|
|
1394
|
+
const err87 = { instancePath: instancePath + "/candle/noChangeWickColor", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1082
1395
|
if (vErrors === null) {
|
|
1083
|
-
vErrors = [
|
|
1396
|
+
vErrors = [err87];
|
|
1084
1397
|
}
|
|
1085
1398
|
else {
|
|
1086
|
-
vErrors.push(
|
|
1399
|
+
vErrors.push(err87);
|
|
1087
1400
|
}
|
|
1088
1401
|
errors++;
|
|
1089
1402
|
}
|
|
1090
1403
|
}
|
|
1091
1404
|
}
|
|
1092
1405
|
else {
|
|
1093
|
-
const
|
|
1406
|
+
const err88 = { instancePath: instancePath + "/candle", schemaPath: "#/properties/candle/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1094
1407
|
if (vErrors === null) {
|
|
1095
|
-
vErrors = [
|
|
1408
|
+
vErrors = [err88];
|
|
1096
1409
|
}
|
|
1097
1410
|
else {
|
|
1098
|
-
vErrors.push(
|
|
1411
|
+
vErrors.push(err88);
|
|
1099
1412
|
}
|
|
1100
1413
|
errors++;
|
|
1101
1414
|
}
|
|
1102
1415
|
}
|
|
1103
1416
|
if (data.grid !== undefined) {
|
|
1104
|
-
let
|
|
1105
|
-
if (
|
|
1106
|
-
if (
|
|
1107
|
-
const
|
|
1417
|
+
let data27 = data.grid;
|
|
1418
|
+
if (data27 && typeof data27 == "object" && !Array.isArray(data27)) {
|
|
1419
|
+
if (data27.horizontalColor === undefined) {
|
|
1420
|
+
const err89 = { instancePath: instancePath + "/grid", schemaPath: "#/properties/grid/required", keyword: "required", params: { missingProperty: "horizontalColor" }, message: "must have required property '" + "horizontalColor" + "'" };
|
|
1108
1421
|
if (vErrors === null) {
|
|
1109
|
-
vErrors = [
|
|
1422
|
+
vErrors = [err89];
|
|
1110
1423
|
}
|
|
1111
1424
|
else {
|
|
1112
|
-
vErrors.push(
|
|
1425
|
+
vErrors.push(err89);
|
|
1113
1426
|
}
|
|
1114
1427
|
errors++;
|
|
1115
1428
|
}
|
|
1116
|
-
if (
|
|
1117
|
-
const
|
|
1429
|
+
if (data27.verticalColor === undefined) {
|
|
1430
|
+
const err90 = { instancePath: instancePath + "/grid", schemaPath: "#/properties/grid/required", keyword: "required", params: { missingProperty: "verticalColor" }, message: "must have required property '" + "verticalColor" + "'" };
|
|
1118
1431
|
if (vErrors === null) {
|
|
1119
|
-
vErrors = [
|
|
1432
|
+
vErrors = [err90];
|
|
1120
1433
|
}
|
|
1121
1434
|
else {
|
|
1122
|
-
vErrors.push(
|
|
1435
|
+
vErrors.push(err90);
|
|
1123
1436
|
}
|
|
1124
1437
|
errors++;
|
|
1125
1438
|
}
|
|
1126
|
-
for (const
|
|
1127
|
-
if (!((
|
|
1128
|
-
const
|
|
1439
|
+
for (const key5 in data27) {
|
|
1440
|
+
if (!((key5 === "horizontalColor") || (key5 === "verticalColor"))) {
|
|
1441
|
+
const err91 = { instancePath: instancePath + "/grid", schemaPath: "#/properties/grid/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" };
|
|
1129
1442
|
if (vErrors === null) {
|
|
1130
|
-
vErrors = [
|
|
1443
|
+
vErrors = [err91];
|
|
1131
1444
|
}
|
|
1132
1445
|
else {
|
|
1133
|
-
vErrors.push(
|
|
1446
|
+
vErrors.push(err91);
|
|
1134
1447
|
}
|
|
1135
1448
|
errors++;
|
|
1136
1449
|
}
|
|
1137
1450
|
}
|
|
1138
|
-
if (
|
|
1139
|
-
let
|
|
1140
|
-
if (typeof
|
|
1141
|
-
if (!pattern6.test(
|
|
1142
|
-
const
|
|
1451
|
+
if (data27.horizontalColor !== undefined) {
|
|
1452
|
+
let data28 = data27.horizontalColor;
|
|
1453
|
+
if (typeof data28 === "string") {
|
|
1454
|
+
if (!pattern6.test(data28)) {
|
|
1455
|
+
const err92 = { instancePath: instancePath + "/grid/horizontalColor", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor/pattern", keyword: "pattern", params: { pattern: "^rgba\\(\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*(?:0(?:\\.[0-9]+)?|1(?:\\.0+)?)\\s*\\)$" }, message: "must match pattern \"" + "^rgba\\(\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*(?:0(?:\\.[0-9]+)?|1(?:\\.0+)?)\\s*\\)$" + "\"" };
|
|
1143
1456
|
if (vErrors === null) {
|
|
1144
|
-
vErrors = [
|
|
1457
|
+
vErrors = [err92];
|
|
1145
1458
|
}
|
|
1146
1459
|
else {
|
|
1147
|
-
vErrors.push(
|
|
1460
|
+
vErrors.push(err92);
|
|
1148
1461
|
}
|
|
1149
1462
|
errors++;
|
|
1150
1463
|
}
|
|
1151
1464
|
}
|
|
1152
1465
|
else {
|
|
1153
|
-
const
|
|
1466
|
+
const err93 = { instancePath: instancePath + "/grid/horizontalColor", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1154
1467
|
if (vErrors === null) {
|
|
1155
|
-
vErrors = [
|
|
1468
|
+
vErrors = [err93];
|
|
1156
1469
|
}
|
|
1157
1470
|
else {
|
|
1158
|
-
vErrors.push(
|
|
1471
|
+
vErrors.push(err93);
|
|
1159
1472
|
}
|
|
1160
1473
|
errors++;
|
|
1161
1474
|
}
|
|
1162
1475
|
}
|
|
1163
|
-
if (
|
|
1164
|
-
let
|
|
1165
|
-
if (typeof
|
|
1166
|
-
if (!pattern6.test(
|
|
1167
|
-
const
|
|
1476
|
+
if (data27.verticalColor !== undefined) {
|
|
1477
|
+
let data29 = data27.verticalColor;
|
|
1478
|
+
if (typeof data29 === "string") {
|
|
1479
|
+
if (!pattern6.test(data29)) {
|
|
1480
|
+
const err94 = { instancePath: instancePath + "/grid/verticalColor", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor/pattern", keyword: "pattern", params: { pattern: "^rgba\\(\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*(?:0(?:\\.[0-9]+)?|1(?:\\.0+)?)\\s*\\)$" }, message: "must match pattern \"" + "^rgba\\(\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*[0-9]{1,3}\\s*,\\s*(?:0(?:\\.[0-9]+)?|1(?:\\.0+)?)\\s*\\)$" + "\"" };
|
|
1168
1481
|
if (vErrors === null) {
|
|
1169
|
-
vErrors = [
|
|
1482
|
+
vErrors = [err94];
|
|
1170
1483
|
}
|
|
1171
1484
|
else {
|
|
1172
|
-
vErrors.push(
|
|
1485
|
+
vErrors.push(err94);
|
|
1173
1486
|
}
|
|
1174
1487
|
errors++;
|
|
1175
1488
|
}
|
|
1176
1489
|
}
|
|
1177
1490
|
else {
|
|
1178
|
-
const
|
|
1491
|
+
const err95 = { instancePath: instancePath + "/grid/verticalColor", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1179
1492
|
if (vErrors === null) {
|
|
1180
|
-
vErrors = [
|
|
1493
|
+
vErrors = [err95];
|
|
1181
1494
|
}
|
|
1182
1495
|
else {
|
|
1183
|
-
vErrors.push(
|
|
1496
|
+
vErrors.push(err95);
|
|
1184
1497
|
}
|
|
1185
1498
|
errors++;
|
|
1186
1499
|
}
|
|
1187
1500
|
}
|
|
1188
1501
|
}
|
|
1189
1502
|
else {
|
|
1190
|
-
const
|
|
1503
|
+
const err96 = { instancePath: instancePath + "/grid", schemaPath: "#/properties/grid/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1191
1504
|
if (vErrors === null) {
|
|
1192
|
-
vErrors = [
|
|
1505
|
+
vErrors = [err96];
|
|
1193
1506
|
}
|
|
1194
1507
|
else {
|
|
1195
|
-
vErrors.push(
|
|
1508
|
+
vErrors.push(err96);
|
|
1196
1509
|
}
|
|
1197
1510
|
errors++;
|
|
1198
1511
|
}
|
|
1199
1512
|
}
|
|
1200
1513
|
if (data.thousandsSeparator !== undefined) {
|
|
1201
|
-
let
|
|
1202
|
-
if (!((((
|
|
1203
|
-
const
|
|
1514
|
+
let data30 = data.thousandsSeparator;
|
|
1515
|
+
if (!((((data30 === "") || (data30 === ",")) || (data30 === " ")) || (data30 === "_"))) {
|
|
1516
|
+
const err97 = { instancePath: instancePath + "/thousandsSeparator", schemaPath: "#/properties/thousandsSeparator/enum", keyword: "enum", params: { allowedValues: schema44.properties.thousandsSeparator.enum }, message: "must be equal to one of the allowed values" };
|
|
1204
1517
|
if (vErrors === null) {
|
|
1205
|
-
vErrors = [
|
|
1518
|
+
vErrors = [err97];
|
|
1206
1519
|
}
|
|
1207
1520
|
else {
|
|
1208
|
-
vErrors.push(
|
|
1521
|
+
vErrors.push(err97);
|
|
1209
1522
|
}
|
|
1210
1523
|
errors++;
|
|
1211
1524
|
}
|
|
1212
1525
|
}
|
|
1213
1526
|
if (data.decimalFold !== undefined) {
|
|
1214
|
-
let
|
|
1215
|
-
if (
|
|
1216
|
-
if (
|
|
1217
|
-
const
|
|
1527
|
+
let data31 = data.decimalFold;
|
|
1528
|
+
if (data31 && typeof data31 == "object" && !Array.isArray(data31)) {
|
|
1529
|
+
if (data31.enabled === undefined) {
|
|
1530
|
+
const err98 = { instancePath: instancePath + "/decimalFold", schemaPath: "#/properties/decimalFold/required", keyword: "required", params: { missingProperty: "enabled" }, message: "must have required property '" + "enabled" + "'" };
|
|
1218
1531
|
if (vErrors === null) {
|
|
1219
|
-
vErrors = [
|
|
1532
|
+
vErrors = [err98];
|
|
1220
1533
|
}
|
|
1221
1534
|
else {
|
|
1222
|
-
vErrors.push(
|
|
1535
|
+
vErrors.push(err98);
|
|
1223
1536
|
}
|
|
1224
1537
|
errors++;
|
|
1225
1538
|
}
|
|
1226
|
-
if (
|
|
1227
|
-
const
|
|
1539
|
+
if (data31.threshold === undefined) {
|
|
1540
|
+
const err99 = { instancePath: instancePath + "/decimalFold", schemaPath: "#/properties/decimalFold/required", keyword: "required", params: { missingProperty: "threshold" }, message: "must have required property '" + "threshold" + "'" };
|
|
1228
1541
|
if (vErrors === null) {
|
|
1229
|
-
vErrors = [
|
|
1542
|
+
vErrors = [err99];
|
|
1230
1543
|
}
|
|
1231
1544
|
else {
|
|
1232
|
-
vErrors.push(
|
|
1545
|
+
vErrors.push(err99);
|
|
1233
1546
|
}
|
|
1234
1547
|
errors++;
|
|
1235
1548
|
}
|
|
1236
|
-
for (const
|
|
1237
|
-
if (!((
|
|
1238
|
-
const
|
|
1549
|
+
for (const key6 in data31) {
|
|
1550
|
+
if (!((key6 === "enabled") || (key6 === "threshold"))) {
|
|
1551
|
+
const err100 = { instancePath: instancePath + "/decimalFold", schemaPath: "#/properties/decimalFold/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key6 }, message: "must NOT have additional properties" };
|
|
1239
1552
|
if (vErrors === null) {
|
|
1240
|
-
vErrors = [
|
|
1553
|
+
vErrors = [err100];
|
|
1241
1554
|
}
|
|
1242
1555
|
else {
|
|
1243
|
-
vErrors.push(
|
|
1556
|
+
vErrors.push(err100);
|
|
1244
1557
|
}
|
|
1245
1558
|
errors++;
|
|
1246
1559
|
}
|
|
1247
1560
|
}
|
|
1248
|
-
if (
|
|
1249
|
-
if (typeof
|
|
1250
|
-
const
|
|
1561
|
+
if (data31.enabled !== undefined) {
|
|
1562
|
+
if (typeof data31.enabled !== "boolean") {
|
|
1563
|
+
const err101 = { instancePath: instancePath + "/decimalFold/enabled", schemaPath: "#/properties/decimalFold/properties/enabled/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
1251
1564
|
if (vErrors === null) {
|
|
1252
|
-
vErrors = [
|
|
1565
|
+
vErrors = [err101];
|
|
1253
1566
|
}
|
|
1254
1567
|
else {
|
|
1255
|
-
vErrors.push(
|
|
1568
|
+
vErrors.push(err101);
|
|
1256
1569
|
}
|
|
1257
1570
|
errors++;
|
|
1258
1571
|
}
|
|
1259
1572
|
}
|
|
1260
|
-
if (
|
|
1261
|
-
let
|
|
1262
|
-
if (!(((typeof
|
|
1263
|
-
const
|
|
1573
|
+
if (data31.threshold !== undefined) {
|
|
1574
|
+
let data33 = data31.threshold;
|
|
1575
|
+
if (!(((typeof data33 == "number") && (!(data33 % 1) && !isNaN(data33))) && (isFinite(data33)))) {
|
|
1576
|
+
const err102 = { instancePath: instancePath + "/decimalFold/threshold", schemaPath: "#/properties/decimalFold/properties/threshold/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
1264
1577
|
if (vErrors === null) {
|
|
1265
|
-
vErrors = [
|
|
1578
|
+
vErrors = [err102];
|
|
1266
1579
|
}
|
|
1267
1580
|
else {
|
|
1268
|
-
vErrors.push(
|
|
1581
|
+
vErrors.push(err102);
|
|
1269
1582
|
}
|
|
1270
1583
|
errors++;
|
|
1271
1584
|
}
|
|
1272
|
-
if ((typeof
|
|
1273
|
-
if (
|
|
1274
|
-
const
|
|
1585
|
+
if ((typeof data33 == "number") && (isFinite(data33))) {
|
|
1586
|
+
if (data33 > 16 || isNaN(data33)) {
|
|
1587
|
+
const err103 = { instancePath: instancePath + "/decimalFold/threshold", schemaPath: "#/properties/decimalFold/properties/threshold/maximum", keyword: "maximum", params: { comparison: "<=", limit: 16 }, message: "must be <= 16" };
|
|
1275
1588
|
if (vErrors === null) {
|
|
1276
|
-
vErrors = [
|
|
1589
|
+
vErrors = [err103];
|
|
1277
1590
|
}
|
|
1278
1591
|
else {
|
|
1279
|
-
vErrors.push(
|
|
1592
|
+
vErrors.push(err103);
|
|
1280
1593
|
}
|
|
1281
1594
|
errors++;
|
|
1282
1595
|
}
|
|
1283
|
-
if (
|
|
1284
|
-
const
|
|
1596
|
+
if (data33 < 1 || isNaN(data33)) {
|
|
1597
|
+
const err104 = { instancePath: instancePath + "/decimalFold/threshold", schemaPath: "#/properties/decimalFold/properties/threshold/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
|
|
1285
1598
|
if (vErrors === null) {
|
|
1286
|
-
vErrors = [
|
|
1599
|
+
vErrors = [err104];
|
|
1287
1600
|
}
|
|
1288
1601
|
else {
|
|
1289
|
-
vErrors.push(
|
|
1602
|
+
vErrors.push(err104);
|
|
1290
1603
|
}
|
|
1291
1604
|
errors++;
|
|
1292
1605
|
}
|
|
@@ -1294,63 +1607,63 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1294
1607
|
}
|
|
1295
1608
|
}
|
|
1296
1609
|
else {
|
|
1297
|
-
const
|
|
1610
|
+
const err105 = { instancePath: instancePath + "/decimalFold", schemaPath: "#/properties/decimalFold/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1298
1611
|
if (vErrors === null) {
|
|
1299
|
-
vErrors = [
|
|
1612
|
+
vErrors = [err105];
|
|
1300
1613
|
}
|
|
1301
1614
|
else {
|
|
1302
|
-
vErrors.push(
|
|
1615
|
+
vErrors.push(err105);
|
|
1303
1616
|
}
|
|
1304
1617
|
errors++;
|
|
1305
1618
|
}
|
|
1306
1619
|
}
|
|
1307
1620
|
if (data.zoomAnchor !== undefined) {
|
|
1308
|
-
let
|
|
1309
|
-
if (!((
|
|
1310
|
-
const
|
|
1621
|
+
let data34 = data.zoomAnchor;
|
|
1622
|
+
if (!((data34 === "cursor") || (data34 === "right"))) {
|
|
1623
|
+
const err106 = { instancePath: instancePath + "/zoomAnchor", schemaPath: "#/properties/zoomAnchor/enum", keyword: "enum", params: { allowedValues: schema44.properties.zoomAnchor.enum }, message: "must be equal to one of the allowed values" };
|
|
1311
1624
|
if (vErrors === null) {
|
|
1312
|
-
vErrors = [
|
|
1625
|
+
vErrors = [err106];
|
|
1313
1626
|
}
|
|
1314
1627
|
else {
|
|
1315
|
-
vErrors.push(
|
|
1628
|
+
vErrors.push(err106);
|
|
1316
1629
|
}
|
|
1317
1630
|
errors++;
|
|
1318
1631
|
}
|
|
1319
1632
|
}
|
|
1320
1633
|
if (data.dateFormat !== undefined) {
|
|
1321
|
-
let
|
|
1322
|
-
if (!(((
|
|
1323
|
-
const
|
|
1634
|
+
let data35 = data.dateFormat;
|
|
1635
|
+
if (!(((data35 === "yyyy-MM-dd") || (data35 === "yyyy-MM-dd HH:mm")) || (data35 === "yyyy-MM-dd HH:mm:ss"))) {
|
|
1636
|
+
const err107 = { instancePath: instancePath + "/dateFormat", schemaPath: "#/properties/dateFormat/enum", keyword: "enum", params: { allowedValues: schema44.properties.dateFormat.enum }, message: "must be equal to one of the allowed values" };
|
|
1324
1637
|
if (vErrors === null) {
|
|
1325
|
-
vErrors = [
|
|
1638
|
+
vErrors = [err107];
|
|
1326
1639
|
}
|
|
1327
1640
|
else {
|
|
1328
|
-
vErrors.push(
|
|
1641
|
+
vErrors.push(err107);
|
|
1329
1642
|
}
|
|
1330
1643
|
errors++;
|
|
1331
1644
|
}
|
|
1332
1645
|
}
|
|
1333
1646
|
if (data.largeNumberFormat !== undefined) {
|
|
1334
|
-
let
|
|
1335
|
-
if (!(((
|
|
1336
|
-
const
|
|
1647
|
+
let data36 = data.largeNumberFormat;
|
|
1648
|
+
if (!(((data36 === "western") || (data36 === "chinese")) || (data36 === "plain"))) {
|
|
1649
|
+
const err108 = { instancePath: instancePath + "/largeNumberFormat", schemaPath: "#/properties/largeNumberFormat/enum", keyword: "enum", params: { allowedValues: schema44.properties.largeNumberFormat.enum }, message: "must be equal to one of the allowed values" };
|
|
1337
1650
|
if (vErrors === null) {
|
|
1338
|
-
vErrors = [
|
|
1651
|
+
vErrors = [err108];
|
|
1339
1652
|
}
|
|
1340
1653
|
else {
|
|
1341
|
-
vErrors.push(
|
|
1654
|
+
vErrors.push(err108);
|
|
1342
1655
|
}
|
|
1343
1656
|
errors++;
|
|
1344
1657
|
}
|
|
1345
1658
|
}
|
|
1346
1659
|
}
|
|
1347
1660
|
else {
|
|
1348
|
-
const
|
|
1661
|
+
const err109 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1349
1662
|
if (vErrors === null) {
|
|
1350
|
-
vErrors = [
|
|
1663
|
+
vErrors = [err109];
|
|
1351
1664
|
}
|
|
1352
1665
|
else {
|
|
1353
|
-
vErrors.push(
|
|
1666
|
+
vErrors.push(err109);
|
|
1354
1667
|
}
|
|
1355
1668
|
errors++;
|
|
1356
1669
|
} validate24.errors = vErrors; return errors === 0; }
|
|
@@ -5685,7 +5998,7 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5685
5998
|
let data11 = data.period;
|
|
5686
5999
|
if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
|
|
5687
6000
|
if (data11.span === undefined) {
|
|
5688
|
-
const err40 = { instancePath: instancePath + "/period", schemaPath: "#/$defs/period/required", keyword: "required", params: { missingProperty: "span" }, message: "must have required property '" + "span" + "'" };
|
|
6001
|
+
const err40 = { instancePath: instancePath + "/period", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/period/required", keyword: "required", params: { missingProperty: "span" }, message: "must have required property '" + "span" + "'" };
|
|
5689
6002
|
if (vErrors === null) {
|
|
5690
6003
|
vErrors = [err40];
|
|
5691
6004
|
}
|
|
@@ -5695,7 +6008,7 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5695
6008
|
errors++;
|
|
5696
6009
|
}
|
|
5697
6010
|
if (data11.type === undefined) {
|
|
5698
|
-
const err41 = { instancePath: instancePath + "/period", schemaPath: "#/$defs/period/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property '" + "type" + "'" };
|
|
6011
|
+
const err41 = { instancePath: instancePath + "/period", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/period/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property '" + "type" + "'" };
|
|
5699
6012
|
if (vErrors === null) {
|
|
5700
6013
|
vErrors = [err41];
|
|
5701
6014
|
}
|
|
@@ -5706,7 +6019,7 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5706
6019
|
}
|
|
5707
6020
|
for (const key3 in data11) {
|
|
5708
6021
|
if (!((key3 === "span") || (key3 === "type"))) {
|
|
5709
|
-
const err42 = { instancePath: instancePath + "/period", schemaPath: "#/$defs/period/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" };
|
|
6022
|
+
const err42 = { instancePath: instancePath + "/period", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/period/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" };
|
|
5710
6023
|
if (vErrors === null) {
|
|
5711
6024
|
vErrors = [err42];
|
|
5712
6025
|
}
|
|
@@ -5719,7 +6032,7 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5719
6032
|
if (data11.span !== undefined) {
|
|
5720
6033
|
let data12 = data11.span;
|
|
5721
6034
|
if (!(((typeof data12 == "number") && (!(data12 % 1) && !isNaN(data12))) && (isFinite(data12)))) {
|
|
5722
|
-
const err43 = { instancePath: instancePath + "/period/span", schemaPath: "#/$defs/period/properties/span/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
6035
|
+
const err43 = { instancePath: instancePath + "/period/span", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/period/properties/span/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
5723
6036
|
if (vErrors === null) {
|
|
5724
6037
|
vErrors = [err43];
|
|
5725
6038
|
}
|
|
@@ -5730,7 +6043,7 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5730
6043
|
}
|
|
5731
6044
|
if ((typeof data12 == "number") && (isFinite(data12))) {
|
|
5732
6045
|
if (data12 > 100000 || isNaN(data12)) {
|
|
5733
|
-
const err44 = { instancePath: instancePath + "/period/span", schemaPath: "#/$defs/period/properties/span/maximum", keyword: "maximum", params: { comparison: "<=", limit: 100000 }, message: "must be <= 100000" };
|
|
6046
|
+
const err44 = { instancePath: instancePath + "/period/span", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/period/properties/span/maximum", keyword: "maximum", params: { comparison: "<=", limit: 100000 }, message: "must be <= 100000" };
|
|
5734
6047
|
if (vErrors === null) {
|
|
5735
6048
|
vErrors = [err44];
|
|
5736
6049
|
}
|
|
@@ -5740,7 +6053,7 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5740
6053
|
errors++;
|
|
5741
6054
|
}
|
|
5742
6055
|
if (data12 < 1 || isNaN(data12)) {
|
|
5743
|
-
const err45 = { instancePath: instancePath + "/period/span", schemaPath: "#/$defs/period/properties/span/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
|
|
6056
|
+
const err45 = { instancePath: instancePath + "/period/span", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/period/properties/span/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
|
|
5744
6057
|
if (vErrors === null) {
|
|
5745
6058
|
vErrors = [err45];
|
|
5746
6059
|
}
|
|
@@ -5754,7 +6067,7 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5754
6067
|
if (data11.type !== undefined) {
|
|
5755
6068
|
let data13 = data11.type;
|
|
5756
6069
|
if (!(((((((data13 === "second") || (data13 === "minute")) || (data13 === "hour")) || (data13 === "day")) || (data13 === "week")) || (data13 === "month")) || (data13 === "year"))) {
|
|
5757
|
-
const err46 = { instancePath: instancePath + "/period/type", schemaPath: "#/$defs/period/properties/type/enum", keyword: "enum", params: { allowedValues:
|
|
6070
|
+
const err46 = { instancePath: instancePath + "/period/type", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/period/properties/type/enum", keyword: "enum", params: { allowedValues: schema35.properties.type.enum }, message: "must be equal to one of the allowed values" };
|
|
5758
6071
|
if (vErrors === null) {
|
|
5759
6072
|
vErrors = [err46];
|
|
5760
6073
|
}
|
|
@@ -5766,7 +6079,7 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5766
6079
|
}
|
|
5767
6080
|
}
|
|
5768
6081
|
else {
|
|
5769
|
-
const err47 = { instancePath: instancePath + "/period", schemaPath: "#/$defs/period/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
6082
|
+
const err47 = { instancePath: instancePath + "/period", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/period/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
5770
6083
|
if (vErrors === null) {
|
|
5771
6084
|
vErrors = [err47];
|
|
5772
6085
|
}
|
|
@@ -5801,8 +6114,8 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5801
6114
|
}
|
|
5802
6115
|
const len0 = data14.length;
|
|
5803
6116
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
5804
|
-
if (!(
|
|
5805
|
-
vErrors = vErrors === null ?
|
|
6117
|
+
if (!(validate22(data14[i0], { instancePath: instancePath + "/data/" + i0, parentData: data14, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
6118
|
+
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
5806
6119
|
errors = vErrors.length;
|
|
5807
6120
|
}
|
|
5808
6121
|
}
|