@baron1996/kline-scene-schema 0.6.0 → 0.9.7
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/generated/chart-scene.d.ts +16 -3
- package/dist/generated/chart-scene.d.ts.map +1 -1
- package/dist/generated/drawable-workspace.d.ts +38 -25
- package/dist/generated/drawable-workspace.d.ts.map +1 -1
- package/dist/generated/schemas.d.ts +57 -1
- package/dist/generated/schemas.d.ts.map +1 -1
- package/dist/generated/schemas.js +77 -1
- package/dist/generated/validate-chart-scene.d.ts.map +1 -1
- package/dist/generated/validate-chart-scene.js +760 -418
- package/dist/generated/validate-drawable-workspace.d.ts.map +1 -1
- package/dist/generated/validate-drawable-workspace.js +1010 -668
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/semantic-validator.d.ts.map +1 -1
- package/dist/semantic-validator.js +19 -0
- package/dist/version.d.ts +3 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +6 -1
- package/package.json +1 -1
- package/schema/chart-scene.schema.json +38 -1
- package/schema/market-data-gap.schema.json +39 -0
|
@@ -1,7 +1,7 @@
|
|
|
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": { "
|
|
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": { "enum": [1, 2] }, "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" } }, "gaps": { "type": "array", "maxItems": 1000000, "items": { "$ref": "https://baron.dev/kline-scene/market-data-gap.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" } }, "allOf": [{ "if": { "properties": { "version": { "const": 1 } }, "required": ["version"] }, "then": { "properties": { "gaps": false } }, "else": { "properties": { "gaps": true }, "required": ["gaps"] } }], "$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
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"] } } };
|
|
@@ -336,12 +336,233 @@ else {
|
|
|
336
336
|
errors++;
|
|
337
337
|
} validate22.errors = vErrors; return errors === 0; }
|
|
338
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/
|
|
340
|
-
const
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
339
|
+
const schema44 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://baron.dev/kline-scene/market-data-gap.schema.json", "title": "MarketDataGap", "type": "object", "additionalProperties": false, "required": ["timestamp", "barEnd", "classification", "reasonCode", "retryable"], "properties": { "timestamp": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" }, "barEnd": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" }, "classification": { "enum": ["INSTRUMENT_NOT_TRADABLE", "SOURCE_ERROR", "NO_TRADE", "UNKNOWN_MISSING"] }, "reasonCode": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Z][A-Z0-9_]*$" }, "retryable": { "type": "boolean" } } };
|
|
340
|
+
const pattern4 = new RegExp("^[A-Z][A-Z0-9_]*$", "u");
|
|
341
|
+
function validate24(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://baron.dev/kline-scene/market-data-gap.schema.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate24.evaluated; if (evaluated0.dynamicProps) {
|
|
342
|
+
evaluated0.props = undefined;
|
|
343
|
+
} if (evaluated0.dynamicItems) {
|
|
344
|
+
evaluated0.items = undefined;
|
|
345
|
+
} if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
346
|
+
if (data.timestamp === undefined) {
|
|
347
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "timestamp" }, message: "must have required property '" + "timestamp" + "'" };
|
|
348
|
+
if (vErrors === null) {
|
|
349
|
+
vErrors = [err0];
|
|
350
|
+
}
|
|
351
|
+
else {
|
|
352
|
+
vErrors.push(err0);
|
|
353
|
+
}
|
|
354
|
+
errors++;
|
|
355
|
+
}
|
|
356
|
+
if (data.barEnd === undefined) {
|
|
357
|
+
const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "barEnd" }, message: "must have required property '" + "barEnd" + "'" };
|
|
358
|
+
if (vErrors === null) {
|
|
359
|
+
vErrors = [err1];
|
|
360
|
+
}
|
|
361
|
+
else {
|
|
362
|
+
vErrors.push(err1);
|
|
363
|
+
}
|
|
364
|
+
errors++;
|
|
365
|
+
}
|
|
366
|
+
if (data.classification === undefined) {
|
|
367
|
+
const err2 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "classification" }, message: "must have required property '" + "classification" + "'" };
|
|
368
|
+
if (vErrors === null) {
|
|
369
|
+
vErrors = [err2];
|
|
370
|
+
}
|
|
371
|
+
else {
|
|
372
|
+
vErrors.push(err2);
|
|
373
|
+
}
|
|
374
|
+
errors++;
|
|
375
|
+
}
|
|
376
|
+
if (data.reasonCode === undefined) {
|
|
377
|
+
const err3 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "reasonCode" }, message: "must have required property '" + "reasonCode" + "'" };
|
|
378
|
+
if (vErrors === null) {
|
|
379
|
+
vErrors = [err3];
|
|
380
|
+
}
|
|
381
|
+
else {
|
|
382
|
+
vErrors.push(err3);
|
|
383
|
+
}
|
|
384
|
+
errors++;
|
|
385
|
+
}
|
|
386
|
+
if (data.retryable === undefined) {
|
|
387
|
+
const err4 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "retryable" }, message: "must have required property '" + "retryable" + "'" };
|
|
388
|
+
if (vErrors === null) {
|
|
389
|
+
vErrors = [err4];
|
|
390
|
+
}
|
|
391
|
+
else {
|
|
392
|
+
vErrors.push(err4);
|
|
393
|
+
}
|
|
394
|
+
errors++;
|
|
395
|
+
}
|
|
396
|
+
for (const key0 in data) {
|
|
397
|
+
if (!(((((key0 === "timestamp") || (key0 === "barEnd")) || (key0 === "classification")) || (key0 === "reasonCode")) || (key0 === "retryable"))) {
|
|
398
|
+
const err5 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
399
|
+
if (vErrors === null) {
|
|
400
|
+
vErrors = [err5];
|
|
401
|
+
}
|
|
402
|
+
else {
|
|
403
|
+
vErrors.push(err5);
|
|
404
|
+
}
|
|
405
|
+
errors++;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
if (data.timestamp !== undefined) {
|
|
409
|
+
let data0 = data.timestamp;
|
|
410
|
+
if (!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))) {
|
|
411
|
+
const err6 = { instancePath: instancePath + "/timestamp", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
412
|
+
if (vErrors === null) {
|
|
413
|
+
vErrors = [err6];
|
|
414
|
+
}
|
|
415
|
+
else {
|
|
416
|
+
vErrors.push(err6);
|
|
417
|
+
}
|
|
418
|
+
errors++;
|
|
419
|
+
}
|
|
420
|
+
if ((typeof data0 == "number") && (isFinite(data0))) {
|
|
421
|
+
if (data0 > 9007199254740991 || isNaN(data0)) {
|
|
422
|
+
const err7 = { instancePath: instancePath + "/timestamp", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
|
|
423
|
+
if (vErrors === null) {
|
|
424
|
+
vErrors = [err7];
|
|
425
|
+
}
|
|
426
|
+
else {
|
|
427
|
+
vErrors.push(err7);
|
|
428
|
+
}
|
|
429
|
+
errors++;
|
|
430
|
+
}
|
|
431
|
+
if (data0 < -9007199254740991 || isNaN(data0)) {
|
|
432
|
+
const err8 = { instancePath: instancePath + "/timestamp", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger/minimum", keyword: "minimum", params: { comparison: ">=", limit: -9007199254740991 }, message: "must be >= -9007199254740991" };
|
|
433
|
+
if (vErrors === null) {
|
|
434
|
+
vErrors = [err8];
|
|
435
|
+
}
|
|
436
|
+
else {
|
|
437
|
+
vErrors.push(err8);
|
|
438
|
+
}
|
|
439
|
+
errors++;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
if (data.barEnd !== undefined) {
|
|
444
|
+
let data1 = data.barEnd;
|
|
445
|
+
if (!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))) {
|
|
446
|
+
const err9 = { instancePath: instancePath + "/barEnd", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
447
|
+
if (vErrors === null) {
|
|
448
|
+
vErrors = [err9];
|
|
449
|
+
}
|
|
450
|
+
else {
|
|
451
|
+
vErrors.push(err9);
|
|
452
|
+
}
|
|
453
|
+
errors++;
|
|
454
|
+
}
|
|
455
|
+
if ((typeof data1 == "number") && (isFinite(data1))) {
|
|
456
|
+
if (data1 > 9007199254740991 || isNaN(data1)) {
|
|
457
|
+
const err10 = { instancePath: instancePath + "/barEnd", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
|
|
458
|
+
if (vErrors === null) {
|
|
459
|
+
vErrors = [err10];
|
|
460
|
+
}
|
|
461
|
+
else {
|
|
462
|
+
vErrors.push(err10);
|
|
463
|
+
}
|
|
464
|
+
errors++;
|
|
465
|
+
}
|
|
466
|
+
if (data1 < -9007199254740991 || isNaN(data1)) {
|
|
467
|
+
const err11 = { instancePath: instancePath + "/barEnd", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger/minimum", keyword: "minimum", params: { comparison: ">=", limit: -9007199254740991 }, message: "must be >= -9007199254740991" };
|
|
468
|
+
if (vErrors === null) {
|
|
469
|
+
vErrors = [err11];
|
|
470
|
+
}
|
|
471
|
+
else {
|
|
472
|
+
vErrors.push(err11);
|
|
473
|
+
}
|
|
474
|
+
errors++;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
if (data.classification !== undefined) {
|
|
479
|
+
let data2 = data.classification;
|
|
480
|
+
if (!((((data2 === "INSTRUMENT_NOT_TRADABLE") || (data2 === "SOURCE_ERROR")) || (data2 === "NO_TRADE")) || (data2 === "UNKNOWN_MISSING"))) {
|
|
481
|
+
const err12 = { instancePath: instancePath + "/classification", schemaPath: "#/properties/classification/enum", keyword: "enum", params: { allowedValues: schema44.properties.classification.enum }, message: "must be equal to one of the allowed values" };
|
|
482
|
+
if (vErrors === null) {
|
|
483
|
+
vErrors = [err12];
|
|
484
|
+
}
|
|
485
|
+
else {
|
|
486
|
+
vErrors.push(err12);
|
|
487
|
+
}
|
|
488
|
+
errors++;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
if (data.reasonCode !== undefined) {
|
|
492
|
+
let data3 = data.reasonCode;
|
|
493
|
+
if (typeof data3 === "string") {
|
|
494
|
+
if (func2(data3) > 128) {
|
|
495
|
+
const err13 = { instancePath: instancePath + "/reasonCode", schemaPath: "#/properties/reasonCode/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
|
|
496
|
+
if (vErrors === null) {
|
|
497
|
+
vErrors = [err13];
|
|
498
|
+
}
|
|
499
|
+
else {
|
|
500
|
+
vErrors.push(err13);
|
|
501
|
+
}
|
|
502
|
+
errors++;
|
|
503
|
+
}
|
|
504
|
+
if (func2(data3) < 1) {
|
|
505
|
+
const err14 = { instancePath: instancePath + "/reasonCode", schemaPath: "#/properties/reasonCode/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
506
|
+
if (vErrors === null) {
|
|
507
|
+
vErrors = [err14];
|
|
508
|
+
}
|
|
509
|
+
else {
|
|
510
|
+
vErrors.push(err14);
|
|
511
|
+
}
|
|
512
|
+
errors++;
|
|
513
|
+
}
|
|
514
|
+
if (!pattern4.test(data3)) {
|
|
515
|
+
const err15 = { instancePath: instancePath + "/reasonCode", schemaPath: "#/properties/reasonCode/pattern", keyword: "pattern", params: { pattern: "^[A-Z][A-Z0-9_]*$" }, message: "must match pattern \"" + "^[A-Z][A-Z0-9_]*$" + "\"" };
|
|
516
|
+
if (vErrors === null) {
|
|
517
|
+
vErrors = [err15];
|
|
518
|
+
}
|
|
519
|
+
else {
|
|
520
|
+
vErrors.push(err15);
|
|
521
|
+
}
|
|
522
|
+
errors++;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
else {
|
|
526
|
+
const err16 = { instancePath: instancePath + "/reasonCode", schemaPath: "#/properties/reasonCode/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
527
|
+
if (vErrors === null) {
|
|
528
|
+
vErrors = [err16];
|
|
529
|
+
}
|
|
530
|
+
else {
|
|
531
|
+
vErrors.push(err16);
|
|
532
|
+
}
|
|
533
|
+
errors++;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
if (data.retryable !== undefined) {
|
|
537
|
+
if (typeof data.retryable !== "boolean") {
|
|
538
|
+
const err17 = { instancePath: instancePath + "/retryable", schemaPath: "#/properties/retryable/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
539
|
+
if (vErrors === null) {
|
|
540
|
+
vErrors = [err17];
|
|
541
|
+
}
|
|
542
|
+
else {
|
|
543
|
+
vErrors.push(err17);
|
|
544
|
+
}
|
|
545
|
+
errors++;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
else {
|
|
550
|
+
const err18 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
551
|
+
if (vErrors === null) {
|
|
552
|
+
vErrors = [err18];
|
|
553
|
+
}
|
|
554
|
+
else {
|
|
555
|
+
vErrors.push(err18);
|
|
556
|
+
}
|
|
557
|
+
errors++;
|
|
558
|
+
} validate24.errors = vErrors; return errors === 0; }
|
|
559
|
+
validate24.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
560
|
+
const schema47 = { "$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"] } } };
|
|
561
|
+
const schema48 = { "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*\\)$" };
|
|
562
|
+
const pattern5 = new RegExp("^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$", "u");
|
|
563
|
+
const pattern6 = new RegExp("^[A-Za-z_+-]+(?:/[A-Za-z0-9_+-]+)*$", "u");
|
|
564
|
+
const pattern7 = new RegExp("^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*\\)$", "u");
|
|
565
|
+
function validate26(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://baron.dev/kline-scene/chart-config.schema.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate26.evaluated; if (evaluated0.dynamicProps) {
|
|
345
566
|
evaluated0.props = undefined;
|
|
346
567
|
} if (evaluated0.dynamicItems) {
|
|
347
568
|
evaluated0.items = undefined;
|
|
@@ -447,7 +668,7 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
447
668
|
errors++;
|
|
448
669
|
}
|
|
449
670
|
for (const key0 in data) {
|
|
450
|
-
if (!(func1.call(
|
|
671
|
+
if (!(func1.call(schema47.properties, key0))) {
|
|
451
672
|
const err10 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
452
673
|
if (vErrors === null) {
|
|
453
674
|
vErrors = [err10];
|
|
@@ -481,7 +702,7 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
481
702
|
}
|
|
482
703
|
errors++;
|
|
483
704
|
}
|
|
484
|
-
if (!
|
|
705
|
+
if (!pattern5.test(data0)) {
|
|
485
706
|
const err13 = { instancePath: instancePath + "/locale", schemaPath: "#/properties/locale/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$" }, message: "must match pattern \"" + "^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$" + "\"" };
|
|
486
707
|
if (vErrors === null) {
|
|
487
708
|
vErrors = [err13];
|
|
@@ -526,7 +747,7 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
526
747
|
}
|
|
527
748
|
errors++;
|
|
528
749
|
}
|
|
529
|
-
if (!
|
|
750
|
+
if (!pattern6.test(data1)) {
|
|
530
751
|
const err17 = { instancePath: instancePath + "/timezone", schemaPath: "#/properties/timezone/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z_+-]+(?:/[A-Za-z0-9_+-]+)*$" }, message: "must match pattern \"" + "^[A-Za-z_+-]+(?:/[A-Za-z0-9_+-]+)*$" + "\"" };
|
|
531
752
|
if (vErrors === null) {
|
|
532
753
|
vErrors = [err17];
|
|
@@ -606,7 +827,7 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
606
827
|
if (data2.backgroundColor !== undefined) {
|
|
607
828
|
let data3 = data2.backgroundColor;
|
|
608
829
|
if (typeof data3 === "string") {
|
|
609
|
-
if (!
|
|
830
|
+
if (!pattern7.test(data3)) {
|
|
610
831
|
const err24 = { instancePath: instancePath + "/layout/backgroundColor", 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*\\)$" + "\"" };
|
|
611
832
|
if (vErrors === null) {
|
|
612
833
|
vErrors = [err24];
|
|
@@ -631,7 +852,7 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
631
852
|
if (data2.textColor !== undefined) {
|
|
632
853
|
let data4 = data2.textColor;
|
|
633
854
|
if (typeof data4 === "string") {
|
|
634
|
-
if (!
|
|
855
|
+
if (!pattern7.test(data4)) {
|
|
635
856
|
const err26 = { instancePath: instancePath + "/layout/textColor", 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*\\)$" + "\"" };
|
|
636
857
|
if (vErrors === null) {
|
|
637
858
|
vErrors = [err26];
|
|
@@ -956,7 +1177,7 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
956
1177
|
errors++;
|
|
957
1178
|
}
|
|
958
1179
|
for (const key2 in data7) {
|
|
959
|
-
if (!(func1.call(
|
|
1180
|
+
if (!(func1.call(schema47.properties.candle.properties, key2))) {
|
|
960
1181
|
const err51 = { instancePath: instancePath + "/candle", schemaPath: "#/properties/candle/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
|
|
961
1182
|
if (vErrors === null) {
|
|
962
1183
|
vErrors = [err51];
|
|
@@ -970,7 +1191,7 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
970
1191
|
if (data7.type !== undefined) {
|
|
971
1192
|
let data9 = data7.type;
|
|
972
1193
|
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:
|
|
1194
|
+
const err52 = { instancePath: instancePath + "/candle/type", schemaPath: "#/properties/candle/properties/type/enum", keyword: "enum", params: { allowedValues: schema47.properties.candle.properties.type.enum }, message: "must be equal to one of the allowed values" };
|
|
974
1195
|
if (vErrors === null) {
|
|
975
1196
|
vErrors = [err52];
|
|
976
1197
|
}
|
|
@@ -1179,7 +1400,7 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1179
1400
|
if (data7.upColor !== undefined) {
|
|
1180
1401
|
let data18 = data7.upColor;
|
|
1181
1402
|
if (typeof data18 === "string") {
|
|
1182
|
-
if (!
|
|
1403
|
+
if (!pattern7.test(data18)) {
|
|
1183
1404
|
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*\\)$" + "\"" };
|
|
1184
1405
|
if (vErrors === null) {
|
|
1185
1406
|
vErrors = [err70];
|
|
@@ -1204,7 +1425,7 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1204
1425
|
if (data7.downColor !== undefined) {
|
|
1205
1426
|
let data19 = data7.downColor;
|
|
1206
1427
|
if (typeof data19 === "string") {
|
|
1207
|
-
if (!
|
|
1428
|
+
if (!pattern7.test(data19)) {
|
|
1208
1429
|
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*\\)$" + "\"" };
|
|
1209
1430
|
if (vErrors === null) {
|
|
1210
1431
|
vErrors = [err72];
|
|
@@ -1229,7 +1450,7 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1229
1450
|
if (data7.noChangeColor !== undefined) {
|
|
1230
1451
|
let data20 = data7.noChangeColor;
|
|
1231
1452
|
if (typeof data20 === "string") {
|
|
1232
|
-
if (!
|
|
1453
|
+
if (!pattern7.test(data20)) {
|
|
1233
1454
|
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*\\)$" + "\"" };
|
|
1234
1455
|
if (vErrors === null) {
|
|
1235
1456
|
vErrors = [err74];
|
|
@@ -1254,7 +1475,7 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1254
1475
|
if (data7.upBorderColor !== undefined) {
|
|
1255
1476
|
let data21 = data7.upBorderColor;
|
|
1256
1477
|
if (typeof data21 === "string") {
|
|
1257
|
-
if (!
|
|
1478
|
+
if (!pattern7.test(data21)) {
|
|
1258
1479
|
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*\\)$" + "\"" };
|
|
1259
1480
|
if (vErrors === null) {
|
|
1260
1481
|
vErrors = [err76];
|
|
@@ -1279,7 +1500,7 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1279
1500
|
if (data7.downBorderColor !== undefined) {
|
|
1280
1501
|
let data22 = data7.downBorderColor;
|
|
1281
1502
|
if (typeof data22 === "string") {
|
|
1282
|
-
if (!
|
|
1503
|
+
if (!pattern7.test(data22)) {
|
|
1283
1504
|
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*\\)$" + "\"" };
|
|
1284
1505
|
if (vErrors === null) {
|
|
1285
1506
|
vErrors = [err78];
|
|
@@ -1304,7 +1525,7 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1304
1525
|
if (data7.noChangeBorderColor !== undefined) {
|
|
1305
1526
|
let data23 = data7.noChangeBorderColor;
|
|
1306
1527
|
if (typeof data23 === "string") {
|
|
1307
|
-
if (!
|
|
1528
|
+
if (!pattern7.test(data23)) {
|
|
1308
1529
|
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*\\)$" + "\"" };
|
|
1309
1530
|
if (vErrors === null) {
|
|
1310
1531
|
vErrors = [err80];
|
|
@@ -1329,7 +1550,7 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1329
1550
|
if (data7.upWickColor !== undefined) {
|
|
1330
1551
|
let data24 = data7.upWickColor;
|
|
1331
1552
|
if (typeof data24 === "string") {
|
|
1332
|
-
if (!
|
|
1553
|
+
if (!pattern7.test(data24)) {
|
|
1333
1554
|
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*\\)$" + "\"" };
|
|
1334
1555
|
if (vErrors === null) {
|
|
1335
1556
|
vErrors = [err82];
|
|
@@ -1354,7 +1575,7 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1354
1575
|
if (data7.downWickColor !== undefined) {
|
|
1355
1576
|
let data25 = data7.downWickColor;
|
|
1356
1577
|
if (typeof data25 === "string") {
|
|
1357
|
-
if (!
|
|
1578
|
+
if (!pattern7.test(data25)) {
|
|
1358
1579
|
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*\\)$" + "\"" };
|
|
1359
1580
|
if (vErrors === null) {
|
|
1360
1581
|
vErrors = [err84];
|
|
@@ -1379,7 +1600,7 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1379
1600
|
if (data7.noChangeWickColor !== undefined) {
|
|
1380
1601
|
let data26 = data7.noChangeWickColor;
|
|
1381
1602
|
if (typeof data26 === "string") {
|
|
1382
|
-
if (!
|
|
1603
|
+
if (!pattern7.test(data26)) {
|
|
1383
1604
|
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*\\)$" + "\"" };
|
|
1384
1605
|
if (vErrors === null) {
|
|
1385
1606
|
vErrors = [err86];
|
|
@@ -1451,7 +1672,7 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1451
1672
|
if (data27.horizontalColor !== undefined) {
|
|
1452
1673
|
let data28 = data27.horizontalColor;
|
|
1453
1674
|
if (typeof data28 === "string") {
|
|
1454
|
-
if (!
|
|
1675
|
+
if (!pattern7.test(data28)) {
|
|
1455
1676
|
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*\\)$" + "\"" };
|
|
1456
1677
|
if (vErrors === null) {
|
|
1457
1678
|
vErrors = [err92];
|
|
@@ -1476,7 +1697,7 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1476
1697
|
if (data27.verticalColor !== undefined) {
|
|
1477
1698
|
let data29 = data27.verticalColor;
|
|
1478
1699
|
if (typeof data29 === "string") {
|
|
1479
|
-
if (!
|
|
1700
|
+
if (!pattern7.test(data29)) {
|
|
1480
1701
|
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*\\)$" + "\"" };
|
|
1481
1702
|
if (vErrors === null) {
|
|
1482
1703
|
vErrors = [err94];
|
|
@@ -1513,7 +1734,7 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1513
1734
|
if (data.thousandsSeparator !== undefined) {
|
|
1514
1735
|
let data30 = data.thousandsSeparator;
|
|
1515
1736
|
if (!((((data30 === "") || (data30 === ",")) || (data30 === " ")) || (data30 === "_"))) {
|
|
1516
|
-
const err97 = { instancePath: instancePath + "/thousandsSeparator", schemaPath: "#/properties/thousandsSeparator/enum", keyword: "enum", params: { allowedValues:
|
|
1737
|
+
const err97 = { instancePath: instancePath + "/thousandsSeparator", schemaPath: "#/properties/thousandsSeparator/enum", keyword: "enum", params: { allowedValues: schema47.properties.thousandsSeparator.enum }, message: "must be equal to one of the allowed values" };
|
|
1517
1738
|
if (vErrors === null) {
|
|
1518
1739
|
vErrors = [err97];
|
|
1519
1740
|
}
|
|
@@ -1620,7 +1841,7 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1620
1841
|
if (data.zoomAnchor !== undefined) {
|
|
1621
1842
|
let data34 = data.zoomAnchor;
|
|
1622
1843
|
if (!((data34 === "cursor") || (data34 === "right"))) {
|
|
1623
|
-
const err106 = { instancePath: instancePath + "/zoomAnchor", schemaPath: "#/properties/zoomAnchor/enum", keyword: "enum", params: { allowedValues:
|
|
1844
|
+
const err106 = { instancePath: instancePath + "/zoomAnchor", schemaPath: "#/properties/zoomAnchor/enum", keyword: "enum", params: { allowedValues: schema47.properties.zoomAnchor.enum }, message: "must be equal to one of the allowed values" };
|
|
1624
1845
|
if (vErrors === null) {
|
|
1625
1846
|
vErrors = [err106];
|
|
1626
1847
|
}
|
|
@@ -1633,7 +1854,7 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1633
1854
|
if (data.dateFormat !== undefined) {
|
|
1634
1855
|
let data35 = data.dateFormat;
|
|
1635
1856
|
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:
|
|
1857
|
+
const err107 = { instancePath: instancePath + "/dateFormat", schemaPath: "#/properties/dateFormat/enum", keyword: "enum", params: { allowedValues: schema47.properties.dateFormat.enum }, message: "must be equal to one of the allowed values" };
|
|
1637
1858
|
if (vErrors === null) {
|
|
1638
1859
|
vErrors = [err107];
|
|
1639
1860
|
}
|
|
@@ -1646,7 +1867,7 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1646
1867
|
if (data.largeNumberFormat !== undefined) {
|
|
1647
1868
|
let data36 = data.largeNumberFormat;
|
|
1648
1869
|
if (!(((data36 === "western") || (data36 === "chinese")) || (data36 === "plain"))) {
|
|
1649
|
-
const err108 = { instancePath: instancePath + "/largeNumberFormat", schemaPath: "#/properties/largeNumberFormat/enum", keyword: "enum", params: { allowedValues:
|
|
1870
|
+
const err108 = { instancePath: instancePath + "/largeNumberFormat", schemaPath: "#/properties/largeNumberFormat/enum", keyword: "enum", params: { allowedValues: schema47.properties.largeNumberFormat.enum }, message: "must be equal to one of the allowed values" };
|
|
1650
1871
|
if (vErrors === null) {
|
|
1651
1872
|
vErrors = [err108];
|
|
1652
1873
|
}
|
|
@@ -1666,13 +1887,13 @@ else {
|
|
|
1666
1887
|
vErrors.push(err109);
|
|
1667
1888
|
}
|
|
1668
1889
|
errors++;
|
|
1669
|
-
}
|
|
1670
|
-
|
|
1671
|
-
const
|
|
1672
|
-
const
|
|
1673
|
-
const
|
|
1674
|
-
const
|
|
1675
|
-
function
|
|
1890
|
+
} validate26.errors = vErrors; return errors === 0; }
|
|
1891
|
+
validate26.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
1892
|
+
const schema61 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://baron.dev/kline-scene/pane.schema.json", "title": "ScenePane", "type": "object", "additionalProperties": false, "required": ["id", "kind", "order", "height", "minHeight", "state", "yAxes", "indicators"], "properties": { "id": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId" }, "kind": { "enum": ["candle", "indicator"] }, "order": { "type": "integer", "minimum": 0, "maximum": 128 }, "height": { "type": "integer", "minimum": 1, "maximum": 10000 }, "minHeight": { "type": "integer", "minimum": 1, "maximum": 10000 }, "state": { "enum": ["normal", "maximize", "minimize"] }, "yAxes": { "type": "array", "minItems": 1, "maxItems": 16, "items": { "$ref": "#/$defs/yAxis" } }, "indicators": { "type": "array", "maxItems": 128, "items": { "$ref": "https://baron.dev/kline-scene/indicator.schema.json" } } }, "$defs": { "yAxis": { "type": "object", "additionalProperties": false, "required": ["id", "role", "position", "reverse", "inside", "scrollZoomEnabled", "topGap", "bottomGap"], "properties": { "id": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId" }, "role": { "enum": ["primary", "additional"] }, "scale": { "enum": ["linear", "logarithmic"] }, "position": { "enum": ["left", "right"] }, "reverse": { "type": "boolean" }, "inside": { "type": "boolean" }, "scrollZoomEnabled": { "type": "boolean" }, "topGap": { "type": "number", "minimum": 0, "maximum": 0.9 }, "bottomGap": { "type": "number", "minimum": 0, "maximum": 0.9 } } } } };
|
|
1893
|
+
const schema62 = { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" };
|
|
1894
|
+
const pattern20 = new RegExp("^[A-Za-z][A-Za-z0-9._:-]*$", "u");
|
|
1895
|
+
const schema63 = { "type": "object", "additionalProperties": false, "required": ["id", "role", "position", "reverse", "inside", "scrollZoomEnabled", "topGap", "bottomGap"], "properties": { "id": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId" }, "role": { "enum": ["primary", "additional"] }, "scale": { "enum": ["linear", "logarithmic"] }, "position": { "enum": ["left", "right"] }, "reverse": { "type": "boolean" }, "inside": { "type": "boolean" }, "scrollZoomEnabled": { "type": "boolean" }, "topGap": { "type": "number", "minimum": 0, "maximum": 0.9 }, "bottomGap": { "type": "number", "minimum": 0, "maximum": 0.9 } } };
|
|
1896
|
+
function validate29(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate29.evaluated; if (evaluated0.dynamicProps) {
|
|
1676
1897
|
evaluated0.props = undefined;
|
|
1677
1898
|
} if (evaluated0.dynamicItems) {
|
|
1678
1899
|
evaluated0.items = undefined;
|
|
@@ -1758,7 +1979,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1758
1979
|
errors++;
|
|
1759
1980
|
}
|
|
1760
1981
|
for (const key0 in data) {
|
|
1761
|
-
if (!(func1.call(
|
|
1982
|
+
if (!(func1.call(schema63.properties, key0))) {
|
|
1762
1983
|
const err8 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
1763
1984
|
if (vErrors === null) {
|
|
1764
1985
|
vErrors = [err8];
|
|
@@ -1792,7 +2013,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1792
2013
|
}
|
|
1793
2014
|
errors++;
|
|
1794
2015
|
}
|
|
1795
|
-
if (!
|
|
2016
|
+
if (!pattern20.test(data0)) {
|
|
1796
2017
|
const err11 = { instancePath: instancePath + "/id", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z][A-Za-z0-9._:-]*$" }, message: "must match pattern \"" + "^[A-Za-z][A-Za-z0-9._:-]*$" + "\"" };
|
|
1797
2018
|
if (vErrors === null) {
|
|
1798
2019
|
vErrors = [err11];
|
|
@@ -1817,7 +2038,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1817
2038
|
if (data.role !== undefined) {
|
|
1818
2039
|
let data1 = data.role;
|
|
1819
2040
|
if (!((data1 === "primary") || (data1 === "additional"))) {
|
|
1820
|
-
const err13 = { instancePath: instancePath + "/role", schemaPath: "#/properties/role/enum", keyword: "enum", params: { allowedValues:
|
|
2041
|
+
const err13 = { instancePath: instancePath + "/role", schemaPath: "#/properties/role/enum", keyword: "enum", params: { allowedValues: schema63.properties.role.enum }, message: "must be equal to one of the allowed values" };
|
|
1821
2042
|
if (vErrors === null) {
|
|
1822
2043
|
vErrors = [err13];
|
|
1823
2044
|
}
|
|
@@ -1830,7 +2051,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1830
2051
|
if (data.scale !== undefined) {
|
|
1831
2052
|
let data2 = data.scale;
|
|
1832
2053
|
if (!((data2 === "linear") || (data2 === "logarithmic"))) {
|
|
1833
|
-
const err14 = { instancePath: instancePath + "/scale", schemaPath: "#/properties/scale/enum", keyword: "enum", params: { allowedValues:
|
|
2054
|
+
const err14 = { instancePath: instancePath + "/scale", schemaPath: "#/properties/scale/enum", keyword: "enum", params: { allowedValues: schema63.properties.scale.enum }, message: "must be equal to one of the allowed values" };
|
|
1834
2055
|
if (vErrors === null) {
|
|
1835
2056
|
vErrors = [err14];
|
|
1836
2057
|
}
|
|
@@ -1843,7 +2064,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1843
2064
|
if (data.position !== undefined) {
|
|
1844
2065
|
let data3 = data.position;
|
|
1845
2066
|
if (!((data3 === "left") || (data3 === "right"))) {
|
|
1846
|
-
const err15 = { instancePath: instancePath + "/position", schemaPath: "#/properties/position/enum", keyword: "enum", params: { allowedValues:
|
|
2067
|
+
const err15 = { instancePath: instancePath + "/position", schemaPath: "#/properties/position/enum", keyword: "enum", params: { allowedValues: schema63.properties.position.enum }, message: "must be equal to one of the allowed values" };
|
|
1847
2068
|
if (vErrors === null) {
|
|
1848
2069
|
vErrors = [err15];
|
|
1849
2070
|
}
|
|
@@ -1969,11 +2190,11 @@ else {
|
|
|
1969
2190
|
vErrors.push(err25);
|
|
1970
2191
|
}
|
|
1971
2192
|
errors++;
|
|
1972
|
-
}
|
|
1973
|
-
|
|
1974
|
-
const
|
|
1975
|
-
const
|
|
1976
|
-
function
|
|
2193
|
+
} validate29.errors = vErrors; return errors === 0; }
|
|
2194
|
+
validate29.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
2195
|
+
const schema65 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://baron.dev/kline-scene/indicator.schema.json", "title": "SceneIndicator", "type": "object", "additionalProperties": false, "required": ["id", "name", "paneId", "yAxisId", "calcParams", "precision", "visible", "zLevel", "styles"], "properties": { "id": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId" }, "name": { "enum": ["MA", "EMA", "SMA", "BBI", "VOL", "MACD", "BOLL", "KDJ", "RSI", "BIAS", "BRAR", "CCI", "DMI", "CR", "PSY", "DMA", "TRIX", "OBV", "VR", "WR", "MTM", "EMV", "SAR", "AO", "ROC", "PVT", "AVP"] }, "paneId": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId" }, "yAxisId": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId" }, "calcParams": { "type": "array", "maxItems": 8, "items": { "type": "number", "exclusiveMinimum": 0, "maximum": 100000 } }, "precision": { "type": "integer", "minimum": 0, "maximum": 16 }, "visible": { "type": "boolean" }, "zLevel": { "type": "integer", "minimum": -1000, "maximum": 1000 }, "styles": { "type": "object", "additionalProperties": false, "required": ["lines", "bars", "circles"], "properties": { "lines": { "type": "array", "maxItems": 16, "items": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/lineStyle" } }, "bars": { "type": "array", "maxItems": 16, "items": { "type": "object", "additionalProperties": false, "required": ["upColor", "downColor", "noChangeColor"], "properties": { "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" } } } }, "circles": { "type": "array", "maxItems": 16, "items": { "type": "object", "additionalProperties": false, "required": ["color", "radius"], "properties": { "color": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/rgbaColor" }, "radius": { "type": "number", "exclusiveMinimum": 0, "maximum": 20 } } } } } } } };
|
|
2196
|
+
const schema69 = { "type": "object", "additionalProperties": false, "required": ["color", "size", "style"], "properties": { "color": { "$ref": "#/$defs/rgbaColor" }, "size": { "type": "number", "exclusiveMinimum": 0, "maximum": 20 }, "style": { "enum": ["solid", "dashed", "dotted"] } } };
|
|
2197
|
+
function validate32(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate32.evaluated; if (evaluated0.dynamicProps) {
|
|
1977
2198
|
evaluated0.props = undefined;
|
|
1978
2199
|
} if (evaluated0.dynamicItems) {
|
|
1979
2200
|
evaluated0.items = undefined;
|
|
@@ -2023,7 +2244,7 @@ function validate30(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2023
2244
|
if (data.color !== undefined) {
|
|
2024
2245
|
let data0 = data.color;
|
|
2025
2246
|
if (typeof data0 === "string") {
|
|
2026
|
-
if (!
|
|
2247
|
+
if (!pattern7.test(data0)) {
|
|
2027
2248
|
const err4 = { instancePath: instancePath + "/color", schemaPath: "#/$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*\\)$" + "\"" };
|
|
2028
2249
|
if (vErrors === null) {
|
|
2029
2250
|
vErrors = [err4];
|
|
@@ -2083,7 +2304,7 @@ function validate30(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2083
2304
|
if (data.style !== undefined) {
|
|
2084
2305
|
let data2 = data.style;
|
|
2085
2306
|
if (!(((data2 === "solid") || (data2 === "dashed")) || (data2 === "dotted"))) {
|
|
2086
|
-
const err9 = { instancePath: instancePath + "/style", schemaPath: "#/properties/style/enum", keyword: "enum", params: { allowedValues:
|
|
2307
|
+
const err9 = { instancePath: instancePath + "/style", schemaPath: "#/properties/style/enum", keyword: "enum", params: { allowedValues: schema69.properties.style.enum }, message: "must be equal to one of the allowed values" };
|
|
2087
2308
|
if (vErrors === null) {
|
|
2088
2309
|
vErrors = [err9];
|
|
2089
2310
|
}
|
|
@@ -2103,9 +2324,9 @@ else {
|
|
|
2103
2324
|
vErrors.push(err10);
|
|
2104
2325
|
}
|
|
2105
2326
|
errors++;
|
|
2106
|
-
}
|
|
2107
|
-
|
|
2108
|
-
function
|
|
2327
|
+
} validate32.errors = vErrors; return errors === 0; }
|
|
2328
|
+
validate32.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
2329
|
+
function validate31(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://baron.dev/kline-scene/indicator.schema.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate31.evaluated; if (evaluated0.dynamicProps) {
|
|
2109
2330
|
evaluated0.props = undefined;
|
|
2110
2331
|
} if (evaluated0.dynamicItems) {
|
|
2111
2332
|
evaluated0.items = undefined;
|
|
@@ -2201,7 +2422,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2201
2422
|
errors++;
|
|
2202
2423
|
}
|
|
2203
2424
|
for (const key0 in data) {
|
|
2204
|
-
if (!(func1.call(
|
|
2425
|
+
if (!(func1.call(schema65.properties, key0))) {
|
|
2205
2426
|
const err9 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
2206
2427
|
if (vErrors === null) {
|
|
2207
2428
|
vErrors = [err9];
|
|
@@ -2235,7 +2456,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2235
2456
|
}
|
|
2236
2457
|
errors++;
|
|
2237
2458
|
}
|
|
2238
|
-
if (!
|
|
2459
|
+
if (!pattern20.test(data0)) {
|
|
2239
2460
|
const err12 = { instancePath: instancePath + "/id", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z][A-Za-z0-9._:-]*$" }, message: "must match pattern \"" + "^[A-Za-z][A-Za-z0-9._:-]*$" + "\"" };
|
|
2240
2461
|
if (vErrors === null) {
|
|
2241
2462
|
vErrors = [err12];
|
|
@@ -2260,7 +2481,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2260
2481
|
if (data.name !== undefined) {
|
|
2261
2482
|
let data1 = data.name;
|
|
2262
2483
|
if (!(((((((((((((((((((((((((((data1 === "MA") || (data1 === "EMA")) || (data1 === "SMA")) || (data1 === "BBI")) || (data1 === "VOL")) || (data1 === "MACD")) || (data1 === "BOLL")) || (data1 === "KDJ")) || (data1 === "RSI")) || (data1 === "BIAS")) || (data1 === "BRAR")) || (data1 === "CCI")) || (data1 === "DMI")) || (data1 === "CR")) || (data1 === "PSY")) || (data1 === "DMA")) || (data1 === "TRIX")) || (data1 === "OBV")) || (data1 === "VR")) || (data1 === "WR")) || (data1 === "MTM")) || (data1 === "EMV")) || (data1 === "SAR")) || (data1 === "AO")) || (data1 === "ROC")) || (data1 === "PVT")) || (data1 === "AVP"))) {
|
|
2263
|
-
const err14 = { instancePath: instancePath + "/name", schemaPath: "#/properties/name/enum", keyword: "enum", params: { allowedValues:
|
|
2484
|
+
const err14 = { instancePath: instancePath + "/name", schemaPath: "#/properties/name/enum", keyword: "enum", params: { allowedValues: schema65.properties.name.enum }, message: "must be equal to one of the allowed values" };
|
|
2264
2485
|
if (vErrors === null) {
|
|
2265
2486
|
vErrors = [err14];
|
|
2266
2487
|
}
|
|
@@ -2293,7 +2514,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2293
2514
|
}
|
|
2294
2515
|
errors++;
|
|
2295
2516
|
}
|
|
2296
|
-
if (!
|
|
2517
|
+
if (!pattern20.test(data2)) {
|
|
2297
2518
|
const err17 = { instancePath: instancePath + "/paneId", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z][A-Za-z0-9._:-]*$" }, message: "must match pattern \"" + "^[A-Za-z][A-Za-z0-9._:-]*$" + "\"" };
|
|
2298
2519
|
if (vErrors === null) {
|
|
2299
2520
|
vErrors = [err17];
|
|
@@ -2338,7 +2559,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2338
2559
|
}
|
|
2339
2560
|
errors++;
|
|
2340
2561
|
}
|
|
2341
|
-
if (!
|
|
2562
|
+
if (!pattern20.test(data3)) {
|
|
2342
2563
|
const err21 = { instancePath: instancePath + "/yAxisId", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z][A-Za-z0-9._:-]*$" }, message: "must match pattern \"" + "^[A-Za-z][A-Za-z0-9._:-]*$" + "\"" };
|
|
2343
2564
|
if (vErrors === null) {
|
|
2344
2565
|
vErrors = [err21];
|
|
@@ -2563,8 +2784,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2563
2784
|
}
|
|
2564
2785
|
const len1 = data10.length;
|
|
2565
2786
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
2566
|
-
if (!(
|
|
2567
|
-
vErrors = vErrors === null ?
|
|
2787
|
+
if (!(validate32(data10[i1], { instancePath: instancePath + "/styles/lines/" + i1, parentData: data10, parentDataProperty: i1, rootData, dynamicAnchors }))) {
|
|
2788
|
+
vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);
|
|
2568
2789
|
errors = vErrors.length;
|
|
2569
2790
|
}
|
|
2570
2791
|
}
|
|
@@ -2642,7 +2863,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2642
2863
|
if (data13.upColor !== undefined) {
|
|
2643
2864
|
let data14 = data13.upColor;
|
|
2644
2865
|
if (typeof data14 === "string") {
|
|
2645
|
-
if (!
|
|
2866
|
+
if (!pattern7.test(data14)) {
|
|
2646
2867
|
const err46 = { instancePath: instancePath + "/styles/bars/" + i2 + "/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*\\)$" + "\"" };
|
|
2647
2868
|
if (vErrors === null) {
|
|
2648
2869
|
vErrors = [err46];
|
|
@@ -2667,7 +2888,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2667
2888
|
if (data13.downColor !== undefined) {
|
|
2668
2889
|
let data15 = data13.downColor;
|
|
2669
2890
|
if (typeof data15 === "string") {
|
|
2670
|
-
if (!
|
|
2891
|
+
if (!pattern7.test(data15)) {
|
|
2671
2892
|
const err48 = { instancePath: instancePath + "/styles/bars/" + i2 + "/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*\\)$" + "\"" };
|
|
2672
2893
|
if (vErrors === null) {
|
|
2673
2894
|
vErrors = [err48];
|
|
@@ -2692,7 +2913,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2692
2913
|
if (data13.noChangeColor !== undefined) {
|
|
2693
2914
|
let data16 = data13.noChangeColor;
|
|
2694
2915
|
if (typeof data16 === "string") {
|
|
2695
|
-
if (!
|
|
2916
|
+
if (!pattern7.test(data16)) {
|
|
2696
2917
|
const err50 = { instancePath: instancePath + "/styles/bars/" + i2 + "/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*\\)$" + "\"" };
|
|
2697
2918
|
if (vErrors === null) {
|
|
2698
2919
|
vErrors = [err50];
|
|
@@ -2790,7 +3011,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2790
3011
|
if (data18.color !== undefined) {
|
|
2791
3012
|
let data19 = data18.color;
|
|
2792
3013
|
if (typeof data19 === "string") {
|
|
2793
|
-
if (!
|
|
3014
|
+
if (!pattern7.test(data19)) {
|
|
2794
3015
|
const err58 = { instancePath: instancePath + "/styles/circles/" + i3 + "/color", 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*\\)$" + "\"" };
|
|
2795
3016
|
if (vErrors === null) {
|
|
2796
3017
|
vErrors = [err58];
|
|
@@ -2893,9 +3114,9 @@ else {
|
|
|
2893
3114
|
vErrors.push(err66);
|
|
2894
3115
|
}
|
|
2895
3116
|
errors++;
|
|
2896
|
-
}
|
|
2897
|
-
|
|
2898
|
-
function
|
|
3117
|
+
} validate31.errors = vErrors; return errors === 0; }
|
|
3118
|
+
validate31.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3119
|
+
function validate28(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://baron.dev/kline-scene/pane.schema.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate28.evaluated; if (evaluated0.dynamicProps) {
|
|
2899
3120
|
evaluated0.props = undefined;
|
|
2900
3121
|
} if (evaluated0.dynamicItems) {
|
|
2901
3122
|
evaluated0.items = undefined;
|
|
@@ -3015,7 +3236,7 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3015
3236
|
}
|
|
3016
3237
|
errors++;
|
|
3017
3238
|
}
|
|
3018
|
-
if (!
|
|
3239
|
+
if (!pattern20.test(data0)) {
|
|
3019
3240
|
const err11 = { instancePath: instancePath + "/id", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z][A-Za-z0-9._:-]*$" }, message: "must match pattern \"" + "^[A-Za-z][A-Za-z0-9._:-]*$" + "\"" };
|
|
3020
3241
|
if (vErrors === null) {
|
|
3021
3242
|
vErrors = [err11];
|
|
@@ -3040,7 +3261,7 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3040
3261
|
if (data.kind !== undefined) {
|
|
3041
3262
|
let data1 = data.kind;
|
|
3042
3263
|
if (!((data1 === "candle") || (data1 === "indicator"))) {
|
|
3043
|
-
const err13 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues:
|
|
3264
|
+
const err13 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema61.properties.kind.enum }, message: "must be equal to one of the allowed values" };
|
|
3044
3265
|
if (vErrors === null) {
|
|
3045
3266
|
vErrors = [err13];
|
|
3046
3267
|
}
|
|
@@ -3158,7 +3379,7 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3158
3379
|
if (data.state !== undefined) {
|
|
3159
3380
|
let data5 = data.state;
|
|
3160
3381
|
if (!(((data5 === "normal") || (data5 === "maximize")) || (data5 === "minimize"))) {
|
|
3161
|
-
const err23 = { instancePath: instancePath + "/state", schemaPath: "#/properties/state/enum", keyword: "enum", params: { allowedValues:
|
|
3382
|
+
const err23 = { instancePath: instancePath + "/state", schemaPath: "#/properties/state/enum", keyword: "enum", params: { allowedValues: schema61.properties.state.enum }, message: "must be equal to one of the allowed values" };
|
|
3162
3383
|
if (vErrors === null) {
|
|
3163
3384
|
vErrors = [err23];
|
|
3164
3385
|
}
|
|
@@ -3193,8 +3414,8 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3193
3414
|
}
|
|
3194
3415
|
const len0 = data6.length;
|
|
3195
3416
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
3196
|
-
if (!(
|
|
3197
|
-
vErrors = vErrors === null ?
|
|
3417
|
+
if (!(validate29(data6[i0], { instancePath: instancePath + "/yAxes/" + i0, parentData: data6, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
3418
|
+
vErrors = vErrors === null ? validate29.errors : vErrors.concat(validate29.errors);
|
|
3198
3419
|
errors = vErrors.length;
|
|
3199
3420
|
}
|
|
3200
3421
|
}
|
|
@@ -3225,8 +3446,8 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3225
3446
|
}
|
|
3226
3447
|
const len1 = data8.length;
|
|
3227
3448
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
3228
|
-
if (!(
|
|
3229
|
-
vErrors = vErrors === null ?
|
|
3449
|
+
if (!(validate31(data8[i1], { instancePath: instancePath + "/indicators/" + i1, parentData: data8, parentDataProperty: i1, rootData, dynamicAnchors }))) {
|
|
3450
|
+
vErrors = vErrors === null ? validate31.errors : vErrors.concat(validate31.errors);
|
|
3230
3451
|
errors = vErrors.length;
|
|
3231
3452
|
}
|
|
3232
3453
|
}
|
|
@@ -3252,11 +3473,11 @@ else {
|
|
|
3252
3473
|
vErrors.push(err29);
|
|
3253
3474
|
}
|
|
3254
3475
|
errors++;
|
|
3255
|
-
}
|
|
3256
|
-
|
|
3257
|
-
const
|
|
3258
|
-
const
|
|
3259
|
-
function
|
|
3476
|
+
} validate28.errors = vErrors; return errors === 0; }
|
|
3477
|
+
validate28.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3478
|
+
const schema75 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://baron.dev/kline-scene/overlay.schema.json", "title": "SceneOverlay", "type": "object", "additionalProperties": false, "required": ["id", "type", "paneId", "visible", "locked", "zLevel", "mode", "styles"], "properties": { "id": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId" }, "type": { "enum": ["horizontalRayLine", "horizontalSegment", "horizontalStraightLine", "verticalRayLine", "verticalSegment", "verticalStraightLine", "rayLine", "segment", "straightLine", "priceLine", "priceChannelLine", "parallelStraightLine", "fibonacciLine", "brush", "simpleAnnotation", "simpleTag", "rectangle", "arrow", "crossLine", "callout", "text", "priceMeasurement"] }, "paneId": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId" }, "groupId": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId" }, "visible": { "type": "boolean" }, "locked": { "type": "boolean" }, "zLevel": { "type": "integer", "minimum": -1000, "maximum": 1000 }, "mode": { "enum": ["normal", "weak_magnet", "strong_magnet"] }, "anchor": { "oneOf": [{ "$ref": "#/$defs/timeAnchor" }, { "$ref": "#/$defs/valueAnchor" }, { "$ref": "#/$defs/timeValueAnchor" }] }, "value": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" }, "startTimestamp": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" }, "endTimestamp": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" }, "timestamp": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" }, "startValue": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" }, "endValue": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" }, "point": { "$ref": "#/$defs/timeValueAnchor" }, "start": { "$ref": "#/$defs/timeValueAnchor" }, "end": { "$ref": "#/$defs/timeValueAnchor" }, "points": { "type": "array", "minItems": 1, "maxItems": 256, "items": { "$ref": "#/$defs/timeValueAnchor" } }, "text": { "type": "string", "maxLength": 4096 }, "styles": { "type": "object", "additionalProperties": false, "required": ["line", "fill", "text"], "properties": { "line": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/lineStyle" }, "fill": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/fillStyle" }, "text": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/textStyle" } } }, "metadata": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/metadata" } }, "$defs": { "timeAnchor": { "type": "object", "additionalProperties": false, "required": ["timestamp"], "properties": { "timestamp": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" } } }, "valueAnchor": { "type": "object", "additionalProperties": false, "required": ["value"], "properties": { "value": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" } } }, "timeValueAnchor": { "type": "object", "additionalProperties": false, "required": ["timestamp", "value"], "properties": { "timestamp": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" }, "value": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" } } } } };
|
|
3479
|
+
const schema79 = { "type": "object", "additionalProperties": false, "required": ["timestamp"], "properties": { "timestamp": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" } } };
|
|
3480
|
+
function validate37(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate37.evaluated; if (evaluated0.dynamicProps) {
|
|
3260
3481
|
evaluated0.props = undefined;
|
|
3261
3482
|
} if (evaluated0.dynamicItems) {
|
|
3262
3483
|
evaluated0.items = undefined;
|
|
@@ -3328,10 +3549,10 @@ else {
|
|
|
3328
3549
|
vErrors.push(err5);
|
|
3329
3550
|
}
|
|
3330
3551
|
errors++;
|
|
3331
|
-
}
|
|
3332
|
-
|
|
3333
|
-
const
|
|
3334
|
-
function
|
|
3552
|
+
} validate37.errors = vErrors; return errors === 0; }
|
|
3553
|
+
validate37.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3554
|
+
const schema81 = { "type": "object", "additionalProperties": false, "required": ["value"], "properties": { "value": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" } } };
|
|
3555
|
+
function validate39(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate39.evaluated; if (evaluated0.dynamicProps) {
|
|
3335
3556
|
evaluated0.props = undefined;
|
|
3336
3557
|
} if (evaluated0.dynamicItems) {
|
|
3337
3558
|
evaluated0.items = undefined;
|
|
@@ -3403,10 +3624,10 @@ else {
|
|
|
3403
3624
|
vErrors.push(err5);
|
|
3404
3625
|
}
|
|
3405
3626
|
errors++;
|
|
3406
|
-
}
|
|
3407
|
-
|
|
3408
|
-
const
|
|
3409
|
-
function
|
|
3627
|
+
} validate39.errors = vErrors; return errors === 0; }
|
|
3628
|
+
validate39.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3629
|
+
const schema83 = { "type": "object", "additionalProperties": false, "required": ["timestamp", "value"], "properties": { "timestamp": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" }, "value": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" } } };
|
|
3630
|
+
function validate41(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate41.evaluated; if (evaluated0.dynamicProps) {
|
|
3410
3631
|
evaluated0.props = undefined;
|
|
3411
3632
|
} if (evaluated0.dynamicItems) {
|
|
3412
3633
|
evaluated0.items = undefined;
|
|
@@ -3523,9 +3744,9 @@ else {
|
|
|
3523
3744
|
vErrors.push(err9);
|
|
3524
3745
|
}
|
|
3525
3746
|
errors++;
|
|
3526
|
-
}
|
|
3527
|
-
|
|
3528
|
-
function
|
|
3747
|
+
} validate41.errors = vErrors; return errors === 0; }
|
|
3748
|
+
validate41.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3749
|
+
function validate47(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate47.evaluated; if (evaluated0.dynamicProps) {
|
|
3529
3750
|
evaluated0.props = undefined;
|
|
3530
3751
|
} if (evaluated0.dynamicItems) {
|
|
3531
3752
|
evaluated0.items = undefined;
|
|
@@ -3575,7 +3796,7 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3575
3796
|
if (data.color !== undefined) {
|
|
3576
3797
|
let data0 = data.color;
|
|
3577
3798
|
if (typeof data0 === "string") {
|
|
3578
|
-
if (!
|
|
3799
|
+
if (!pattern7.test(data0)) {
|
|
3579
3800
|
const err4 = { instancePath: instancePath + "/color", schemaPath: "#/$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*\\)$" + "\"" };
|
|
3580
3801
|
if (vErrors === null) {
|
|
3581
3802
|
vErrors = [err4];
|
|
@@ -3635,7 +3856,7 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3635
3856
|
if (data.style !== undefined) {
|
|
3636
3857
|
let data2 = data.style;
|
|
3637
3858
|
if (!(((data2 === "solid") || (data2 === "dashed")) || (data2 === "dotted"))) {
|
|
3638
|
-
const err9 = { instancePath: instancePath + "/style", schemaPath: "#/properties/style/enum", keyword: "enum", params: { allowedValues:
|
|
3859
|
+
const err9 = { instancePath: instancePath + "/style", schemaPath: "#/properties/style/enum", keyword: "enum", params: { allowedValues: schema69.properties.style.enum }, message: "must be equal to one of the allowed values" };
|
|
3639
3860
|
if (vErrors === null) {
|
|
3640
3861
|
vErrors = [err9];
|
|
3641
3862
|
}
|
|
@@ -3655,10 +3876,10 @@ else {
|
|
|
3655
3876
|
vErrors.push(err10);
|
|
3656
3877
|
}
|
|
3657
3878
|
errors++;
|
|
3658
|
-
}
|
|
3659
|
-
|
|
3660
|
-
const
|
|
3661
|
-
function
|
|
3879
|
+
} validate47.errors = vErrors; return errors === 0; }
|
|
3880
|
+
validate47.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3881
|
+
const schema94 = { "type": "object", "additionalProperties": false, "required": ["color"], "properties": { "color": { "$ref": "#/$defs/rgbaColor" } } };
|
|
3882
|
+
function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate49.evaluated; if (evaluated0.dynamicProps) {
|
|
3662
3883
|
evaluated0.props = undefined;
|
|
3663
3884
|
} if (evaluated0.dynamicItems) {
|
|
3664
3885
|
evaluated0.items = undefined;
|
|
@@ -3688,7 +3909,7 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3688
3909
|
if (data.color !== undefined) {
|
|
3689
3910
|
let data0 = data.color;
|
|
3690
3911
|
if (typeof data0 === "string") {
|
|
3691
|
-
if (!
|
|
3912
|
+
if (!pattern7.test(data0)) {
|
|
3692
3913
|
const err2 = { instancePath: instancePath + "/color", schemaPath: "#/$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*\\)$" + "\"" };
|
|
3693
3914
|
if (vErrors === null) {
|
|
3694
3915
|
vErrors = [err2];
|
|
@@ -3720,10 +3941,10 @@ else {
|
|
|
3720
3941
|
vErrors.push(err4);
|
|
3721
3942
|
}
|
|
3722
3943
|
errors++;
|
|
3723
|
-
}
|
|
3724
|
-
|
|
3725
|
-
const
|
|
3726
|
-
function
|
|
3944
|
+
} validate49.errors = vErrors; return errors === 0; }
|
|
3945
|
+
validate49.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3946
|
+
const schema96 = { "type": "object", "additionalProperties": false, "required": ["color", "size", "family", "weight", "backgroundColor", "borderColor"], "properties": { "color": { "$ref": "#/$defs/rgbaColor" }, "size": { "type": "number", "minimum": 8, "maximum": 72 }, "family": { "type": "string", "minLength": 1, "maxLength": 128 }, "weight": { "oneOf": [{ "type": "integer", "minimum": 100, "maximum": 900, "multipleOf": 100 }, { "enum": ["normal", "bold"] }] }, "backgroundColor": { "$ref": "#/$defs/rgbaColor" }, "borderColor": { "$ref": "#/$defs/rgbaColor" } } };
|
|
3947
|
+
function validate51(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate51.evaluated; if (evaluated0.dynamicProps) {
|
|
3727
3948
|
evaluated0.props = undefined;
|
|
3728
3949
|
} if (evaluated0.dynamicItems) {
|
|
3729
3950
|
evaluated0.items = undefined;
|
|
@@ -3803,7 +4024,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3803
4024
|
if (data.color !== undefined) {
|
|
3804
4025
|
let data0 = data.color;
|
|
3805
4026
|
if (typeof data0 === "string") {
|
|
3806
|
-
if (!
|
|
4027
|
+
if (!pattern7.test(data0)) {
|
|
3807
4028
|
const err7 = { instancePath: instancePath + "/color", schemaPath: "#/$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*\\)$" + "\"" };
|
|
3808
4029
|
if (vErrors === null) {
|
|
3809
4030
|
vErrors = [err7];
|
|
@@ -3951,7 +4172,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3951
4172
|
}
|
|
3952
4173
|
const _errs13 = errors;
|
|
3953
4174
|
if (!((data3 === "normal") || (data3 === "bold"))) {
|
|
3954
|
-
const err19 = { instancePath: instancePath + "/weight", schemaPath: "#/properties/weight/oneOf/1/enum", keyword: "enum", params: { allowedValues:
|
|
4175
|
+
const err19 = { instancePath: instancePath + "/weight", schemaPath: "#/properties/weight/oneOf/1/enum", keyword: "enum", params: { allowedValues: schema96.properties.weight.oneOf[1].enum }, message: "must be equal to one of the allowed values" };
|
|
3955
4176
|
if (vErrors === null) {
|
|
3956
4177
|
vErrors = [err19];
|
|
3957
4178
|
}
|
|
@@ -3996,7 +4217,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3996
4217
|
if (data.backgroundColor !== undefined) {
|
|
3997
4218
|
let data4 = data.backgroundColor;
|
|
3998
4219
|
if (typeof data4 === "string") {
|
|
3999
|
-
if (!
|
|
4220
|
+
if (!pattern7.test(data4)) {
|
|
4000
4221
|
const err21 = { instancePath: instancePath + "/backgroundColor", schemaPath: "#/$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*\\)$" + "\"" };
|
|
4001
4222
|
if (vErrors === null) {
|
|
4002
4223
|
vErrors = [err21];
|
|
@@ -4021,7 +4242,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4021
4242
|
if (data.borderColor !== undefined) {
|
|
4022
4243
|
let data5 = data.borderColor;
|
|
4023
4244
|
if (typeof data5 === "string") {
|
|
4024
|
-
if (!
|
|
4245
|
+
if (!pattern7.test(data5)) {
|
|
4025
4246
|
const err23 = { instancePath: instancePath + "/borderColor", schemaPath: "#/$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*\\)$" + "\"" };
|
|
4026
4247
|
if (vErrors === null) {
|
|
4027
4248
|
vErrors = [err23];
|
|
@@ -4053,12 +4274,12 @@ else {
|
|
|
4053
4274
|
vErrors.push(err25);
|
|
4054
4275
|
}
|
|
4055
4276
|
errors++;
|
|
4056
|
-
}
|
|
4057
|
-
|
|
4058
|
-
const
|
|
4059
|
-
const
|
|
4060
|
-
const wrapper0 = { validate:
|
|
4061
|
-
function
|
|
4277
|
+
} validate51.errors = vErrors; return errors === 0; }
|
|
4278
|
+
validate51.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
4279
|
+
const schema100 = { "type": "object", "maxProperties": 1000, "additionalProperties": { "$ref": "#/$defs/jsonValue" } };
|
|
4280
|
+
const schema101 = { "oneOf": [{ "type": "null" }, { "type": "boolean" }, { "$ref": "#/$defs/finiteNumber" }, { "type": "string" }, { "type": "array", "maxItems": 1000, "items": { "$ref": "#/$defs/jsonValue" } }, { "type": "object", "maxProperties": 1000, "additionalProperties": { "$ref": "#/$defs/jsonValue" } }] };
|
|
4281
|
+
const wrapper0 = { validate: validate54 };
|
|
4282
|
+
function validate54(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate54.evaluated; if (evaluated0.dynamicProps) {
|
|
4062
4283
|
evaluated0.props = undefined;
|
|
4063
4284
|
} if (evaluated0.dynamicItems) {
|
|
4064
4285
|
evaluated0.items = undefined;
|
|
@@ -4261,9 +4482,9 @@ else {
|
|
|
4261
4482
|
vErrors = null;
|
|
4262
4483
|
}
|
|
4263
4484
|
}
|
|
4264
|
-
}
|
|
4265
|
-
|
|
4266
|
-
function
|
|
4485
|
+
} validate54.errors = vErrors; evaluated0.props = props2; evaluated0.items = items1; return errors === 0; }
|
|
4486
|
+
validate54.evaluated = { "dynamicProps": true, "dynamicItems": true };
|
|
4487
|
+
function validate53(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate53.evaluated; if (evaluated0.dynamicProps) {
|
|
4267
4488
|
evaluated0.props = undefined;
|
|
4268
4489
|
} if (evaluated0.dynamicItems) {
|
|
4269
4490
|
evaluated0.items = undefined;
|
|
@@ -4279,8 +4500,8 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4279
4500
|
errors++;
|
|
4280
4501
|
}
|
|
4281
4502
|
for (const key0 in data) {
|
|
4282
|
-
if (!(
|
|
4283
|
-
vErrors = vErrors === null ?
|
|
4503
|
+
if (!(validate54(data[key0], { instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key0, rootData, dynamicAnchors }))) {
|
|
4504
|
+
vErrors = vErrors === null ? validate54.errors : vErrors.concat(validate54.errors);
|
|
4284
4505
|
errors = vErrors.length;
|
|
4285
4506
|
}
|
|
4286
4507
|
}
|
|
@@ -4294,9 +4515,9 @@ else {
|
|
|
4294
4515
|
vErrors.push(err1);
|
|
4295
4516
|
}
|
|
4296
4517
|
errors++;
|
|
4297
|
-
}
|
|
4298
|
-
|
|
4299
|
-
function
|
|
4518
|
+
} validate53.errors = vErrors; return errors === 0; }
|
|
4519
|
+
validate53.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
4520
|
+
function validate36(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://baron.dev/kline-scene/overlay.schema.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate36.evaluated; if (evaluated0.dynamicProps) {
|
|
4300
4521
|
evaluated0.props = undefined;
|
|
4301
4522
|
} if (evaluated0.dynamicItems) {
|
|
4302
4523
|
evaluated0.items = undefined;
|
|
@@ -4382,7 +4603,7 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4382
4603
|
errors++;
|
|
4383
4604
|
}
|
|
4384
4605
|
for (const key0 in data) {
|
|
4385
|
-
if (!(func1.call(
|
|
4606
|
+
if (!(func1.call(schema75.properties, key0))) {
|
|
4386
4607
|
const err8 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
4387
4608
|
if (vErrors === null) {
|
|
4388
4609
|
vErrors = [err8];
|
|
@@ -4416,7 +4637,7 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4416
4637
|
}
|
|
4417
4638
|
errors++;
|
|
4418
4639
|
}
|
|
4419
|
-
if (!
|
|
4640
|
+
if (!pattern20.test(data0)) {
|
|
4420
4641
|
const err11 = { instancePath: instancePath + "/id", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z][A-Za-z0-9._:-]*$" }, message: "must match pattern \"" + "^[A-Za-z][A-Za-z0-9._:-]*$" + "\"" };
|
|
4421
4642
|
if (vErrors === null) {
|
|
4422
4643
|
vErrors = [err11];
|
|
@@ -4441,7 +4662,7 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4441
4662
|
if (data.type !== undefined) {
|
|
4442
4663
|
let data1 = data.type;
|
|
4443
4664
|
if (!((((((((((((((((((((((data1 === "horizontalRayLine") || (data1 === "horizontalSegment")) || (data1 === "horizontalStraightLine")) || (data1 === "verticalRayLine")) || (data1 === "verticalSegment")) || (data1 === "verticalStraightLine")) || (data1 === "rayLine")) || (data1 === "segment")) || (data1 === "straightLine")) || (data1 === "priceLine")) || (data1 === "priceChannelLine")) || (data1 === "parallelStraightLine")) || (data1 === "fibonacciLine")) || (data1 === "brush")) || (data1 === "simpleAnnotation")) || (data1 === "simpleTag")) || (data1 === "rectangle")) || (data1 === "arrow")) || (data1 === "crossLine")) || (data1 === "callout")) || (data1 === "text")) || (data1 === "priceMeasurement"))) {
|
|
4444
|
-
const err13 = { instancePath: instancePath + "/type", schemaPath: "#/properties/type/enum", keyword: "enum", params: { allowedValues:
|
|
4665
|
+
const err13 = { instancePath: instancePath + "/type", schemaPath: "#/properties/type/enum", keyword: "enum", params: { allowedValues: schema75.properties.type.enum }, message: "must be equal to one of the allowed values" };
|
|
4445
4666
|
if (vErrors === null) {
|
|
4446
4667
|
vErrors = [err13];
|
|
4447
4668
|
}
|
|
@@ -4474,7 +4695,7 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4474
4695
|
}
|
|
4475
4696
|
errors++;
|
|
4476
4697
|
}
|
|
4477
|
-
if (!
|
|
4698
|
+
if (!pattern20.test(data2)) {
|
|
4478
4699
|
const err16 = { instancePath: instancePath + "/paneId", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z][A-Za-z0-9._:-]*$" }, message: "must match pattern \"" + "^[A-Za-z][A-Za-z0-9._:-]*$" + "\"" };
|
|
4479
4700
|
if (vErrors === null) {
|
|
4480
4701
|
vErrors = [err16];
|
|
@@ -4519,7 +4740,7 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4519
4740
|
}
|
|
4520
4741
|
errors++;
|
|
4521
4742
|
}
|
|
4522
|
-
if (!
|
|
4743
|
+
if (!pattern20.test(data3)) {
|
|
4523
4744
|
const err20 = { instancePath: instancePath + "/groupId", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z][A-Za-z0-9._:-]*$" }, message: "must match pattern \"" + "^[A-Za-z][A-Za-z0-9._:-]*$" + "\"" };
|
|
4524
4745
|
if (vErrors === null) {
|
|
4525
4746
|
vErrors = [err20];
|
|
@@ -4603,7 +4824,7 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4603
4824
|
if (data.mode !== undefined) {
|
|
4604
4825
|
let data7 = data.mode;
|
|
4605
4826
|
if (!(((data7 === "normal") || (data7 === "weak_magnet")) || (data7 === "strong_magnet"))) {
|
|
4606
|
-
const err27 = { instancePath: instancePath + "/mode", schemaPath: "#/properties/mode/enum", keyword: "enum", params: { allowedValues:
|
|
4827
|
+
const err27 = { instancePath: instancePath + "/mode", schemaPath: "#/properties/mode/enum", keyword: "enum", params: { allowedValues: schema75.properties.mode.enum }, message: "must be equal to one of the allowed values" };
|
|
4607
4828
|
if (vErrors === null) {
|
|
4608
4829
|
vErrors = [err27];
|
|
4609
4830
|
}
|
|
@@ -4619,8 +4840,8 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4619
4840
|
let valid4 = false;
|
|
4620
4841
|
let passing0 = null;
|
|
4621
4842
|
const _errs21 = errors;
|
|
4622
|
-
if (!(
|
|
4623
|
-
vErrors = vErrors === null ?
|
|
4843
|
+
if (!(validate37(data8, { instancePath: instancePath + "/anchor", parentData: data, parentDataProperty: "anchor", rootData, dynamicAnchors }))) {
|
|
4844
|
+
vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);
|
|
4624
4845
|
errors = vErrors.length;
|
|
4625
4846
|
}
|
|
4626
4847
|
var _valid0 = _errs21 === errors;
|
|
@@ -4630,8 +4851,8 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4630
4851
|
var props0 = true;
|
|
4631
4852
|
}
|
|
4632
4853
|
const _errs22 = errors;
|
|
4633
|
-
if (!(
|
|
4634
|
-
vErrors = vErrors === null ?
|
|
4854
|
+
if (!(validate39(data8, { instancePath: instancePath + "/anchor", parentData: data, parentDataProperty: "anchor", rootData, dynamicAnchors }))) {
|
|
4855
|
+
vErrors = vErrors === null ? validate39.errors : vErrors.concat(validate39.errors);
|
|
4635
4856
|
errors = vErrors.length;
|
|
4636
4857
|
}
|
|
4637
4858
|
var _valid0 = _errs22 === errors;
|
|
@@ -4648,8 +4869,8 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4648
4869
|
}
|
|
4649
4870
|
}
|
|
4650
4871
|
const _errs23 = errors;
|
|
4651
|
-
if (!(
|
|
4652
|
-
vErrors = vErrors === null ?
|
|
4872
|
+
if (!(validate41(data8, { instancePath: instancePath + "/anchor", parentData: data, parentDataProperty: "anchor", rootData, dynamicAnchors }))) {
|
|
4873
|
+
vErrors = vErrors === null ? validate41.errors : vErrors.concat(validate41.errors);
|
|
4653
4874
|
errors = vErrors.length;
|
|
4654
4875
|
}
|
|
4655
4876
|
var _valid0 = _errs23 === errors;
|
|
@@ -4900,20 +5121,20 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4900
5121
|
}
|
|
4901
5122
|
}
|
|
4902
5123
|
if (data.point !== undefined) {
|
|
4903
|
-
if (!(
|
|
4904
|
-
vErrors = vErrors === null ?
|
|
5124
|
+
if (!(validate41(data.point, { instancePath: instancePath + "/point", parentData: data, parentDataProperty: "point", rootData, dynamicAnchors }))) {
|
|
5125
|
+
vErrors = vErrors === null ? validate41.errors : vErrors.concat(validate41.errors);
|
|
4905
5126
|
errors = vErrors.length;
|
|
4906
5127
|
}
|
|
4907
5128
|
}
|
|
4908
5129
|
if (data.start !== undefined) {
|
|
4909
|
-
if (!(
|
|
4910
|
-
vErrors = vErrors === null ?
|
|
5130
|
+
if (!(validate41(data.start, { instancePath: instancePath + "/start", parentData: data, parentDataProperty: "start", rootData, dynamicAnchors }))) {
|
|
5131
|
+
vErrors = vErrors === null ? validate41.errors : vErrors.concat(validate41.errors);
|
|
4911
5132
|
errors = vErrors.length;
|
|
4912
5133
|
}
|
|
4913
5134
|
}
|
|
4914
5135
|
if (data.end !== undefined) {
|
|
4915
|
-
if (!(
|
|
4916
|
-
vErrors = vErrors === null ?
|
|
5136
|
+
if (!(validate41(data.end, { instancePath: instancePath + "/end", parentData: data, parentDataProperty: "end", rootData, dynamicAnchors }))) {
|
|
5137
|
+
vErrors = vErrors === null ? validate41.errors : vErrors.concat(validate41.errors);
|
|
4917
5138
|
errors = vErrors.length;
|
|
4918
5139
|
}
|
|
4919
5140
|
}
|
|
@@ -4942,8 +5163,8 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4942
5163
|
}
|
|
4943
5164
|
const len0 = data18.length;
|
|
4944
5165
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
4945
|
-
if (!(
|
|
4946
|
-
vErrors = vErrors === null ?
|
|
5166
|
+
if (!(validate41(data18[i0], { instancePath: instancePath + "/points/" + i0, parentData: data18, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
5167
|
+
vErrors = vErrors === null ? validate41.errors : vErrors.concat(validate41.errors);
|
|
4947
5168
|
errors = vErrors.length;
|
|
4948
5169
|
}
|
|
4949
5170
|
}
|
|
@@ -5030,20 +5251,20 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5030
5251
|
}
|
|
5031
5252
|
}
|
|
5032
5253
|
if (data21.line !== undefined) {
|
|
5033
|
-
if (!(
|
|
5034
|
-
vErrors = vErrors === null ?
|
|
5254
|
+
if (!(validate47(data21.line, { instancePath: instancePath + "/styles/line", parentData: data21, parentDataProperty: "line", rootData, dynamicAnchors }))) {
|
|
5255
|
+
vErrors = vErrors === null ? validate47.errors : vErrors.concat(validate47.errors);
|
|
5035
5256
|
errors = vErrors.length;
|
|
5036
5257
|
}
|
|
5037
5258
|
}
|
|
5038
5259
|
if (data21.fill !== undefined) {
|
|
5039
|
-
if (!(
|
|
5040
|
-
vErrors = vErrors === null ?
|
|
5260
|
+
if (!(validate49(data21.fill, { instancePath: instancePath + "/styles/fill", parentData: data21, parentDataProperty: "fill", rootData, dynamicAnchors }))) {
|
|
5261
|
+
vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);
|
|
5041
5262
|
errors = vErrors.length;
|
|
5042
5263
|
}
|
|
5043
5264
|
}
|
|
5044
5265
|
if (data21.text !== undefined) {
|
|
5045
|
-
if (!(
|
|
5046
|
-
vErrors = vErrors === null ?
|
|
5266
|
+
if (!(validate51(data21.text, { instancePath: instancePath + "/styles/text", parentData: data21, parentDataProperty: "text", rootData, dynamicAnchors }))) {
|
|
5267
|
+
vErrors = vErrors === null ? validate51.errors : vErrors.concat(validate51.errors);
|
|
5047
5268
|
errors = vErrors.length;
|
|
5048
5269
|
}
|
|
5049
5270
|
}
|
|
@@ -5060,8 +5281,8 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5060
5281
|
}
|
|
5061
5282
|
}
|
|
5062
5283
|
if (data.metadata !== undefined) {
|
|
5063
|
-
if (!(
|
|
5064
|
-
vErrors = vErrors === null ?
|
|
5284
|
+
if (!(validate53(data.metadata, { instancePath: instancePath + "/metadata", parentData: data, parentDataProperty: "metadata", rootData, dynamicAnchors }))) {
|
|
5285
|
+
vErrors = vErrors === null ? validate53.errors : vErrors.concat(validate53.errors);
|
|
5065
5286
|
errors = vErrors.length;
|
|
5066
5287
|
}
|
|
5067
5288
|
}
|
|
@@ -5075,10 +5296,10 @@ else {
|
|
|
5075
5296
|
vErrors.push(err57);
|
|
5076
5297
|
}
|
|
5077
5298
|
errors++;
|
|
5078
|
-
}
|
|
5079
|
-
|
|
5080
|
-
const
|
|
5081
|
-
function
|
|
5299
|
+
} validate36.errors = vErrors; return errors === 0; }
|
|
5300
|
+
validate36.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
5301
|
+
const schema103 = { "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" } } };
|
|
5302
|
+
function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate58.evaluated; if (evaluated0.dynamicProps) {
|
|
5082
5303
|
evaluated0.props = undefined;
|
|
5083
5304
|
} if (evaluated0.dynamicItems) {
|
|
5084
5305
|
evaluated0.items = undefined;
|
|
@@ -5240,10 +5461,10 @@ else {
|
|
|
5240
5461
|
vErrors.push(err13);
|
|
5241
5462
|
}
|
|
5242
5463
|
errors++;
|
|
5243
|
-
}
|
|
5244
|
-
|
|
5245
|
-
const
|
|
5246
|
-
function
|
|
5464
|
+
} validate58.errors = vErrors; return errors === 0; }
|
|
5465
|
+
validate58.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
5466
|
+
const schema105 = { "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 } } };
|
|
5467
|
+
function validate60(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate60.evaluated; if (evaluated0.dynamicProps) {
|
|
5247
5468
|
evaluated0.props = undefined;
|
|
5248
5469
|
} if (evaluated0.dynamicItems) {
|
|
5249
5470
|
evaluated0.items = undefined;
|
|
@@ -5428,7 +5649,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5428
5649
|
if (data.background !== undefined) {
|
|
5429
5650
|
let data3 = data.background;
|
|
5430
5651
|
if (typeof data3 === "string") {
|
|
5431
|
-
if (!
|
|
5652
|
+
if (!pattern7.test(data3)) {
|
|
5432
5653
|
const err16 = { instancePath: instancePath + "/background", 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*\\)$" + "\"" };
|
|
5433
5654
|
if (vErrors === null) {
|
|
5434
5655
|
vErrors = [err16];
|
|
@@ -5452,7 +5673,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5452
5673
|
}
|
|
5453
5674
|
if (data.fontFamily !== undefined) {
|
|
5454
5675
|
if (!(data.fontFamily === "Baron Sans")) {
|
|
5455
|
-
const err18 = { instancePath: instancePath + "/fontFamily", schemaPath: "#/properties/fontFamily/enum", keyword: "enum", params: { allowedValues:
|
|
5676
|
+
const err18 = { instancePath: instancePath + "/fontFamily", schemaPath: "#/properties/fontFamily/enum", keyword: "enum", params: { allowedValues: schema105.properties.fontFamily.enum }, message: "must be equal to one of the allowed values" };
|
|
5456
5677
|
if (vErrors === null) {
|
|
5457
5678
|
vErrors = [err18];
|
|
5458
5679
|
}
|
|
@@ -5507,9 +5728,9 @@ else {
|
|
|
5507
5728
|
vErrors.push(err22);
|
|
5508
5729
|
}
|
|
5509
5730
|
errors++;
|
|
5510
|
-
}
|
|
5511
|
-
|
|
5512
|
-
function
|
|
5731
|
+
} validate60.errors = vErrors; return errors === 0; }
|
|
5732
|
+
validate60.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
5733
|
+
function validate62(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate62.evaluated; if (evaluated0.dynamicProps) {
|
|
5513
5734
|
evaluated0.props = undefined;
|
|
5514
5735
|
} if (evaluated0.dynamicItems) {
|
|
5515
5736
|
evaluated0.items = undefined;
|
|
@@ -5525,8 +5746,8 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5525
5746
|
errors++;
|
|
5526
5747
|
}
|
|
5527
5748
|
for (const key0 in data) {
|
|
5528
|
-
if (!(
|
|
5529
|
-
vErrors = vErrors === null ?
|
|
5749
|
+
if (!(validate54(data[key0], { instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key0, rootData, dynamicAnchors }))) {
|
|
5750
|
+
vErrors = vErrors === null ? validate54.errors : vErrors.concat(validate54.errors);
|
|
5530
5751
|
errors = vErrors.length;
|
|
5531
5752
|
}
|
|
5532
5753
|
}
|
|
@@ -5540,15 +5761,16 @@ else {
|
|
|
5540
5761
|
vErrors.push(err1);
|
|
5541
5762
|
}
|
|
5542
5763
|
errors++;
|
|
5543
|
-
}
|
|
5544
|
-
|
|
5764
|
+
} validate62.errors = vErrors; return errors === 0; }
|
|
5765
|
+
validate62.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
5545
5766
|
function validate20(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://baron.dev/kline-scene/chart-scene.schema.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate20.evaluated; if (evaluated0.dynamicProps) {
|
|
5546
5767
|
evaluated0.props = undefined;
|
|
5547
5768
|
} if (evaluated0.dynamicItems) {
|
|
5548
5769
|
evaluated0.items = undefined;
|
|
5549
|
-
} if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
5550
|
-
|
|
5551
|
-
|
|
5770
|
+
} const _errs2 = errors; let valid1 = true; const _errs3 = errors; if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
5771
|
+
let missing0;
|
|
5772
|
+
if ((data.version === undefined) && (missing0 = "version")) {
|
|
5773
|
+
const err0 = {};
|
|
5552
5774
|
if (vErrors === null) {
|
|
5553
5775
|
vErrors = [err0];
|
|
5554
5776
|
}
|
|
@@ -5557,426 +5779,514 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5557
5779
|
}
|
|
5558
5780
|
errors++;
|
|
5559
5781
|
}
|
|
5782
|
+
else {
|
|
5783
|
+
if (data.version !== undefined) {
|
|
5784
|
+
if (1 !== data.version) {
|
|
5785
|
+
const err1 = {};
|
|
5786
|
+
if (vErrors === null) {
|
|
5787
|
+
vErrors = [err1];
|
|
5788
|
+
}
|
|
5789
|
+
else {
|
|
5790
|
+
vErrors.push(err1);
|
|
5791
|
+
}
|
|
5792
|
+
errors++;
|
|
5793
|
+
}
|
|
5794
|
+
}
|
|
5795
|
+
}
|
|
5796
|
+
} var _valid0 = _errs3 === errors; errors = _errs2; if (vErrors !== null) {
|
|
5797
|
+
if (_errs2) {
|
|
5798
|
+
vErrors.length = _errs2;
|
|
5799
|
+
}
|
|
5800
|
+
else {
|
|
5801
|
+
vErrors = null;
|
|
5802
|
+
}
|
|
5803
|
+
} let ifClause0; if (_valid0) {
|
|
5804
|
+
const _errs5 = errors;
|
|
5805
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
5806
|
+
if (data.gaps !== undefined) {
|
|
5807
|
+
const err2 = { instancePath: instancePath + "/gaps", schemaPath: "#/allOf/0/then/properties/gaps/false schema", keyword: "false schema", params: {}, message: "boolean schema is false" };
|
|
5808
|
+
if (vErrors === null) {
|
|
5809
|
+
vErrors = [err2];
|
|
5810
|
+
}
|
|
5811
|
+
else {
|
|
5812
|
+
vErrors.push(err2);
|
|
5813
|
+
}
|
|
5814
|
+
errors++;
|
|
5815
|
+
}
|
|
5816
|
+
}
|
|
5817
|
+
var _valid0 = _errs5 === errors;
|
|
5818
|
+
valid1 = _valid0;
|
|
5819
|
+
if (valid1) {
|
|
5820
|
+
var props0 = {};
|
|
5821
|
+
props0.gaps = true;
|
|
5822
|
+
props0.version = true;
|
|
5823
|
+
}
|
|
5824
|
+
ifClause0 = "then";
|
|
5825
|
+
}
|
|
5826
|
+
else {
|
|
5827
|
+
const _errs6 = errors;
|
|
5828
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
5829
|
+
if (data.gaps === undefined) {
|
|
5830
|
+
const err3 = { instancePath, schemaPath: "#/allOf/0/else/required", keyword: "required", params: { missingProperty: "gaps" }, message: "must have required property '" + "gaps" + "'" };
|
|
5831
|
+
if (vErrors === null) {
|
|
5832
|
+
vErrors = [err3];
|
|
5833
|
+
}
|
|
5834
|
+
else {
|
|
5835
|
+
vErrors.push(err3);
|
|
5836
|
+
}
|
|
5837
|
+
errors++;
|
|
5838
|
+
}
|
|
5839
|
+
}
|
|
5840
|
+
var _valid0 = _errs6 === errors;
|
|
5841
|
+
valid1 = _valid0;
|
|
5842
|
+
if (valid1) {
|
|
5843
|
+
if (props0 !== true) {
|
|
5844
|
+
props0 = props0 || {};
|
|
5845
|
+
props0.gaps = true;
|
|
5846
|
+
}
|
|
5847
|
+
}
|
|
5848
|
+
ifClause0 = "else";
|
|
5849
|
+
} if (!valid1) {
|
|
5850
|
+
const err4 = { instancePath, schemaPath: "#/allOf/0/if", keyword: "if", params: { failingKeyword: ifClause0 }, message: "must match \"" + ifClause0 + "\" schema" };
|
|
5851
|
+
if (vErrors === null) {
|
|
5852
|
+
vErrors = [err4];
|
|
5853
|
+
}
|
|
5854
|
+
else {
|
|
5855
|
+
vErrors.push(err4);
|
|
5856
|
+
}
|
|
5857
|
+
errors++;
|
|
5858
|
+
} if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
5859
|
+
if (data.schema === undefined) {
|
|
5860
|
+
const err5 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "schema" }, message: "must have required property '" + "schema" + "'" };
|
|
5861
|
+
if (vErrors === null) {
|
|
5862
|
+
vErrors = [err5];
|
|
5863
|
+
}
|
|
5864
|
+
else {
|
|
5865
|
+
vErrors.push(err5);
|
|
5866
|
+
}
|
|
5867
|
+
errors++;
|
|
5868
|
+
}
|
|
5560
5869
|
if (data.version === undefined) {
|
|
5561
|
-
const
|
|
5870
|
+
const err6 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "version" }, message: "must have required property '" + "version" + "'" };
|
|
5562
5871
|
if (vErrors === null) {
|
|
5563
|
-
vErrors = [
|
|
5872
|
+
vErrors = [err6];
|
|
5564
5873
|
}
|
|
5565
5874
|
else {
|
|
5566
|
-
vErrors.push(
|
|
5875
|
+
vErrors.push(err6);
|
|
5567
5876
|
}
|
|
5568
5877
|
errors++;
|
|
5569
5878
|
}
|
|
5570
5879
|
if (data.runtime === undefined) {
|
|
5571
|
-
const
|
|
5880
|
+
const err7 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "runtime" }, message: "must have required property '" + "runtime" + "'" };
|
|
5572
5881
|
if (vErrors === null) {
|
|
5573
|
-
vErrors = [
|
|
5882
|
+
vErrors = [err7];
|
|
5574
5883
|
}
|
|
5575
5884
|
else {
|
|
5576
|
-
vErrors.push(
|
|
5885
|
+
vErrors.push(err7);
|
|
5577
5886
|
}
|
|
5578
5887
|
errors++;
|
|
5579
5888
|
}
|
|
5580
5889
|
if (data.symbol === undefined) {
|
|
5581
|
-
const
|
|
5890
|
+
const err8 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "symbol" }, message: "must have required property '" + "symbol" + "'" };
|
|
5582
5891
|
if (vErrors === null) {
|
|
5583
|
-
vErrors = [
|
|
5892
|
+
vErrors = [err8];
|
|
5584
5893
|
}
|
|
5585
5894
|
else {
|
|
5586
|
-
vErrors.push(
|
|
5895
|
+
vErrors.push(err8);
|
|
5587
5896
|
}
|
|
5588
5897
|
errors++;
|
|
5589
5898
|
}
|
|
5590
5899
|
if (data.period === undefined) {
|
|
5591
|
-
const
|
|
5900
|
+
const err9 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "period" }, message: "must have required property '" + "period" + "'" };
|
|
5592
5901
|
if (vErrors === null) {
|
|
5593
|
-
vErrors = [
|
|
5902
|
+
vErrors = [err9];
|
|
5594
5903
|
}
|
|
5595
5904
|
else {
|
|
5596
|
-
vErrors.push(
|
|
5905
|
+
vErrors.push(err9);
|
|
5597
5906
|
}
|
|
5598
5907
|
errors++;
|
|
5599
5908
|
}
|
|
5600
5909
|
if (data.data === undefined) {
|
|
5601
|
-
const
|
|
5910
|
+
const err10 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "data" }, message: "must have required property '" + "data" + "'" };
|
|
5602
5911
|
if (vErrors === null) {
|
|
5603
|
-
vErrors = [
|
|
5912
|
+
vErrors = [err10];
|
|
5604
5913
|
}
|
|
5605
5914
|
else {
|
|
5606
|
-
vErrors.push(
|
|
5915
|
+
vErrors.push(err10);
|
|
5607
5916
|
}
|
|
5608
5917
|
errors++;
|
|
5609
5918
|
}
|
|
5610
5919
|
if (data.chart === undefined) {
|
|
5611
|
-
const
|
|
5920
|
+
const err11 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "chart" }, message: "must have required property '" + "chart" + "'" };
|
|
5612
5921
|
if (vErrors === null) {
|
|
5613
|
-
vErrors = [
|
|
5922
|
+
vErrors = [err11];
|
|
5614
5923
|
}
|
|
5615
5924
|
else {
|
|
5616
|
-
vErrors.push(
|
|
5925
|
+
vErrors.push(err11);
|
|
5617
5926
|
}
|
|
5618
5927
|
errors++;
|
|
5619
5928
|
}
|
|
5620
5929
|
if (data.panes === undefined) {
|
|
5621
|
-
const
|
|
5930
|
+
const err12 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "panes" }, message: "must have required property '" + "panes" + "'" };
|
|
5622
5931
|
if (vErrors === null) {
|
|
5623
|
-
vErrors = [
|
|
5932
|
+
vErrors = [err12];
|
|
5624
5933
|
}
|
|
5625
5934
|
else {
|
|
5626
|
-
vErrors.push(
|
|
5935
|
+
vErrors.push(err12);
|
|
5627
5936
|
}
|
|
5628
5937
|
errors++;
|
|
5629
5938
|
}
|
|
5630
5939
|
if (data.overlays === undefined) {
|
|
5631
|
-
const
|
|
5940
|
+
const err13 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "overlays" }, message: "must have required property '" + "overlays" + "'" };
|
|
5632
5941
|
if (vErrors === null) {
|
|
5633
|
-
vErrors = [
|
|
5942
|
+
vErrors = [err13];
|
|
5634
5943
|
}
|
|
5635
5944
|
else {
|
|
5636
|
-
vErrors.push(
|
|
5945
|
+
vErrors.push(err13);
|
|
5637
5946
|
}
|
|
5638
5947
|
errors++;
|
|
5639
5948
|
}
|
|
5640
5949
|
if (data.viewport === undefined) {
|
|
5641
|
-
const
|
|
5950
|
+
const err14 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "viewport" }, message: "must have required property '" + "viewport" + "'" };
|
|
5642
5951
|
if (vErrors === null) {
|
|
5643
|
-
vErrors = [
|
|
5952
|
+
vErrors = [err14];
|
|
5644
5953
|
}
|
|
5645
5954
|
else {
|
|
5646
|
-
vErrors.push(
|
|
5955
|
+
vErrors.push(err14);
|
|
5647
5956
|
}
|
|
5648
5957
|
errors++;
|
|
5649
5958
|
}
|
|
5650
5959
|
if (data.render === undefined) {
|
|
5651
|
-
const
|
|
5960
|
+
const err15 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "render" }, message: "must have required property '" + "render" + "'" };
|
|
5652
5961
|
if (vErrors === null) {
|
|
5653
|
-
vErrors = [
|
|
5962
|
+
vErrors = [err15];
|
|
5654
5963
|
}
|
|
5655
5964
|
else {
|
|
5656
|
-
vErrors.push(
|
|
5965
|
+
vErrors.push(err15);
|
|
5657
5966
|
}
|
|
5658
5967
|
errors++;
|
|
5659
5968
|
}
|
|
5660
5969
|
if (data.metadata === undefined) {
|
|
5661
|
-
const
|
|
5970
|
+
const err16 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "metadata" }, message: "must have required property '" + "metadata" + "'" };
|
|
5662
5971
|
if (vErrors === null) {
|
|
5663
|
-
vErrors = [
|
|
5972
|
+
vErrors = [err16];
|
|
5664
5973
|
}
|
|
5665
5974
|
else {
|
|
5666
|
-
vErrors.push(
|
|
5975
|
+
vErrors.push(err16);
|
|
5667
5976
|
}
|
|
5668
5977
|
errors++;
|
|
5669
5978
|
}
|
|
5670
5979
|
for (const key0 in data) {
|
|
5671
5980
|
if (!(func1.call(schema31.properties, key0))) {
|
|
5672
|
-
const
|
|
5981
|
+
const err17 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
5673
5982
|
if (vErrors === null) {
|
|
5674
|
-
vErrors = [
|
|
5983
|
+
vErrors = [err17];
|
|
5675
5984
|
}
|
|
5676
5985
|
else {
|
|
5677
|
-
vErrors.push(
|
|
5986
|
+
vErrors.push(err17);
|
|
5678
5987
|
}
|
|
5679
5988
|
errors++;
|
|
5680
5989
|
}
|
|
5681
5990
|
}
|
|
5682
5991
|
if (data.schema !== undefined) {
|
|
5683
5992
|
if ("@baron1996/kline-scene" !== data.schema) {
|
|
5684
|
-
const
|
|
5993
|
+
const err18 = { instancePath: instancePath + "/schema", schemaPath: "#/properties/schema/const", keyword: "const", params: { allowedValue: "@baron1996/kline-scene" }, message: "must be equal to constant" };
|
|
5685
5994
|
if (vErrors === null) {
|
|
5686
|
-
vErrors = [
|
|
5995
|
+
vErrors = [err18];
|
|
5687
5996
|
}
|
|
5688
5997
|
else {
|
|
5689
|
-
vErrors.push(
|
|
5998
|
+
vErrors.push(err18);
|
|
5690
5999
|
}
|
|
5691
6000
|
errors++;
|
|
5692
6001
|
}
|
|
5693
6002
|
}
|
|
5694
6003
|
if (data.version !== undefined) {
|
|
5695
|
-
|
|
5696
|
-
|
|
6004
|
+
let data3 = data.version;
|
|
6005
|
+
if (!((data3 === 1) || (data3 === 2))) {
|
|
6006
|
+
const err19 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/enum", keyword: "enum", params: { allowedValues: schema31.properties.version.enum }, message: "must be equal to one of the allowed values" };
|
|
5697
6007
|
if (vErrors === null) {
|
|
5698
|
-
vErrors = [
|
|
6008
|
+
vErrors = [err19];
|
|
5699
6009
|
}
|
|
5700
6010
|
else {
|
|
5701
|
-
vErrors.push(
|
|
6011
|
+
vErrors.push(err19);
|
|
5702
6012
|
}
|
|
5703
6013
|
errors++;
|
|
5704
6014
|
}
|
|
5705
6015
|
}
|
|
5706
6016
|
if (data.runtime !== undefined) {
|
|
5707
|
-
let
|
|
5708
|
-
if (
|
|
5709
|
-
if (
|
|
5710
|
-
const
|
|
6017
|
+
let data4 = data.runtime;
|
|
6018
|
+
if (data4 && typeof data4 == "object" && !Array.isArray(data4)) {
|
|
6019
|
+
if (data4.engine === undefined) {
|
|
6020
|
+
const err20 = { instancePath: instancePath + "/runtime", schemaPath: "https://baron.dev/kline-scene/runtime.schema.json/required", keyword: "required", params: { missingProperty: "engine" }, message: "must have required property '" + "engine" + "'" };
|
|
5711
6021
|
if (vErrors === null) {
|
|
5712
|
-
vErrors = [
|
|
6022
|
+
vErrors = [err20];
|
|
5713
6023
|
}
|
|
5714
6024
|
else {
|
|
5715
|
-
vErrors.push(
|
|
6025
|
+
vErrors.push(err20);
|
|
5716
6026
|
}
|
|
5717
6027
|
errors++;
|
|
5718
6028
|
}
|
|
5719
|
-
if (
|
|
5720
|
-
const
|
|
6029
|
+
if (data4.engineVersion === undefined) {
|
|
6030
|
+
const err21 = { instancePath: instancePath + "/runtime", schemaPath: "https://baron.dev/kline-scene/runtime.schema.json/required", keyword: "required", params: { missingProperty: "engineVersion" }, message: "must have required property '" + "engineVersion" + "'" };
|
|
5721
6031
|
if (vErrors === null) {
|
|
5722
|
-
vErrors = [
|
|
6032
|
+
vErrors = [err21];
|
|
5723
6033
|
}
|
|
5724
6034
|
else {
|
|
5725
|
-
vErrors.push(
|
|
6035
|
+
vErrors.push(err21);
|
|
5726
6036
|
}
|
|
5727
6037
|
errors++;
|
|
5728
6038
|
}
|
|
5729
|
-
if (
|
|
5730
|
-
const
|
|
6039
|
+
if (data4.runtimeVersion === undefined) {
|
|
6040
|
+
const err22 = { instancePath: instancePath + "/runtime", schemaPath: "https://baron.dev/kline-scene/runtime.schema.json/required", keyword: "required", params: { missingProperty: "runtimeVersion" }, message: "must have required property '" + "runtimeVersion" + "'" };
|
|
5731
6041
|
if (vErrors === null) {
|
|
5732
|
-
vErrors = [
|
|
6042
|
+
vErrors = [err22];
|
|
5733
6043
|
}
|
|
5734
6044
|
else {
|
|
5735
|
-
vErrors.push(
|
|
6045
|
+
vErrors.push(err22);
|
|
5736
6046
|
}
|
|
5737
6047
|
errors++;
|
|
5738
6048
|
}
|
|
5739
|
-
for (const key1 in
|
|
6049
|
+
for (const key1 in data4) {
|
|
5740
6050
|
if (!(((key1 === "engine") || (key1 === "engineVersion")) || (key1 === "runtimeVersion"))) {
|
|
5741
|
-
const
|
|
6051
|
+
const err23 = { instancePath: instancePath + "/runtime", schemaPath: "https://baron.dev/kline-scene/runtime.schema.json/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
|
|
5742
6052
|
if (vErrors === null) {
|
|
5743
|
-
vErrors = [
|
|
6053
|
+
vErrors = [err23];
|
|
5744
6054
|
}
|
|
5745
6055
|
else {
|
|
5746
|
-
vErrors.push(
|
|
6056
|
+
vErrors.push(err23);
|
|
5747
6057
|
}
|
|
5748
6058
|
errors++;
|
|
5749
6059
|
}
|
|
5750
6060
|
}
|
|
5751
|
-
if (
|
|
5752
|
-
if ("klinecharts" !==
|
|
5753
|
-
const
|
|
6061
|
+
if (data4.engine !== undefined) {
|
|
6062
|
+
if ("klinecharts" !== data4.engine) {
|
|
6063
|
+
const err24 = { instancePath: instancePath + "/runtime/engine", schemaPath: "https://baron.dev/kline-scene/runtime.schema.json/properties/engine/const", keyword: "const", params: { allowedValue: "klinecharts" }, message: "must be equal to constant" };
|
|
5754
6064
|
if (vErrors === null) {
|
|
5755
|
-
vErrors = [
|
|
6065
|
+
vErrors = [err24];
|
|
5756
6066
|
}
|
|
5757
6067
|
else {
|
|
5758
|
-
vErrors.push(
|
|
6068
|
+
vErrors.push(err24);
|
|
5759
6069
|
}
|
|
5760
6070
|
errors++;
|
|
5761
6071
|
}
|
|
5762
6072
|
}
|
|
5763
|
-
if (
|
|
5764
|
-
if ("10.0.0" !==
|
|
5765
|
-
const
|
|
6073
|
+
if (data4.engineVersion !== undefined) {
|
|
6074
|
+
if ("10.0.0" !== data4.engineVersion) {
|
|
6075
|
+
const err25 = { instancePath: instancePath + "/runtime/engineVersion", schemaPath: "https://baron.dev/kline-scene/runtime.schema.json/properties/engineVersion/const", keyword: "const", params: { allowedValue: "10.0.0" }, message: "must be equal to constant" };
|
|
5766
6076
|
if (vErrors === null) {
|
|
5767
|
-
vErrors = [
|
|
6077
|
+
vErrors = [err25];
|
|
5768
6078
|
}
|
|
5769
6079
|
else {
|
|
5770
|
-
vErrors.push(
|
|
6080
|
+
vErrors.push(err25);
|
|
5771
6081
|
}
|
|
5772
6082
|
errors++;
|
|
5773
6083
|
}
|
|
5774
6084
|
}
|
|
5775
|
-
if (
|
|
5776
|
-
let
|
|
5777
|
-
if (!((
|
|
5778
|
-
const
|
|
6085
|
+
if (data4.runtimeVersion !== undefined) {
|
|
6086
|
+
let data7 = data4.runtimeVersion;
|
|
6087
|
+
if (!((data7 === "0.1.0") || (data7 === "0.2.0"))) {
|
|
6088
|
+
const err26 = { instancePath: instancePath + "/runtime/runtimeVersion", schemaPath: "https://baron.dev/kline-scene/runtime.schema.json/properties/runtimeVersion/enum", keyword: "enum", params: { allowedValues: schema32.properties.runtimeVersion.enum }, message: "must be equal to one of the allowed values" };
|
|
5779
6089
|
if (vErrors === null) {
|
|
5780
|
-
vErrors = [
|
|
6090
|
+
vErrors = [err26];
|
|
5781
6091
|
}
|
|
5782
6092
|
else {
|
|
5783
|
-
vErrors.push(
|
|
6093
|
+
vErrors.push(err26);
|
|
5784
6094
|
}
|
|
5785
6095
|
errors++;
|
|
5786
6096
|
}
|
|
5787
6097
|
}
|
|
5788
6098
|
}
|
|
5789
6099
|
else {
|
|
5790
|
-
const
|
|
6100
|
+
const err27 = { instancePath: instancePath + "/runtime", schemaPath: "https://baron.dev/kline-scene/runtime.schema.json/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
5791
6101
|
if (vErrors === null) {
|
|
5792
|
-
vErrors = [
|
|
6102
|
+
vErrors = [err27];
|
|
5793
6103
|
}
|
|
5794
6104
|
else {
|
|
5795
|
-
vErrors.push(
|
|
6105
|
+
vErrors.push(err27);
|
|
5796
6106
|
}
|
|
5797
6107
|
errors++;
|
|
5798
6108
|
}
|
|
5799
6109
|
}
|
|
5800
6110
|
if (data.symbol !== undefined) {
|
|
5801
|
-
let
|
|
5802
|
-
if (
|
|
5803
|
-
if (
|
|
5804
|
-
const
|
|
6111
|
+
let data8 = data.symbol;
|
|
6112
|
+
if (data8 && typeof data8 == "object" && !Array.isArray(data8)) {
|
|
6113
|
+
if (data8.ticker === undefined) {
|
|
6114
|
+
const err28 = { instancePath: instancePath + "/symbol", schemaPath: "#/$defs/symbol/required", keyword: "required", params: { missingProperty: "ticker" }, message: "must have required property '" + "ticker" + "'" };
|
|
5805
6115
|
if (vErrors === null) {
|
|
5806
|
-
vErrors = [
|
|
6116
|
+
vErrors = [err28];
|
|
5807
6117
|
}
|
|
5808
6118
|
else {
|
|
5809
|
-
vErrors.push(
|
|
6119
|
+
vErrors.push(err28);
|
|
5810
6120
|
}
|
|
5811
6121
|
errors++;
|
|
5812
6122
|
}
|
|
5813
|
-
if (
|
|
5814
|
-
const
|
|
6123
|
+
if (data8.pricePrecision === undefined) {
|
|
6124
|
+
const err29 = { instancePath: instancePath + "/symbol", schemaPath: "#/$defs/symbol/required", keyword: "required", params: { missingProperty: "pricePrecision" }, message: "must have required property '" + "pricePrecision" + "'" };
|
|
5815
6125
|
if (vErrors === null) {
|
|
5816
|
-
vErrors = [
|
|
6126
|
+
vErrors = [err29];
|
|
5817
6127
|
}
|
|
5818
6128
|
else {
|
|
5819
|
-
vErrors.push(
|
|
6129
|
+
vErrors.push(err29);
|
|
5820
6130
|
}
|
|
5821
6131
|
errors++;
|
|
5822
6132
|
}
|
|
5823
|
-
if (
|
|
5824
|
-
const
|
|
6133
|
+
if (data8.volumePrecision === undefined) {
|
|
6134
|
+
const err30 = { instancePath: instancePath + "/symbol", schemaPath: "#/$defs/symbol/required", keyword: "required", params: { missingProperty: "volumePrecision" }, message: "must have required property '" + "volumePrecision" + "'" };
|
|
5825
6135
|
if (vErrors === null) {
|
|
5826
|
-
vErrors = [
|
|
6136
|
+
vErrors = [err30];
|
|
5827
6137
|
}
|
|
5828
6138
|
else {
|
|
5829
|
-
vErrors.push(
|
|
6139
|
+
vErrors.push(err30);
|
|
5830
6140
|
}
|
|
5831
6141
|
errors++;
|
|
5832
6142
|
}
|
|
5833
|
-
for (const key2 in
|
|
6143
|
+
for (const key2 in data8) {
|
|
5834
6144
|
if (!((((key2 === "ticker") || (key2 === "name")) || (key2 === "pricePrecision")) || (key2 === "volumePrecision"))) {
|
|
5835
|
-
const
|
|
6145
|
+
const err31 = { instancePath: instancePath + "/symbol", schemaPath: "#/$defs/symbol/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
|
|
5836
6146
|
if (vErrors === null) {
|
|
5837
|
-
vErrors = [
|
|
6147
|
+
vErrors = [err31];
|
|
5838
6148
|
}
|
|
5839
6149
|
else {
|
|
5840
|
-
vErrors.push(
|
|
6150
|
+
vErrors.push(err31);
|
|
5841
6151
|
}
|
|
5842
6152
|
errors++;
|
|
5843
6153
|
}
|
|
5844
6154
|
}
|
|
5845
|
-
if (
|
|
5846
|
-
let
|
|
5847
|
-
if (typeof
|
|
5848
|
-
if (func2(
|
|
5849
|
-
const
|
|
6155
|
+
if (data8.ticker !== undefined) {
|
|
6156
|
+
let data9 = data8.ticker;
|
|
6157
|
+
if (typeof data9 === "string") {
|
|
6158
|
+
if (func2(data9) > 128) {
|
|
6159
|
+
const err32 = { instancePath: instancePath + "/symbol/ticker", schemaPath: "#/$defs/symbol/properties/ticker/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
|
|
5850
6160
|
if (vErrors === null) {
|
|
5851
|
-
vErrors = [
|
|
6161
|
+
vErrors = [err32];
|
|
5852
6162
|
}
|
|
5853
6163
|
else {
|
|
5854
|
-
vErrors.push(
|
|
6164
|
+
vErrors.push(err32);
|
|
5855
6165
|
}
|
|
5856
6166
|
errors++;
|
|
5857
6167
|
}
|
|
5858
|
-
if (func2(
|
|
5859
|
-
const
|
|
6168
|
+
if (func2(data9) < 1) {
|
|
6169
|
+
const err33 = { instancePath: instancePath + "/symbol/ticker", schemaPath: "#/$defs/symbol/properties/ticker/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
5860
6170
|
if (vErrors === null) {
|
|
5861
|
-
vErrors = [
|
|
6171
|
+
vErrors = [err33];
|
|
5862
6172
|
}
|
|
5863
6173
|
else {
|
|
5864
|
-
vErrors.push(
|
|
6174
|
+
vErrors.push(err33);
|
|
5865
6175
|
}
|
|
5866
6176
|
errors++;
|
|
5867
6177
|
}
|
|
5868
6178
|
}
|
|
5869
6179
|
else {
|
|
5870
|
-
const
|
|
6180
|
+
const err34 = { instancePath: instancePath + "/symbol/ticker", schemaPath: "#/$defs/symbol/properties/ticker/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
5871
6181
|
if (vErrors === null) {
|
|
5872
|
-
vErrors = [
|
|
6182
|
+
vErrors = [err34];
|
|
5873
6183
|
}
|
|
5874
6184
|
else {
|
|
5875
|
-
vErrors.push(
|
|
6185
|
+
vErrors.push(err34);
|
|
5876
6186
|
}
|
|
5877
6187
|
errors++;
|
|
5878
6188
|
}
|
|
5879
6189
|
}
|
|
5880
|
-
if (
|
|
5881
|
-
let
|
|
5882
|
-
if (typeof
|
|
5883
|
-
if (func2(
|
|
5884
|
-
const
|
|
6190
|
+
if (data8.name !== undefined) {
|
|
6191
|
+
let data10 = data8.name;
|
|
6192
|
+
if (typeof data10 === "string") {
|
|
6193
|
+
if (func2(data10) > 256) {
|
|
6194
|
+
const err35 = { instancePath: instancePath + "/symbol/name", schemaPath: "#/$defs/symbol/properties/name/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
5885
6195
|
if (vErrors === null) {
|
|
5886
|
-
vErrors = [
|
|
6196
|
+
vErrors = [err35];
|
|
5887
6197
|
}
|
|
5888
6198
|
else {
|
|
5889
|
-
vErrors.push(
|
|
6199
|
+
vErrors.push(err35);
|
|
5890
6200
|
}
|
|
5891
6201
|
errors++;
|
|
5892
6202
|
}
|
|
5893
|
-
if (func2(
|
|
5894
|
-
const
|
|
6203
|
+
if (func2(data10) < 1) {
|
|
6204
|
+
const err36 = { instancePath: instancePath + "/symbol/name", schemaPath: "#/$defs/symbol/properties/name/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
5895
6205
|
if (vErrors === null) {
|
|
5896
|
-
vErrors = [
|
|
6206
|
+
vErrors = [err36];
|
|
5897
6207
|
}
|
|
5898
6208
|
else {
|
|
5899
|
-
vErrors.push(
|
|
6209
|
+
vErrors.push(err36);
|
|
5900
6210
|
}
|
|
5901
6211
|
errors++;
|
|
5902
6212
|
}
|
|
5903
6213
|
}
|
|
5904
6214
|
else {
|
|
5905
|
-
const
|
|
6215
|
+
const err37 = { instancePath: instancePath + "/symbol/name", schemaPath: "#/$defs/symbol/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
5906
6216
|
if (vErrors === null) {
|
|
5907
|
-
vErrors = [
|
|
6217
|
+
vErrors = [err37];
|
|
5908
6218
|
}
|
|
5909
6219
|
else {
|
|
5910
|
-
vErrors.push(
|
|
6220
|
+
vErrors.push(err37);
|
|
5911
6221
|
}
|
|
5912
6222
|
errors++;
|
|
5913
6223
|
}
|
|
5914
6224
|
}
|
|
5915
|
-
if (
|
|
5916
|
-
let
|
|
5917
|
-
if (!(((typeof
|
|
5918
|
-
const
|
|
6225
|
+
if (data8.pricePrecision !== undefined) {
|
|
6226
|
+
let data11 = data8.pricePrecision;
|
|
6227
|
+
if (!(((typeof data11 == "number") && (!(data11 % 1) && !isNaN(data11))) && (isFinite(data11)))) {
|
|
6228
|
+
const err38 = { instancePath: instancePath + "/symbol/pricePrecision", schemaPath: "#/$defs/symbol/properties/pricePrecision/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
5919
6229
|
if (vErrors === null) {
|
|
5920
|
-
vErrors = [
|
|
6230
|
+
vErrors = [err38];
|
|
5921
6231
|
}
|
|
5922
6232
|
else {
|
|
5923
|
-
vErrors.push(
|
|
6233
|
+
vErrors.push(err38);
|
|
5924
6234
|
}
|
|
5925
6235
|
errors++;
|
|
5926
6236
|
}
|
|
5927
|
-
if ((typeof
|
|
5928
|
-
if (
|
|
5929
|
-
const
|
|
6237
|
+
if ((typeof data11 == "number") && (isFinite(data11))) {
|
|
6238
|
+
if (data11 > 16 || isNaN(data11)) {
|
|
6239
|
+
const err39 = { instancePath: instancePath + "/symbol/pricePrecision", schemaPath: "#/$defs/symbol/properties/pricePrecision/maximum", keyword: "maximum", params: { comparison: "<=", limit: 16 }, message: "must be <= 16" };
|
|
5930
6240
|
if (vErrors === null) {
|
|
5931
|
-
vErrors = [
|
|
6241
|
+
vErrors = [err39];
|
|
5932
6242
|
}
|
|
5933
6243
|
else {
|
|
5934
|
-
vErrors.push(
|
|
6244
|
+
vErrors.push(err39);
|
|
5935
6245
|
}
|
|
5936
6246
|
errors++;
|
|
5937
6247
|
}
|
|
5938
|
-
if (
|
|
5939
|
-
const
|
|
6248
|
+
if (data11 < 0 || isNaN(data11)) {
|
|
6249
|
+
const err40 = { instancePath: instancePath + "/symbol/pricePrecision", schemaPath: "#/$defs/symbol/properties/pricePrecision/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
5940
6250
|
if (vErrors === null) {
|
|
5941
|
-
vErrors = [
|
|
6251
|
+
vErrors = [err40];
|
|
5942
6252
|
}
|
|
5943
6253
|
else {
|
|
5944
|
-
vErrors.push(
|
|
6254
|
+
vErrors.push(err40);
|
|
5945
6255
|
}
|
|
5946
6256
|
errors++;
|
|
5947
6257
|
}
|
|
5948
6258
|
}
|
|
5949
6259
|
}
|
|
5950
|
-
if (
|
|
5951
|
-
let
|
|
5952
|
-
if (!(((typeof
|
|
5953
|
-
const
|
|
6260
|
+
if (data8.volumePrecision !== undefined) {
|
|
6261
|
+
let data12 = data8.volumePrecision;
|
|
6262
|
+
if (!(((typeof data12 == "number") && (!(data12 % 1) && !isNaN(data12))) && (isFinite(data12)))) {
|
|
6263
|
+
const err41 = { instancePath: instancePath + "/symbol/volumePrecision", schemaPath: "#/$defs/symbol/properties/volumePrecision/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
5954
6264
|
if (vErrors === null) {
|
|
5955
|
-
vErrors = [
|
|
6265
|
+
vErrors = [err41];
|
|
5956
6266
|
}
|
|
5957
6267
|
else {
|
|
5958
|
-
vErrors.push(
|
|
6268
|
+
vErrors.push(err41);
|
|
5959
6269
|
}
|
|
5960
6270
|
errors++;
|
|
5961
6271
|
}
|
|
5962
|
-
if ((typeof
|
|
5963
|
-
if (
|
|
5964
|
-
const
|
|
6272
|
+
if ((typeof data12 == "number") && (isFinite(data12))) {
|
|
6273
|
+
if (data12 > 16 || isNaN(data12)) {
|
|
6274
|
+
const err42 = { instancePath: instancePath + "/symbol/volumePrecision", schemaPath: "#/$defs/symbol/properties/volumePrecision/maximum", keyword: "maximum", params: { comparison: "<=", limit: 16 }, message: "must be <= 16" };
|
|
5965
6275
|
if (vErrors === null) {
|
|
5966
|
-
vErrors = [
|
|
6276
|
+
vErrors = [err42];
|
|
5967
6277
|
}
|
|
5968
6278
|
else {
|
|
5969
|
-
vErrors.push(
|
|
6279
|
+
vErrors.push(err42);
|
|
5970
6280
|
}
|
|
5971
6281
|
errors++;
|
|
5972
6282
|
}
|
|
5973
|
-
if (
|
|
5974
|
-
const
|
|
6283
|
+
if (data12 < 0 || isNaN(data12)) {
|
|
6284
|
+
const err43 = { instancePath: instancePath + "/symbol/volumePrecision", schemaPath: "#/$defs/symbol/properties/volumePrecision/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
5975
6285
|
if (vErrors === null) {
|
|
5976
|
-
vErrors = [
|
|
6286
|
+
vErrors = [err43];
|
|
5977
6287
|
}
|
|
5978
6288
|
else {
|
|
5979
|
-
vErrors.push(
|
|
6289
|
+
vErrors.push(err43);
|
|
5980
6290
|
}
|
|
5981
6291
|
errors++;
|
|
5982
6292
|
}
|
|
@@ -5984,259 +6294,291 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5984
6294
|
}
|
|
5985
6295
|
}
|
|
5986
6296
|
else {
|
|
5987
|
-
const
|
|
6297
|
+
const err44 = { instancePath: instancePath + "/symbol", schemaPath: "#/$defs/symbol/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
5988
6298
|
if (vErrors === null) {
|
|
5989
|
-
vErrors = [
|
|
6299
|
+
vErrors = [err44];
|
|
5990
6300
|
}
|
|
5991
6301
|
else {
|
|
5992
|
-
vErrors.push(
|
|
6302
|
+
vErrors.push(err44);
|
|
5993
6303
|
}
|
|
5994
6304
|
errors++;
|
|
5995
6305
|
}
|
|
5996
6306
|
}
|
|
5997
6307
|
if (data.period !== undefined) {
|
|
5998
|
-
let
|
|
5999
|
-
if (
|
|
6000
|
-
if (
|
|
6001
|
-
const
|
|
6308
|
+
let data13 = data.period;
|
|
6309
|
+
if (data13 && typeof data13 == "object" && !Array.isArray(data13)) {
|
|
6310
|
+
if (data13.span === undefined) {
|
|
6311
|
+
const err45 = { 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" + "'" };
|
|
6002
6312
|
if (vErrors === null) {
|
|
6003
|
-
vErrors = [
|
|
6313
|
+
vErrors = [err45];
|
|
6004
6314
|
}
|
|
6005
6315
|
else {
|
|
6006
|
-
vErrors.push(
|
|
6316
|
+
vErrors.push(err45);
|
|
6007
6317
|
}
|
|
6008
6318
|
errors++;
|
|
6009
6319
|
}
|
|
6010
|
-
if (
|
|
6011
|
-
const
|
|
6320
|
+
if (data13.type === undefined) {
|
|
6321
|
+
const err46 = { 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" + "'" };
|
|
6012
6322
|
if (vErrors === null) {
|
|
6013
|
-
vErrors = [
|
|
6323
|
+
vErrors = [err46];
|
|
6014
6324
|
}
|
|
6015
6325
|
else {
|
|
6016
|
-
vErrors.push(
|
|
6326
|
+
vErrors.push(err46);
|
|
6017
6327
|
}
|
|
6018
6328
|
errors++;
|
|
6019
6329
|
}
|
|
6020
|
-
for (const key3 in
|
|
6330
|
+
for (const key3 in data13) {
|
|
6021
6331
|
if (!((key3 === "span") || (key3 === "type"))) {
|
|
6022
|
-
const
|
|
6332
|
+
const err47 = { 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" };
|
|
6023
6333
|
if (vErrors === null) {
|
|
6024
|
-
vErrors = [
|
|
6334
|
+
vErrors = [err47];
|
|
6025
6335
|
}
|
|
6026
6336
|
else {
|
|
6027
|
-
vErrors.push(
|
|
6337
|
+
vErrors.push(err47);
|
|
6028
6338
|
}
|
|
6029
6339
|
errors++;
|
|
6030
6340
|
}
|
|
6031
6341
|
}
|
|
6032
|
-
if (
|
|
6033
|
-
let
|
|
6034
|
-
if (!(((typeof
|
|
6035
|
-
const
|
|
6342
|
+
if (data13.span !== undefined) {
|
|
6343
|
+
let data14 = data13.span;
|
|
6344
|
+
if (!(((typeof data14 == "number") && (!(data14 % 1) && !isNaN(data14))) && (isFinite(data14)))) {
|
|
6345
|
+
const err48 = { 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" };
|
|
6036
6346
|
if (vErrors === null) {
|
|
6037
|
-
vErrors = [
|
|
6347
|
+
vErrors = [err48];
|
|
6038
6348
|
}
|
|
6039
6349
|
else {
|
|
6040
|
-
vErrors.push(
|
|
6350
|
+
vErrors.push(err48);
|
|
6041
6351
|
}
|
|
6042
6352
|
errors++;
|
|
6043
6353
|
}
|
|
6044
|
-
if ((typeof
|
|
6045
|
-
if (
|
|
6046
|
-
const
|
|
6354
|
+
if ((typeof data14 == "number") && (isFinite(data14))) {
|
|
6355
|
+
if (data14 > 100000 || isNaN(data14)) {
|
|
6356
|
+
const err49 = { 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" };
|
|
6047
6357
|
if (vErrors === null) {
|
|
6048
|
-
vErrors = [
|
|
6358
|
+
vErrors = [err49];
|
|
6049
6359
|
}
|
|
6050
6360
|
else {
|
|
6051
|
-
vErrors.push(
|
|
6361
|
+
vErrors.push(err49);
|
|
6052
6362
|
}
|
|
6053
6363
|
errors++;
|
|
6054
6364
|
}
|
|
6055
|
-
if (
|
|
6056
|
-
const
|
|
6365
|
+
if (data14 < 1 || isNaN(data14)) {
|
|
6366
|
+
const err50 = { 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" };
|
|
6057
6367
|
if (vErrors === null) {
|
|
6058
|
-
vErrors = [
|
|
6368
|
+
vErrors = [err50];
|
|
6059
6369
|
}
|
|
6060
6370
|
else {
|
|
6061
|
-
vErrors.push(
|
|
6371
|
+
vErrors.push(err50);
|
|
6062
6372
|
}
|
|
6063
6373
|
errors++;
|
|
6064
6374
|
}
|
|
6065
6375
|
}
|
|
6066
6376
|
}
|
|
6067
|
-
if (
|
|
6068
|
-
let
|
|
6069
|
-
if (!(((((((
|
|
6070
|
-
const
|
|
6377
|
+
if (data13.type !== undefined) {
|
|
6378
|
+
let data15 = data13.type;
|
|
6379
|
+
if (!(((((((data15 === "second") || (data15 === "minute")) || (data15 === "hour")) || (data15 === "day")) || (data15 === "week")) || (data15 === "month")) || (data15 === "year"))) {
|
|
6380
|
+
const err51 = { 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" };
|
|
6071
6381
|
if (vErrors === null) {
|
|
6072
|
-
vErrors = [
|
|
6382
|
+
vErrors = [err51];
|
|
6073
6383
|
}
|
|
6074
6384
|
else {
|
|
6075
|
-
vErrors.push(
|
|
6385
|
+
vErrors.push(err51);
|
|
6076
6386
|
}
|
|
6077
6387
|
errors++;
|
|
6078
6388
|
}
|
|
6079
6389
|
}
|
|
6080
6390
|
}
|
|
6081
6391
|
else {
|
|
6082
|
-
const
|
|
6392
|
+
const err52 = { instancePath: instancePath + "/period", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/period/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
6083
6393
|
if (vErrors === null) {
|
|
6084
|
-
vErrors = [
|
|
6394
|
+
vErrors = [err52];
|
|
6085
6395
|
}
|
|
6086
6396
|
else {
|
|
6087
|
-
vErrors.push(
|
|
6397
|
+
vErrors.push(err52);
|
|
6088
6398
|
}
|
|
6089
6399
|
errors++;
|
|
6090
6400
|
}
|
|
6091
6401
|
}
|
|
6092
6402
|
if (data.data !== undefined) {
|
|
6093
|
-
let
|
|
6094
|
-
if (Array.isArray(
|
|
6095
|
-
if (
|
|
6096
|
-
const
|
|
6403
|
+
let data16 = data.data;
|
|
6404
|
+
if (Array.isArray(data16)) {
|
|
6405
|
+
if (data16.length > 1000000) {
|
|
6406
|
+
const err53 = { instancePath: instancePath + "/data", schemaPath: "#/properties/data/maxItems", keyword: "maxItems", params: { limit: 1000000 }, message: "must NOT have more than 1000000 items" };
|
|
6097
6407
|
if (vErrors === null) {
|
|
6098
|
-
vErrors = [
|
|
6408
|
+
vErrors = [err53];
|
|
6099
6409
|
}
|
|
6100
6410
|
else {
|
|
6101
|
-
vErrors.push(
|
|
6411
|
+
vErrors.push(err53);
|
|
6102
6412
|
}
|
|
6103
6413
|
errors++;
|
|
6104
6414
|
}
|
|
6105
|
-
if (
|
|
6106
|
-
const
|
|
6415
|
+
if (data16.length < 1) {
|
|
6416
|
+
const err54 = { instancePath: instancePath + "/data", schemaPath: "#/properties/data/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
6107
6417
|
if (vErrors === null) {
|
|
6108
|
-
vErrors = [
|
|
6418
|
+
vErrors = [err54];
|
|
6109
6419
|
}
|
|
6110
6420
|
else {
|
|
6111
|
-
vErrors.push(
|
|
6421
|
+
vErrors.push(err54);
|
|
6112
6422
|
}
|
|
6113
6423
|
errors++;
|
|
6114
6424
|
}
|
|
6115
|
-
const len0 =
|
|
6425
|
+
const len0 = data16.length;
|
|
6116
6426
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
6117
|
-
if (!(validate22(
|
|
6427
|
+
if (!(validate22(data16[i0], { instancePath: instancePath + "/data/" + i0, parentData: data16, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
6118
6428
|
vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
|
|
6119
6429
|
errors = vErrors.length;
|
|
6120
6430
|
}
|
|
6121
6431
|
}
|
|
6122
6432
|
}
|
|
6123
6433
|
else {
|
|
6124
|
-
const
|
|
6434
|
+
const err55 = { instancePath: instancePath + "/data", schemaPath: "#/properties/data/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
6435
|
+
if (vErrors === null) {
|
|
6436
|
+
vErrors = [err55];
|
|
6437
|
+
}
|
|
6438
|
+
else {
|
|
6439
|
+
vErrors.push(err55);
|
|
6440
|
+
}
|
|
6441
|
+
errors++;
|
|
6442
|
+
}
|
|
6443
|
+
}
|
|
6444
|
+
if (data.gaps !== undefined) {
|
|
6445
|
+
let data18 = data.gaps;
|
|
6446
|
+
if (Array.isArray(data18)) {
|
|
6447
|
+
if (data18.length > 1000000) {
|
|
6448
|
+
const err56 = { instancePath: instancePath + "/gaps", schemaPath: "#/properties/gaps/maxItems", keyword: "maxItems", params: { limit: 1000000 }, message: "must NOT have more than 1000000 items" };
|
|
6449
|
+
if (vErrors === null) {
|
|
6450
|
+
vErrors = [err56];
|
|
6451
|
+
}
|
|
6452
|
+
else {
|
|
6453
|
+
vErrors.push(err56);
|
|
6454
|
+
}
|
|
6455
|
+
errors++;
|
|
6456
|
+
}
|
|
6457
|
+
const len1 = data18.length;
|
|
6458
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
6459
|
+
if (!(validate24(data18[i1], { instancePath: instancePath + "/gaps/" + i1, parentData: data18, parentDataProperty: i1, rootData, dynamicAnchors }))) {
|
|
6460
|
+
vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);
|
|
6461
|
+
errors = vErrors.length;
|
|
6462
|
+
}
|
|
6463
|
+
}
|
|
6464
|
+
}
|
|
6465
|
+
else {
|
|
6466
|
+
const err57 = { instancePath: instancePath + "/gaps", schemaPath: "#/properties/gaps/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
6125
6467
|
if (vErrors === null) {
|
|
6126
|
-
vErrors = [
|
|
6468
|
+
vErrors = [err57];
|
|
6127
6469
|
}
|
|
6128
6470
|
else {
|
|
6129
|
-
vErrors.push(
|
|
6471
|
+
vErrors.push(err57);
|
|
6130
6472
|
}
|
|
6131
6473
|
errors++;
|
|
6132
6474
|
}
|
|
6133
6475
|
}
|
|
6134
6476
|
if (data.chart !== undefined) {
|
|
6135
|
-
if (!(
|
|
6136
|
-
vErrors = vErrors === null ?
|
|
6477
|
+
if (!(validate26(data.chart, { instancePath: instancePath + "/chart", parentData: data, parentDataProperty: "chart", rootData, dynamicAnchors }))) {
|
|
6478
|
+
vErrors = vErrors === null ? validate26.errors : vErrors.concat(validate26.errors);
|
|
6137
6479
|
errors = vErrors.length;
|
|
6138
6480
|
}
|
|
6139
6481
|
}
|
|
6140
6482
|
if (data.panes !== undefined) {
|
|
6141
|
-
let
|
|
6142
|
-
if (Array.isArray(
|
|
6143
|
-
if (
|
|
6144
|
-
const
|
|
6483
|
+
let data21 = data.panes;
|
|
6484
|
+
if (Array.isArray(data21)) {
|
|
6485
|
+
if (data21.length > 32) {
|
|
6486
|
+
const err58 = { instancePath: instancePath + "/panes", schemaPath: "#/properties/panes/maxItems", keyword: "maxItems", params: { limit: 32 }, message: "must NOT have more than 32 items" };
|
|
6145
6487
|
if (vErrors === null) {
|
|
6146
|
-
vErrors = [
|
|
6488
|
+
vErrors = [err58];
|
|
6147
6489
|
}
|
|
6148
6490
|
else {
|
|
6149
|
-
vErrors.push(
|
|
6491
|
+
vErrors.push(err58);
|
|
6150
6492
|
}
|
|
6151
6493
|
errors++;
|
|
6152
6494
|
}
|
|
6153
|
-
if (
|
|
6154
|
-
const
|
|
6495
|
+
if (data21.length < 1) {
|
|
6496
|
+
const err59 = { instancePath: instancePath + "/panes", schemaPath: "#/properties/panes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
6155
6497
|
if (vErrors === null) {
|
|
6156
|
-
vErrors = [
|
|
6498
|
+
vErrors = [err59];
|
|
6157
6499
|
}
|
|
6158
6500
|
else {
|
|
6159
|
-
vErrors.push(
|
|
6501
|
+
vErrors.push(err59);
|
|
6160
6502
|
}
|
|
6161
6503
|
errors++;
|
|
6162
6504
|
}
|
|
6163
|
-
const
|
|
6164
|
-
for (let
|
|
6165
|
-
if (!(
|
|
6166
|
-
vErrors = vErrors === null ?
|
|
6505
|
+
const len2 = data21.length;
|
|
6506
|
+
for (let i2 = 0; i2 < len2; i2++) {
|
|
6507
|
+
if (!(validate28(data21[i2], { instancePath: instancePath + "/panes/" + i2, parentData: data21, parentDataProperty: i2, rootData, dynamicAnchors }))) {
|
|
6508
|
+
vErrors = vErrors === null ? validate28.errors : vErrors.concat(validate28.errors);
|
|
6167
6509
|
errors = vErrors.length;
|
|
6168
6510
|
}
|
|
6169
6511
|
}
|
|
6170
6512
|
}
|
|
6171
6513
|
else {
|
|
6172
|
-
const
|
|
6514
|
+
const err60 = { instancePath: instancePath + "/panes", schemaPath: "#/properties/panes/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
6173
6515
|
if (vErrors === null) {
|
|
6174
|
-
vErrors = [
|
|
6516
|
+
vErrors = [err60];
|
|
6175
6517
|
}
|
|
6176
6518
|
else {
|
|
6177
|
-
vErrors.push(
|
|
6519
|
+
vErrors.push(err60);
|
|
6178
6520
|
}
|
|
6179
6521
|
errors++;
|
|
6180
6522
|
}
|
|
6181
6523
|
}
|
|
6182
6524
|
if (data.overlays !== undefined) {
|
|
6183
|
-
let
|
|
6184
|
-
if (Array.isArray(
|
|
6185
|
-
if (
|
|
6186
|
-
const
|
|
6525
|
+
let data23 = data.overlays;
|
|
6526
|
+
if (Array.isArray(data23)) {
|
|
6527
|
+
if (data23.length > 10000) {
|
|
6528
|
+
const err61 = { instancePath: instancePath + "/overlays", schemaPath: "#/properties/overlays/maxItems", keyword: "maxItems", params: { limit: 10000 }, message: "must NOT have more than 10000 items" };
|
|
6187
6529
|
if (vErrors === null) {
|
|
6188
|
-
vErrors = [
|
|
6530
|
+
vErrors = [err61];
|
|
6189
6531
|
}
|
|
6190
6532
|
else {
|
|
6191
|
-
vErrors.push(
|
|
6533
|
+
vErrors.push(err61);
|
|
6192
6534
|
}
|
|
6193
6535
|
errors++;
|
|
6194
6536
|
}
|
|
6195
|
-
const
|
|
6196
|
-
for (let
|
|
6197
|
-
if (!(
|
|
6198
|
-
vErrors = vErrors === null ?
|
|
6537
|
+
const len3 = data23.length;
|
|
6538
|
+
for (let i3 = 0; i3 < len3; i3++) {
|
|
6539
|
+
if (!(validate36(data23[i3], { instancePath: instancePath + "/overlays/" + i3, parentData: data23, parentDataProperty: i3, rootData, dynamicAnchors }))) {
|
|
6540
|
+
vErrors = vErrors === null ? validate36.errors : vErrors.concat(validate36.errors);
|
|
6199
6541
|
errors = vErrors.length;
|
|
6200
6542
|
}
|
|
6201
6543
|
}
|
|
6202
6544
|
}
|
|
6203
6545
|
else {
|
|
6204
|
-
const
|
|
6546
|
+
const err62 = { instancePath: instancePath + "/overlays", schemaPath: "#/properties/overlays/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
6205
6547
|
if (vErrors === null) {
|
|
6206
|
-
vErrors = [
|
|
6548
|
+
vErrors = [err62];
|
|
6207
6549
|
}
|
|
6208
6550
|
else {
|
|
6209
|
-
vErrors.push(
|
|
6551
|
+
vErrors.push(err62);
|
|
6210
6552
|
}
|
|
6211
6553
|
errors++;
|
|
6212
6554
|
}
|
|
6213
6555
|
}
|
|
6214
6556
|
if (data.viewport !== undefined) {
|
|
6215
|
-
if (!(
|
|
6216
|
-
vErrors = vErrors === null ?
|
|
6557
|
+
if (!(validate58(data.viewport, { instancePath: instancePath + "/viewport", parentData: data, parentDataProperty: "viewport", rootData, dynamicAnchors }))) {
|
|
6558
|
+
vErrors = vErrors === null ? validate58.errors : vErrors.concat(validate58.errors);
|
|
6217
6559
|
errors = vErrors.length;
|
|
6218
6560
|
}
|
|
6219
6561
|
}
|
|
6220
6562
|
if (data.render !== undefined) {
|
|
6221
|
-
if (!(
|
|
6222
|
-
vErrors = vErrors === null ?
|
|
6563
|
+
if (!(validate60(data.render, { instancePath: instancePath + "/render", parentData: data, parentDataProperty: "render", rootData, dynamicAnchors }))) {
|
|
6564
|
+
vErrors = vErrors === null ? validate60.errors : vErrors.concat(validate60.errors);
|
|
6223
6565
|
errors = vErrors.length;
|
|
6224
6566
|
}
|
|
6225
6567
|
}
|
|
6226
6568
|
if (data.metadata !== undefined) {
|
|
6227
|
-
if (!(
|
|
6228
|
-
vErrors = vErrors === null ?
|
|
6569
|
+
if (!(validate62(data.metadata, { instancePath: instancePath + "/metadata", parentData: data, parentDataProperty: "metadata", rootData, dynamicAnchors }))) {
|
|
6570
|
+
vErrors = vErrors === null ? validate62.errors : vErrors.concat(validate62.errors);
|
|
6229
6571
|
errors = vErrors.length;
|
|
6230
6572
|
}
|
|
6231
6573
|
}
|
|
6232
6574
|
}
|
|
6233
6575
|
else {
|
|
6234
|
-
const
|
|
6576
|
+
const err63 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
6235
6577
|
if (vErrors === null) {
|
|
6236
|
-
vErrors = [
|
|
6578
|
+
vErrors = [err63];
|
|
6237
6579
|
}
|
|
6238
6580
|
else {
|
|
6239
|
-
vErrors.push(
|
|
6581
|
+
vErrors.push(err63);
|
|
6240
6582
|
}
|
|
6241
6583
|
errors++;
|
|
6242
6584
|
} validate20.errors = vErrors; return errors === 0; }
|