@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
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
export const validateDrawableWorkspace = validate20;
|
|
4
4
|
const schema31 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://baron.dev/kline-scene/drawable-workspace.schema.json", "title": "DrawableWorkspaceDocument", "type": "object", "additionalProperties": false, "required": ["schema", "version", "runtime", "scene", "drawings", "binding", "metadata"], "properties": { "schema": { "const": "@baron1996/drawable-workspace" }, "version": { "const": 1 }, "runtime": { "type": "object", "additionalProperties": false, "required": ["engine", "engineVersion", "workspaceRuntimeVersion"], "properties": { "engine": { "const": "klinecharts" }, "engineVersion": { "const": "10.0.0" }, "workspaceRuntimeVersion": { "const": "1.0.0" } } }, "scene": { "oneOf": [{ "title": "ChartWorkspaceScene", "type": "object", "additionalProperties": false, "required": ["kind", "document"], "properties": { "kind": { "const": "chart" }, "document": { "$ref": "https://baron.dev/kline-scene/chart-scene.schema.json" } } }, { "title": "TimeSeriesWorkspaceScene", "type": "object", "additionalProperties": false, "required": ["kind", "document"], "properties": { "kind": { "const": "time-series" }, "document": { "$ref": "https://baron.dev/kline-scene/time-series-scene.schema.json" } } }] }, "drawings": { "$ref": "https://baron.dev/kline-scene/drawing-document.schema.json" }, "binding": { "type": "object", "additionalProperties": false, "required": ["scopeKey", "timezone", "valueAxes"], "properties": { "scopeKey": { "type": "string", "minLength": 1, "maxLength": 256 }, "timezone": { "$ref": "https://baron.dev/kline-scene/drawing-document.schema.json#/$defs/timezone" }, "valueAxes": { "$ref": "https://baron.dev/kline-scene/drawing-document.schema.json#/$defs/valueAxes" } } }, "metadata": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/metadata" } } };
|
|
5
|
-
const
|
|
6
|
-
const schema32 = { "$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": { "
|
|
5
|
+
const schema129 = { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z_+-]+(?:/[A-Za-z0-9_+-]+)*$" };
|
|
6
|
+
const schema32 = { "$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 } } } } };
|
|
7
7
|
const schema33 = { "$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"] } } };
|
|
8
8
|
const schema34 = { "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 } } };
|
|
9
9
|
const schema36 = { "type": "object", "additionalProperties": false, "required": ["span", "type"], "properties": { "span": { "type": "integer", "minimum": 1, "maximum": 100000 }, "type": { "enum": ["second", "minute", "hour", "day", "week", "month", "year"] } } };
|
|
@@ -338,12 +338,233 @@ else {
|
|
|
338
338
|
errors++;
|
|
339
339
|
} validate23.errors = vErrors; return errors === 0; }
|
|
340
340
|
validate23.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
341
|
-
const schema45 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://baron.dev/kline-scene/
|
|
342
|
-
const
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
341
|
+
const schema45 = { "$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" } } };
|
|
342
|
+
const pattern4 = new RegExp("^[A-Z][A-Z0-9_]*$", "u");
|
|
343
|
+
function validate25(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 = validate25.evaluated; if (evaluated0.dynamicProps) {
|
|
344
|
+
evaluated0.props = undefined;
|
|
345
|
+
} if (evaluated0.dynamicItems) {
|
|
346
|
+
evaluated0.items = undefined;
|
|
347
|
+
} if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
348
|
+
if (data.timestamp === undefined) {
|
|
349
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "timestamp" }, message: "must have required property '" + "timestamp" + "'" };
|
|
350
|
+
if (vErrors === null) {
|
|
351
|
+
vErrors = [err0];
|
|
352
|
+
}
|
|
353
|
+
else {
|
|
354
|
+
vErrors.push(err0);
|
|
355
|
+
}
|
|
356
|
+
errors++;
|
|
357
|
+
}
|
|
358
|
+
if (data.barEnd === undefined) {
|
|
359
|
+
const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "barEnd" }, message: "must have required property '" + "barEnd" + "'" };
|
|
360
|
+
if (vErrors === null) {
|
|
361
|
+
vErrors = [err1];
|
|
362
|
+
}
|
|
363
|
+
else {
|
|
364
|
+
vErrors.push(err1);
|
|
365
|
+
}
|
|
366
|
+
errors++;
|
|
367
|
+
}
|
|
368
|
+
if (data.classification === undefined) {
|
|
369
|
+
const err2 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "classification" }, message: "must have required property '" + "classification" + "'" };
|
|
370
|
+
if (vErrors === null) {
|
|
371
|
+
vErrors = [err2];
|
|
372
|
+
}
|
|
373
|
+
else {
|
|
374
|
+
vErrors.push(err2);
|
|
375
|
+
}
|
|
376
|
+
errors++;
|
|
377
|
+
}
|
|
378
|
+
if (data.reasonCode === undefined) {
|
|
379
|
+
const err3 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "reasonCode" }, message: "must have required property '" + "reasonCode" + "'" };
|
|
380
|
+
if (vErrors === null) {
|
|
381
|
+
vErrors = [err3];
|
|
382
|
+
}
|
|
383
|
+
else {
|
|
384
|
+
vErrors.push(err3);
|
|
385
|
+
}
|
|
386
|
+
errors++;
|
|
387
|
+
}
|
|
388
|
+
if (data.retryable === undefined) {
|
|
389
|
+
const err4 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "retryable" }, message: "must have required property '" + "retryable" + "'" };
|
|
390
|
+
if (vErrors === null) {
|
|
391
|
+
vErrors = [err4];
|
|
392
|
+
}
|
|
393
|
+
else {
|
|
394
|
+
vErrors.push(err4);
|
|
395
|
+
}
|
|
396
|
+
errors++;
|
|
397
|
+
}
|
|
398
|
+
for (const key0 in data) {
|
|
399
|
+
if (!(((((key0 === "timestamp") || (key0 === "barEnd")) || (key0 === "classification")) || (key0 === "reasonCode")) || (key0 === "retryable"))) {
|
|
400
|
+
const err5 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
401
|
+
if (vErrors === null) {
|
|
402
|
+
vErrors = [err5];
|
|
403
|
+
}
|
|
404
|
+
else {
|
|
405
|
+
vErrors.push(err5);
|
|
406
|
+
}
|
|
407
|
+
errors++;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
if (data.timestamp !== undefined) {
|
|
411
|
+
let data0 = data.timestamp;
|
|
412
|
+
if (!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))) {
|
|
413
|
+
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" };
|
|
414
|
+
if (vErrors === null) {
|
|
415
|
+
vErrors = [err6];
|
|
416
|
+
}
|
|
417
|
+
else {
|
|
418
|
+
vErrors.push(err6);
|
|
419
|
+
}
|
|
420
|
+
errors++;
|
|
421
|
+
}
|
|
422
|
+
if ((typeof data0 == "number") && (isFinite(data0))) {
|
|
423
|
+
if (data0 > 9007199254740991 || isNaN(data0)) {
|
|
424
|
+
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" };
|
|
425
|
+
if (vErrors === null) {
|
|
426
|
+
vErrors = [err7];
|
|
427
|
+
}
|
|
428
|
+
else {
|
|
429
|
+
vErrors.push(err7);
|
|
430
|
+
}
|
|
431
|
+
errors++;
|
|
432
|
+
}
|
|
433
|
+
if (data0 < -9007199254740991 || isNaN(data0)) {
|
|
434
|
+
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" };
|
|
435
|
+
if (vErrors === null) {
|
|
436
|
+
vErrors = [err8];
|
|
437
|
+
}
|
|
438
|
+
else {
|
|
439
|
+
vErrors.push(err8);
|
|
440
|
+
}
|
|
441
|
+
errors++;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
if (data.barEnd !== undefined) {
|
|
446
|
+
let data1 = data.barEnd;
|
|
447
|
+
if (!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))) {
|
|
448
|
+
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" };
|
|
449
|
+
if (vErrors === null) {
|
|
450
|
+
vErrors = [err9];
|
|
451
|
+
}
|
|
452
|
+
else {
|
|
453
|
+
vErrors.push(err9);
|
|
454
|
+
}
|
|
455
|
+
errors++;
|
|
456
|
+
}
|
|
457
|
+
if ((typeof data1 == "number") && (isFinite(data1))) {
|
|
458
|
+
if (data1 > 9007199254740991 || isNaN(data1)) {
|
|
459
|
+
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" };
|
|
460
|
+
if (vErrors === null) {
|
|
461
|
+
vErrors = [err10];
|
|
462
|
+
}
|
|
463
|
+
else {
|
|
464
|
+
vErrors.push(err10);
|
|
465
|
+
}
|
|
466
|
+
errors++;
|
|
467
|
+
}
|
|
468
|
+
if (data1 < -9007199254740991 || isNaN(data1)) {
|
|
469
|
+
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" };
|
|
470
|
+
if (vErrors === null) {
|
|
471
|
+
vErrors = [err11];
|
|
472
|
+
}
|
|
473
|
+
else {
|
|
474
|
+
vErrors.push(err11);
|
|
475
|
+
}
|
|
476
|
+
errors++;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
if (data.classification !== undefined) {
|
|
481
|
+
let data2 = data.classification;
|
|
482
|
+
if (!((((data2 === "INSTRUMENT_NOT_TRADABLE") || (data2 === "SOURCE_ERROR")) || (data2 === "NO_TRADE")) || (data2 === "UNKNOWN_MISSING"))) {
|
|
483
|
+
const err12 = { instancePath: instancePath + "/classification", schemaPath: "#/properties/classification/enum", keyword: "enum", params: { allowedValues: schema45.properties.classification.enum }, message: "must be equal to one of the allowed values" };
|
|
484
|
+
if (vErrors === null) {
|
|
485
|
+
vErrors = [err12];
|
|
486
|
+
}
|
|
487
|
+
else {
|
|
488
|
+
vErrors.push(err12);
|
|
489
|
+
}
|
|
490
|
+
errors++;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
if (data.reasonCode !== undefined) {
|
|
494
|
+
let data3 = data.reasonCode;
|
|
495
|
+
if (typeof data3 === "string") {
|
|
496
|
+
if (func2(data3) > 128) {
|
|
497
|
+
const err13 = { instancePath: instancePath + "/reasonCode", schemaPath: "#/properties/reasonCode/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
|
|
498
|
+
if (vErrors === null) {
|
|
499
|
+
vErrors = [err13];
|
|
500
|
+
}
|
|
501
|
+
else {
|
|
502
|
+
vErrors.push(err13);
|
|
503
|
+
}
|
|
504
|
+
errors++;
|
|
505
|
+
}
|
|
506
|
+
if (func2(data3) < 1) {
|
|
507
|
+
const err14 = { instancePath: instancePath + "/reasonCode", schemaPath: "#/properties/reasonCode/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
508
|
+
if (vErrors === null) {
|
|
509
|
+
vErrors = [err14];
|
|
510
|
+
}
|
|
511
|
+
else {
|
|
512
|
+
vErrors.push(err14);
|
|
513
|
+
}
|
|
514
|
+
errors++;
|
|
515
|
+
}
|
|
516
|
+
if (!pattern4.test(data3)) {
|
|
517
|
+
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_]*$" + "\"" };
|
|
518
|
+
if (vErrors === null) {
|
|
519
|
+
vErrors = [err15];
|
|
520
|
+
}
|
|
521
|
+
else {
|
|
522
|
+
vErrors.push(err15);
|
|
523
|
+
}
|
|
524
|
+
errors++;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
else {
|
|
528
|
+
const err16 = { instancePath: instancePath + "/reasonCode", schemaPath: "#/properties/reasonCode/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
529
|
+
if (vErrors === null) {
|
|
530
|
+
vErrors = [err16];
|
|
531
|
+
}
|
|
532
|
+
else {
|
|
533
|
+
vErrors.push(err16);
|
|
534
|
+
}
|
|
535
|
+
errors++;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
if (data.retryable !== undefined) {
|
|
539
|
+
if (typeof data.retryable !== "boolean") {
|
|
540
|
+
const err17 = { instancePath: instancePath + "/retryable", schemaPath: "#/properties/retryable/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
541
|
+
if (vErrors === null) {
|
|
542
|
+
vErrors = [err17];
|
|
543
|
+
}
|
|
544
|
+
else {
|
|
545
|
+
vErrors.push(err17);
|
|
546
|
+
}
|
|
547
|
+
errors++;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
else {
|
|
552
|
+
const err18 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
553
|
+
if (vErrors === null) {
|
|
554
|
+
vErrors = [err18];
|
|
555
|
+
}
|
|
556
|
+
else {
|
|
557
|
+
vErrors.push(err18);
|
|
558
|
+
}
|
|
559
|
+
errors++;
|
|
560
|
+
} validate25.errors = vErrors; return errors === 0; }
|
|
561
|
+
validate25.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
562
|
+
const schema48 = { "$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"] } } };
|
|
563
|
+
const schema49 = { "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*\\)$" };
|
|
564
|
+
const pattern5 = new RegExp("^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$", "u");
|
|
565
|
+
const pattern6 = new RegExp("^[A-Za-z_+-]+(?:/[A-Za-z0-9_+-]+)*$", "u");
|
|
566
|
+
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");
|
|
567
|
+
function validate27(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 = validate27.evaluated; if (evaluated0.dynamicProps) {
|
|
347
568
|
evaluated0.props = undefined;
|
|
348
569
|
} if (evaluated0.dynamicItems) {
|
|
349
570
|
evaluated0.items = undefined;
|
|
@@ -449,7 +670,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
449
670
|
errors++;
|
|
450
671
|
}
|
|
451
672
|
for (const key0 in data) {
|
|
452
|
-
if (!(func1.call(
|
|
673
|
+
if (!(func1.call(schema48.properties, key0))) {
|
|
453
674
|
const err10 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
454
675
|
if (vErrors === null) {
|
|
455
676
|
vErrors = [err10];
|
|
@@ -483,7 +704,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
483
704
|
}
|
|
484
705
|
errors++;
|
|
485
706
|
}
|
|
486
|
-
if (!
|
|
707
|
+
if (!pattern5.test(data0)) {
|
|
487
708
|
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})*$" + "\"" };
|
|
488
709
|
if (vErrors === null) {
|
|
489
710
|
vErrors = [err13];
|
|
@@ -528,7 +749,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
528
749
|
}
|
|
529
750
|
errors++;
|
|
530
751
|
}
|
|
531
|
-
if (!
|
|
752
|
+
if (!pattern6.test(data1)) {
|
|
532
753
|
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_+-]+)*$" + "\"" };
|
|
533
754
|
if (vErrors === null) {
|
|
534
755
|
vErrors = [err17];
|
|
@@ -608,7 +829,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
608
829
|
if (data2.backgroundColor !== undefined) {
|
|
609
830
|
let data3 = data2.backgroundColor;
|
|
610
831
|
if (typeof data3 === "string") {
|
|
611
|
-
if (!
|
|
832
|
+
if (!pattern7.test(data3)) {
|
|
612
833
|
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*\\)$" + "\"" };
|
|
613
834
|
if (vErrors === null) {
|
|
614
835
|
vErrors = [err24];
|
|
@@ -633,7 +854,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
633
854
|
if (data2.textColor !== undefined) {
|
|
634
855
|
let data4 = data2.textColor;
|
|
635
856
|
if (typeof data4 === "string") {
|
|
636
|
-
if (!
|
|
857
|
+
if (!pattern7.test(data4)) {
|
|
637
858
|
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*\\)$" + "\"" };
|
|
638
859
|
if (vErrors === null) {
|
|
639
860
|
vErrors = [err26];
|
|
@@ -958,7 +1179,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
958
1179
|
errors++;
|
|
959
1180
|
}
|
|
960
1181
|
for (const key2 in data7) {
|
|
961
|
-
if (!(func1.call(
|
|
1182
|
+
if (!(func1.call(schema48.properties.candle.properties, key2))) {
|
|
962
1183
|
const err51 = { instancePath: instancePath + "/candle", schemaPath: "#/properties/candle/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
|
|
963
1184
|
if (vErrors === null) {
|
|
964
1185
|
vErrors = [err51];
|
|
@@ -972,7 +1193,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
972
1193
|
if (data7.type !== undefined) {
|
|
973
1194
|
let data9 = data7.type;
|
|
974
1195
|
if (!((((((data9 === "candle_solid") || (data9 === "candle_stroke")) || (data9 === "candle_up_stroke")) || (data9 === "candle_down_stroke")) || (data9 === "ohlc")) || (data9 === "area"))) {
|
|
975
|
-
const err52 = { instancePath: instancePath + "/candle/type", schemaPath: "#/properties/candle/properties/type/enum", keyword: "enum", params: { allowedValues:
|
|
1196
|
+
const err52 = { instancePath: instancePath + "/candle/type", schemaPath: "#/properties/candle/properties/type/enum", keyword: "enum", params: { allowedValues: schema48.properties.candle.properties.type.enum }, message: "must be equal to one of the allowed values" };
|
|
976
1197
|
if (vErrors === null) {
|
|
977
1198
|
vErrors = [err52];
|
|
978
1199
|
}
|
|
@@ -1181,7 +1402,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1181
1402
|
if (data7.upColor !== undefined) {
|
|
1182
1403
|
let data18 = data7.upColor;
|
|
1183
1404
|
if (typeof data18 === "string") {
|
|
1184
|
-
if (!
|
|
1405
|
+
if (!pattern7.test(data18)) {
|
|
1185
1406
|
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*\\)$" + "\"" };
|
|
1186
1407
|
if (vErrors === null) {
|
|
1187
1408
|
vErrors = [err70];
|
|
@@ -1206,7 +1427,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1206
1427
|
if (data7.downColor !== undefined) {
|
|
1207
1428
|
let data19 = data7.downColor;
|
|
1208
1429
|
if (typeof data19 === "string") {
|
|
1209
|
-
if (!
|
|
1430
|
+
if (!pattern7.test(data19)) {
|
|
1210
1431
|
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*\\)$" + "\"" };
|
|
1211
1432
|
if (vErrors === null) {
|
|
1212
1433
|
vErrors = [err72];
|
|
@@ -1231,7 +1452,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1231
1452
|
if (data7.noChangeColor !== undefined) {
|
|
1232
1453
|
let data20 = data7.noChangeColor;
|
|
1233
1454
|
if (typeof data20 === "string") {
|
|
1234
|
-
if (!
|
|
1455
|
+
if (!pattern7.test(data20)) {
|
|
1235
1456
|
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*\\)$" + "\"" };
|
|
1236
1457
|
if (vErrors === null) {
|
|
1237
1458
|
vErrors = [err74];
|
|
@@ -1256,7 +1477,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1256
1477
|
if (data7.upBorderColor !== undefined) {
|
|
1257
1478
|
let data21 = data7.upBorderColor;
|
|
1258
1479
|
if (typeof data21 === "string") {
|
|
1259
|
-
if (!
|
|
1480
|
+
if (!pattern7.test(data21)) {
|
|
1260
1481
|
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*\\)$" + "\"" };
|
|
1261
1482
|
if (vErrors === null) {
|
|
1262
1483
|
vErrors = [err76];
|
|
@@ -1281,7 +1502,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1281
1502
|
if (data7.downBorderColor !== undefined) {
|
|
1282
1503
|
let data22 = data7.downBorderColor;
|
|
1283
1504
|
if (typeof data22 === "string") {
|
|
1284
|
-
if (!
|
|
1505
|
+
if (!pattern7.test(data22)) {
|
|
1285
1506
|
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*\\)$" + "\"" };
|
|
1286
1507
|
if (vErrors === null) {
|
|
1287
1508
|
vErrors = [err78];
|
|
@@ -1306,7 +1527,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1306
1527
|
if (data7.noChangeBorderColor !== undefined) {
|
|
1307
1528
|
let data23 = data7.noChangeBorderColor;
|
|
1308
1529
|
if (typeof data23 === "string") {
|
|
1309
|
-
if (!
|
|
1530
|
+
if (!pattern7.test(data23)) {
|
|
1310
1531
|
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*\\)$" + "\"" };
|
|
1311
1532
|
if (vErrors === null) {
|
|
1312
1533
|
vErrors = [err80];
|
|
@@ -1331,7 +1552,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1331
1552
|
if (data7.upWickColor !== undefined) {
|
|
1332
1553
|
let data24 = data7.upWickColor;
|
|
1333
1554
|
if (typeof data24 === "string") {
|
|
1334
|
-
if (!
|
|
1555
|
+
if (!pattern7.test(data24)) {
|
|
1335
1556
|
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*\\)$" + "\"" };
|
|
1336
1557
|
if (vErrors === null) {
|
|
1337
1558
|
vErrors = [err82];
|
|
@@ -1356,7 +1577,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1356
1577
|
if (data7.downWickColor !== undefined) {
|
|
1357
1578
|
let data25 = data7.downWickColor;
|
|
1358
1579
|
if (typeof data25 === "string") {
|
|
1359
|
-
if (!
|
|
1580
|
+
if (!pattern7.test(data25)) {
|
|
1360
1581
|
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*\\)$" + "\"" };
|
|
1361
1582
|
if (vErrors === null) {
|
|
1362
1583
|
vErrors = [err84];
|
|
@@ -1381,7 +1602,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1381
1602
|
if (data7.noChangeWickColor !== undefined) {
|
|
1382
1603
|
let data26 = data7.noChangeWickColor;
|
|
1383
1604
|
if (typeof data26 === "string") {
|
|
1384
|
-
if (!
|
|
1605
|
+
if (!pattern7.test(data26)) {
|
|
1385
1606
|
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*\\)$" + "\"" };
|
|
1386
1607
|
if (vErrors === null) {
|
|
1387
1608
|
vErrors = [err86];
|
|
@@ -1453,7 +1674,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1453
1674
|
if (data27.horizontalColor !== undefined) {
|
|
1454
1675
|
let data28 = data27.horizontalColor;
|
|
1455
1676
|
if (typeof data28 === "string") {
|
|
1456
|
-
if (!
|
|
1677
|
+
if (!pattern7.test(data28)) {
|
|
1457
1678
|
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*\\)$" + "\"" };
|
|
1458
1679
|
if (vErrors === null) {
|
|
1459
1680
|
vErrors = [err92];
|
|
@@ -1478,7 +1699,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1478
1699
|
if (data27.verticalColor !== undefined) {
|
|
1479
1700
|
let data29 = data27.verticalColor;
|
|
1480
1701
|
if (typeof data29 === "string") {
|
|
1481
|
-
if (!
|
|
1702
|
+
if (!pattern7.test(data29)) {
|
|
1482
1703
|
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*\\)$" + "\"" };
|
|
1483
1704
|
if (vErrors === null) {
|
|
1484
1705
|
vErrors = [err94];
|
|
@@ -1515,7 +1736,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1515
1736
|
if (data.thousandsSeparator !== undefined) {
|
|
1516
1737
|
let data30 = data.thousandsSeparator;
|
|
1517
1738
|
if (!((((data30 === "") || (data30 === ",")) || (data30 === " ")) || (data30 === "_"))) {
|
|
1518
|
-
const err97 = { instancePath: instancePath + "/thousandsSeparator", schemaPath: "#/properties/thousandsSeparator/enum", keyword: "enum", params: { allowedValues:
|
|
1739
|
+
const err97 = { instancePath: instancePath + "/thousandsSeparator", schemaPath: "#/properties/thousandsSeparator/enum", keyword: "enum", params: { allowedValues: schema48.properties.thousandsSeparator.enum }, message: "must be equal to one of the allowed values" };
|
|
1519
1740
|
if (vErrors === null) {
|
|
1520
1741
|
vErrors = [err97];
|
|
1521
1742
|
}
|
|
@@ -1622,7 +1843,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1622
1843
|
if (data.zoomAnchor !== undefined) {
|
|
1623
1844
|
let data34 = data.zoomAnchor;
|
|
1624
1845
|
if (!((data34 === "cursor") || (data34 === "right"))) {
|
|
1625
|
-
const err106 = { instancePath: instancePath + "/zoomAnchor", schemaPath: "#/properties/zoomAnchor/enum", keyword: "enum", params: { allowedValues:
|
|
1846
|
+
const err106 = { instancePath: instancePath + "/zoomAnchor", schemaPath: "#/properties/zoomAnchor/enum", keyword: "enum", params: { allowedValues: schema48.properties.zoomAnchor.enum }, message: "must be equal to one of the allowed values" };
|
|
1626
1847
|
if (vErrors === null) {
|
|
1627
1848
|
vErrors = [err106];
|
|
1628
1849
|
}
|
|
@@ -1635,7 +1856,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1635
1856
|
if (data.dateFormat !== undefined) {
|
|
1636
1857
|
let data35 = data.dateFormat;
|
|
1637
1858
|
if (!(((data35 === "yyyy-MM-dd") || (data35 === "yyyy-MM-dd HH:mm")) || (data35 === "yyyy-MM-dd HH:mm:ss"))) {
|
|
1638
|
-
const err107 = { instancePath: instancePath + "/dateFormat", schemaPath: "#/properties/dateFormat/enum", keyword: "enum", params: { allowedValues:
|
|
1859
|
+
const err107 = { instancePath: instancePath + "/dateFormat", schemaPath: "#/properties/dateFormat/enum", keyword: "enum", params: { allowedValues: schema48.properties.dateFormat.enum }, message: "must be equal to one of the allowed values" };
|
|
1639
1860
|
if (vErrors === null) {
|
|
1640
1861
|
vErrors = [err107];
|
|
1641
1862
|
}
|
|
@@ -1648,7 +1869,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1648
1869
|
if (data.largeNumberFormat !== undefined) {
|
|
1649
1870
|
let data36 = data.largeNumberFormat;
|
|
1650
1871
|
if (!(((data36 === "western") || (data36 === "chinese")) || (data36 === "plain"))) {
|
|
1651
|
-
const err108 = { instancePath: instancePath + "/largeNumberFormat", schemaPath: "#/properties/largeNumberFormat/enum", keyword: "enum", params: { allowedValues:
|
|
1872
|
+
const err108 = { instancePath: instancePath + "/largeNumberFormat", schemaPath: "#/properties/largeNumberFormat/enum", keyword: "enum", params: { allowedValues: schema48.properties.largeNumberFormat.enum }, message: "must be equal to one of the allowed values" };
|
|
1652
1873
|
if (vErrors === null) {
|
|
1653
1874
|
vErrors = [err108];
|
|
1654
1875
|
}
|
|
@@ -1668,13 +1889,13 @@ else {
|
|
|
1668
1889
|
vErrors.push(err109);
|
|
1669
1890
|
}
|
|
1670
1891
|
errors++;
|
|
1671
|
-
}
|
|
1672
|
-
|
|
1673
|
-
const
|
|
1674
|
-
const
|
|
1675
|
-
const
|
|
1676
|
-
const
|
|
1677
|
-
function
|
|
1892
|
+
} validate27.errors = vErrors; return errors === 0; }
|
|
1893
|
+
validate27.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
1894
|
+
const schema62 = { "$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 } } } } };
|
|
1895
|
+
const schema63 = { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" };
|
|
1896
|
+
const pattern20 = new RegExp("^[A-Za-z][A-Za-z0-9._:-]*$", "u");
|
|
1897
|
+
const schema64 = { "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 } } };
|
|
1898
|
+
function validate30(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate30.evaluated; if (evaluated0.dynamicProps) {
|
|
1678
1899
|
evaluated0.props = undefined;
|
|
1679
1900
|
} if (evaluated0.dynamicItems) {
|
|
1680
1901
|
evaluated0.items = undefined;
|
|
@@ -1760,7 +1981,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1760
1981
|
errors++;
|
|
1761
1982
|
}
|
|
1762
1983
|
for (const key0 in data) {
|
|
1763
|
-
if (!(func1.call(
|
|
1984
|
+
if (!(func1.call(schema64.properties, key0))) {
|
|
1764
1985
|
const err8 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
1765
1986
|
if (vErrors === null) {
|
|
1766
1987
|
vErrors = [err8];
|
|
@@ -1794,7 +2015,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1794
2015
|
}
|
|
1795
2016
|
errors++;
|
|
1796
2017
|
}
|
|
1797
|
-
if (!
|
|
2018
|
+
if (!pattern20.test(data0)) {
|
|
1798
2019
|
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._:-]*$" + "\"" };
|
|
1799
2020
|
if (vErrors === null) {
|
|
1800
2021
|
vErrors = [err11];
|
|
@@ -1819,7 +2040,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1819
2040
|
if (data.role !== undefined) {
|
|
1820
2041
|
let data1 = data.role;
|
|
1821
2042
|
if (!((data1 === "primary") || (data1 === "additional"))) {
|
|
1822
|
-
const err13 = { instancePath: instancePath + "/role", schemaPath: "#/properties/role/enum", keyword: "enum", params: { allowedValues:
|
|
2043
|
+
const err13 = { instancePath: instancePath + "/role", schemaPath: "#/properties/role/enum", keyword: "enum", params: { allowedValues: schema64.properties.role.enum }, message: "must be equal to one of the allowed values" };
|
|
1823
2044
|
if (vErrors === null) {
|
|
1824
2045
|
vErrors = [err13];
|
|
1825
2046
|
}
|
|
@@ -1832,7 +2053,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1832
2053
|
if (data.scale !== undefined) {
|
|
1833
2054
|
let data2 = data.scale;
|
|
1834
2055
|
if (!((data2 === "linear") || (data2 === "logarithmic"))) {
|
|
1835
|
-
const err14 = { instancePath: instancePath + "/scale", schemaPath: "#/properties/scale/enum", keyword: "enum", params: { allowedValues:
|
|
2056
|
+
const err14 = { instancePath: instancePath + "/scale", schemaPath: "#/properties/scale/enum", keyword: "enum", params: { allowedValues: schema64.properties.scale.enum }, message: "must be equal to one of the allowed values" };
|
|
1836
2057
|
if (vErrors === null) {
|
|
1837
2058
|
vErrors = [err14];
|
|
1838
2059
|
}
|
|
@@ -1845,7 +2066,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1845
2066
|
if (data.position !== undefined) {
|
|
1846
2067
|
let data3 = data.position;
|
|
1847
2068
|
if (!((data3 === "left") || (data3 === "right"))) {
|
|
1848
|
-
const err15 = { instancePath: instancePath + "/position", schemaPath: "#/properties/position/enum", keyword: "enum", params: { allowedValues:
|
|
2069
|
+
const err15 = { instancePath: instancePath + "/position", schemaPath: "#/properties/position/enum", keyword: "enum", params: { allowedValues: schema64.properties.position.enum }, message: "must be equal to one of the allowed values" };
|
|
1849
2070
|
if (vErrors === null) {
|
|
1850
2071
|
vErrors = [err15];
|
|
1851
2072
|
}
|
|
@@ -1971,11 +2192,11 @@ else {
|
|
|
1971
2192
|
vErrors.push(err25);
|
|
1972
2193
|
}
|
|
1973
2194
|
errors++;
|
|
1974
|
-
}
|
|
1975
|
-
|
|
1976
|
-
const
|
|
1977
|
-
const
|
|
1978
|
-
function
|
|
2195
|
+
} validate30.errors = vErrors; return errors === 0; }
|
|
2196
|
+
validate30.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
2197
|
+
const schema66 = { "$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 } } } } } } } };
|
|
2198
|
+
const schema70 = { "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"] } } };
|
|
2199
|
+
function validate33(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate33.evaluated; if (evaluated0.dynamicProps) {
|
|
1979
2200
|
evaluated0.props = undefined;
|
|
1980
2201
|
} if (evaluated0.dynamicItems) {
|
|
1981
2202
|
evaluated0.items = undefined;
|
|
@@ -2025,7 +2246,7 @@ function validate31(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2025
2246
|
if (data.color !== undefined) {
|
|
2026
2247
|
let data0 = data.color;
|
|
2027
2248
|
if (typeof data0 === "string") {
|
|
2028
|
-
if (!
|
|
2249
|
+
if (!pattern7.test(data0)) {
|
|
2029
2250
|
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*\\)$" + "\"" };
|
|
2030
2251
|
if (vErrors === null) {
|
|
2031
2252
|
vErrors = [err4];
|
|
@@ -2085,7 +2306,7 @@ function validate31(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2085
2306
|
if (data.style !== undefined) {
|
|
2086
2307
|
let data2 = data.style;
|
|
2087
2308
|
if (!(((data2 === "solid") || (data2 === "dashed")) || (data2 === "dotted"))) {
|
|
2088
|
-
const err9 = { instancePath: instancePath + "/style", schemaPath: "#/properties/style/enum", keyword: "enum", params: { allowedValues:
|
|
2309
|
+
const err9 = { instancePath: instancePath + "/style", schemaPath: "#/properties/style/enum", keyword: "enum", params: { allowedValues: schema70.properties.style.enum }, message: "must be equal to one of the allowed values" };
|
|
2089
2310
|
if (vErrors === null) {
|
|
2090
2311
|
vErrors = [err9];
|
|
2091
2312
|
}
|
|
@@ -2105,9 +2326,9 @@ else {
|
|
|
2105
2326
|
vErrors.push(err10);
|
|
2106
2327
|
}
|
|
2107
2328
|
errors++;
|
|
2108
|
-
}
|
|
2109
|
-
|
|
2110
|
-
function
|
|
2329
|
+
} validate33.errors = vErrors; return errors === 0; }
|
|
2330
|
+
validate33.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
2331
|
+
function validate32(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://baron.dev/kline-scene/indicator.schema.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate32.evaluated; if (evaluated0.dynamicProps) {
|
|
2111
2332
|
evaluated0.props = undefined;
|
|
2112
2333
|
} if (evaluated0.dynamicItems) {
|
|
2113
2334
|
evaluated0.items = undefined;
|
|
@@ -2203,7 +2424,7 @@ function validate30(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2203
2424
|
errors++;
|
|
2204
2425
|
}
|
|
2205
2426
|
for (const key0 in data) {
|
|
2206
|
-
if (!(func1.call(
|
|
2427
|
+
if (!(func1.call(schema66.properties, key0))) {
|
|
2207
2428
|
const err9 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
2208
2429
|
if (vErrors === null) {
|
|
2209
2430
|
vErrors = [err9];
|
|
@@ -2237,7 +2458,7 @@ function validate30(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2237
2458
|
}
|
|
2238
2459
|
errors++;
|
|
2239
2460
|
}
|
|
2240
|
-
if (!
|
|
2461
|
+
if (!pattern20.test(data0)) {
|
|
2241
2462
|
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._:-]*$" + "\"" };
|
|
2242
2463
|
if (vErrors === null) {
|
|
2243
2464
|
vErrors = [err12];
|
|
@@ -2262,7 +2483,7 @@ function validate30(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2262
2483
|
if (data.name !== undefined) {
|
|
2263
2484
|
let data1 = data.name;
|
|
2264
2485
|
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"))) {
|
|
2265
|
-
const err14 = { instancePath: instancePath + "/name", schemaPath: "#/properties/name/enum", keyword: "enum", params: { allowedValues:
|
|
2486
|
+
const err14 = { instancePath: instancePath + "/name", schemaPath: "#/properties/name/enum", keyword: "enum", params: { allowedValues: schema66.properties.name.enum }, message: "must be equal to one of the allowed values" };
|
|
2266
2487
|
if (vErrors === null) {
|
|
2267
2488
|
vErrors = [err14];
|
|
2268
2489
|
}
|
|
@@ -2295,7 +2516,7 @@ function validate30(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2295
2516
|
}
|
|
2296
2517
|
errors++;
|
|
2297
2518
|
}
|
|
2298
|
-
if (!
|
|
2519
|
+
if (!pattern20.test(data2)) {
|
|
2299
2520
|
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._:-]*$" + "\"" };
|
|
2300
2521
|
if (vErrors === null) {
|
|
2301
2522
|
vErrors = [err17];
|
|
@@ -2340,7 +2561,7 @@ function validate30(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2340
2561
|
}
|
|
2341
2562
|
errors++;
|
|
2342
2563
|
}
|
|
2343
|
-
if (!
|
|
2564
|
+
if (!pattern20.test(data3)) {
|
|
2344
2565
|
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._:-]*$" + "\"" };
|
|
2345
2566
|
if (vErrors === null) {
|
|
2346
2567
|
vErrors = [err21];
|
|
@@ -2565,8 +2786,8 @@ function validate30(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2565
2786
|
}
|
|
2566
2787
|
const len1 = data10.length;
|
|
2567
2788
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
2568
|
-
if (!(
|
|
2569
|
-
vErrors = vErrors === null ?
|
|
2789
|
+
if (!(validate33(data10[i1], { instancePath: instancePath + "/styles/lines/" + i1, parentData: data10, parentDataProperty: i1, rootData, dynamicAnchors }))) {
|
|
2790
|
+
vErrors = vErrors === null ? validate33.errors : vErrors.concat(validate33.errors);
|
|
2570
2791
|
errors = vErrors.length;
|
|
2571
2792
|
}
|
|
2572
2793
|
}
|
|
@@ -2644,7 +2865,7 @@ function validate30(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2644
2865
|
if (data13.upColor !== undefined) {
|
|
2645
2866
|
let data14 = data13.upColor;
|
|
2646
2867
|
if (typeof data14 === "string") {
|
|
2647
|
-
if (!
|
|
2868
|
+
if (!pattern7.test(data14)) {
|
|
2648
2869
|
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*\\)$" + "\"" };
|
|
2649
2870
|
if (vErrors === null) {
|
|
2650
2871
|
vErrors = [err46];
|
|
@@ -2669,7 +2890,7 @@ function validate30(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2669
2890
|
if (data13.downColor !== undefined) {
|
|
2670
2891
|
let data15 = data13.downColor;
|
|
2671
2892
|
if (typeof data15 === "string") {
|
|
2672
|
-
if (!
|
|
2893
|
+
if (!pattern7.test(data15)) {
|
|
2673
2894
|
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*\\)$" + "\"" };
|
|
2674
2895
|
if (vErrors === null) {
|
|
2675
2896
|
vErrors = [err48];
|
|
@@ -2694,7 +2915,7 @@ function validate30(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2694
2915
|
if (data13.noChangeColor !== undefined) {
|
|
2695
2916
|
let data16 = data13.noChangeColor;
|
|
2696
2917
|
if (typeof data16 === "string") {
|
|
2697
|
-
if (!
|
|
2918
|
+
if (!pattern7.test(data16)) {
|
|
2698
2919
|
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*\\)$" + "\"" };
|
|
2699
2920
|
if (vErrors === null) {
|
|
2700
2921
|
vErrors = [err50];
|
|
@@ -2792,7 +3013,7 @@ function validate30(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2792
3013
|
if (data18.color !== undefined) {
|
|
2793
3014
|
let data19 = data18.color;
|
|
2794
3015
|
if (typeof data19 === "string") {
|
|
2795
|
-
if (!
|
|
3016
|
+
if (!pattern7.test(data19)) {
|
|
2796
3017
|
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*\\)$" + "\"" };
|
|
2797
3018
|
if (vErrors === null) {
|
|
2798
3019
|
vErrors = [err58];
|
|
@@ -2895,9 +3116,9 @@ else {
|
|
|
2895
3116
|
vErrors.push(err66);
|
|
2896
3117
|
}
|
|
2897
3118
|
errors++;
|
|
2898
|
-
}
|
|
2899
|
-
|
|
2900
|
-
function
|
|
3119
|
+
} validate32.errors = vErrors; return errors === 0; }
|
|
3120
|
+
validate32.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3121
|
+
function validate29(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://baron.dev/kline-scene/pane.schema.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate29.evaluated; if (evaluated0.dynamicProps) {
|
|
2901
3122
|
evaluated0.props = undefined;
|
|
2902
3123
|
} if (evaluated0.dynamicItems) {
|
|
2903
3124
|
evaluated0.items = undefined;
|
|
@@ -3017,7 +3238,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3017
3238
|
}
|
|
3018
3239
|
errors++;
|
|
3019
3240
|
}
|
|
3020
|
-
if (!
|
|
3241
|
+
if (!pattern20.test(data0)) {
|
|
3021
3242
|
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._:-]*$" + "\"" };
|
|
3022
3243
|
if (vErrors === null) {
|
|
3023
3244
|
vErrors = [err11];
|
|
@@ -3042,7 +3263,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3042
3263
|
if (data.kind !== undefined) {
|
|
3043
3264
|
let data1 = data.kind;
|
|
3044
3265
|
if (!((data1 === "candle") || (data1 === "indicator"))) {
|
|
3045
|
-
const err13 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues:
|
|
3266
|
+
const err13 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema62.properties.kind.enum }, message: "must be equal to one of the allowed values" };
|
|
3046
3267
|
if (vErrors === null) {
|
|
3047
3268
|
vErrors = [err13];
|
|
3048
3269
|
}
|
|
@@ -3160,7 +3381,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3160
3381
|
if (data.state !== undefined) {
|
|
3161
3382
|
let data5 = data.state;
|
|
3162
3383
|
if (!(((data5 === "normal") || (data5 === "maximize")) || (data5 === "minimize"))) {
|
|
3163
|
-
const err23 = { instancePath: instancePath + "/state", schemaPath: "#/properties/state/enum", keyword: "enum", params: { allowedValues:
|
|
3384
|
+
const err23 = { instancePath: instancePath + "/state", schemaPath: "#/properties/state/enum", keyword: "enum", params: { allowedValues: schema62.properties.state.enum }, message: "must be equal to one of the allowed values" };
|
|
3164
3385
|
if (vErrors === null) {
|
|
3165
3386
|
vErrors = [err23];
|
|
3166
3387
|
}
|
|
@@ -3195,8 +3416,8 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3195
3416
|
}
|
|
3196
3417
|
const len0 = data6.length;
|
|
3197
3418
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
3198
|
-
if (!(
|
|
3199
|
-
vErrors = vErrors === null ?
|
|
3419
|
+
if (!(validate30(data6[i0], { instancePath: instancePath + "/yAxes/" + i0, parentData: data6, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
3420
|
+
vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);
|
|
3200
3421
|
errors = vErrors.length;
|
|
3201
3422
|
}
|
|
3202
3423
|
}
|
|
@@ -3227,8 +3448,8 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3227
3448
|
}
|
|
3228
3449
|
const len1 = data8.length;
|
|
3229
3450
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
3230
|
-
if (!(
|
|
3231
|
-
vErrors = vErrors === null ?
|
|
3451
|
+
if (!(validate32(data8[i1], { instancePath: instancePath + "/indicators/" + i1, parentData: data8, parentDataProperty: i1, rootData, dynamicAnchors }))) {
|
|
3452
|
+
vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);
|
|
3232
3453
|
errors = vErrors.length;
|
|
3233
3454
|
}
|
|
3234
3455
|
}
|
|
@@ -3254,11 +3475,11 @@ else {
|
|
|
3254
3475
|
vErrors.push(err29);
|
|
3255
3476
|
}
|
|
3256
3477
|
errors++;
|
|
3257
|
-
}
|
|
3258
|
-
|
|
3259
|
-
const
|
|
3260
|
-
const
|
|
3261
|
-
function
|
|
3478
|
+
} validate29.errors = vErrors; return errors === 0; }
|
|
3479
|
+
validate29.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3480
|
+
const schema76 = { "$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" } } } } };
|
|
3481
|
+
const schema80 = { "type": "object", "additionalProperties": false, "required": ["timestamp"], "properties": { "timestamp": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" } } };
|
|
3482
|
+
function validate38(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate38.evaluated; if (evaluated0.dynamicProps) {
|
|
3262
3483
|
evaluated0.props = undefined;
|
|
3263
3484
|
} if (evaluated0.dynamicItems) {
|
|
3264
3485
|
evaluated0.items = undefined;
|
|
@@ -3330,10 +3551,10 @@ else {
|
|
|
3330
3551
|
vErrors.push(err5);
|
|
3331
3552
|
}
|
|
3332
3553
|
errors++;
|
|
3333
|
-
}
|
|
3334
|
-
|
|
3335
|
-
const
|
|
3336
|
-
function
|
|
3554
|
+
} validate38.errors = vErrors; return errors === 0; }
|
|
3555
|
+
validate38.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3556
|
+
const schema82 = { "type": "object", "additionalProperties": false, "required": ["value"], "properties": { "value": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" } } };
|
|
3557
|
+
function validate40(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate40.evaluated; if (evaluated0.dynamicProps) {
|
|
3337
3558
|
evaluated0.props = undefined;
|
|
3338
3559
|
} if (evaluated0.dynamicItems) {
|
|
3339
3560
|
evaluated0.items = undefined;
|
|
@@ -3405,10 +3626,10 @@ else {
|
|
|
3405
3626
|
vErrors.push(err5);
|
|
3406
3627
|
}
|
|
3407
3628
|
errors++;
|
|
3408
|
-
}
|
|
3409
|
-
|
|
3410
|
-
const
|
|
3411
|
-
function
|
|
3629
|
+
} validate40.errors = vErrors; return errors === 0; }
|
|
3630
|
+
validate40.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3631
|
+
const schema84 = { "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" } } };
|
|
3632
|
+
function validate42(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate42.evaluated; if (evaluated0.dynamicProps) {
|
|
3412
3633
|
evaluated0.props = undefined;
|
|
3413
3634
|
} if (evaluated0.dynamicItems) {
|
|
3414
3635
|
evaluated0.items = undefined;
|
|
@@ -3525,9 +3746,9 @@ else {
|
|
|
3525
3746
|
vErrors.push(err9);
|
|
3526
3747
|
}
|
|
3527
3748
|
errors++;
|
|
3528
|
-
}
|
|
3529
|
-
|
|
3530
|
-
function
|
|
3749
|
+
} validate42.errors = vErrors; return errors === 0; }
|
|
3750
|
+
validate42.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3751
|
+
function validate48(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate48.evaluated; if (evaluated0.dynamicProps) {
|
|
3531
3752
|
evaluated0.props = undefined;
|
|
3532
3753
|
} if (evaluated0.dynamicItems) {
|
|
3533
3754
|
evaluated0.items = undefined;
|
|
@@ -3577,7 +3798,7 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3577
3798
|
if (data.color !== undefined) {
|
|
3578
3799
|
let data0 = data.color;
|
|
3579
3800
|
if (typeof data0 === "string") {
|
|
3580
|
-
if (!
|
|
3801
|
+
if (!pattern7.test(data0)) {
|
|
3581
3802
|
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*\\)$" + "\"" };
|
|
3582
3803
|
if (vErrors === null) {
|
|
3583
3804
|
vErrors = [err4];
|
|
@@ -3637,7 +3858,7 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3637
3858
|
if (data.style !== undefined) {
|
|
3638
3859
|
let data2 = data.style;
|
|
3639
3860
|
if (!(((data2 === "solid") || (data2 === "dashed")) || (data2 === "dotted"))) {
|
|
3640
|
-
const err9 = { instancePath: instancePath + "/style", schemaPath: "#/properties/style/enum", keyword: "enum", params: { allowedValues:
|
|
3861
|
+
const err9 = { instancePath: instancePath + "/style", schemaPath: "#/properties/style/enum", keyword: "enum", params: { allowedValues: schema70.properties.style.enum }, message: "must be equal to one of the allowed values" };
|
|
3641
3862
|
if (vErrors === null) {
|
|
3642
3863
|
vErrors = [err9];
|
|
3643
3864
|
}
|
|
@@ -3657,10 +3878,10 @@ else {
|
|
|
3657
3878
|
vErrors.push(err10);
|
|
3658
3879
|
}
|
|
3659
3880
|
errors++;
|
|
3660
|
-
}
|
|
3661
|
-
|
|
3662
|
-
const
|
|
3663
|
-
function
|
|
3881
|
+
} validate48.errors = vErrors; return errors === 0; }
|
|
3882
|
+
validate48.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3883
|
+
const schema95 = { "type": "object", "additionalProperties": false, "required": ["color"], "properties": { "color": { "$ref": "#/$defs/rgbaColor" } } };
|
|
3884
|
+
function validate50(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate50.evaluated; if (evaluated0.dynamicProps) {
|
|
3664
3885
|
evaluated0.props = undefined;
|
|
3665
3886
|
} if (evaluated0.dynamicItems) {
|
|
3666
3887
|
evaluated0.items = undefined;
|
|
@@ -3690,7 +3911,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3690
3911
|
if (data.color !== undefined) {
|
|
3691
3912
|
let data0 = data.color;
|
|
3692
3913
|
if (typeof data0 === "string") {
|
|
3693
|
-
if (!
|
|
3914
|
+
if (!pattern7.test(data0)) {
|
|
3694
3915
|
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*\\)$" + "\"" };
|
|
3695
3916
|
if (vErrors === null) {
|
|
3696
3917
|
vErrors = [err2];
|
|
@@ -3722,10 +3943,10 @@ else {
|
|
|
3722
3943
|
vErrors.push(err4);
|
|
3723
3944
|
}
|
|
3724
3945
|
errors++;
|
|
3725
|
-
}
|
|
3726
|
-
|
|
3727
|
-
const
|
|
3728
|
-
function
|
|
3946
|
+
} validate50.errors = vErrors; return errors === 0; }
|
|
3947
|
+
validate50.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3948
|
+
const schema97 = { "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" } } };
|
|
3949
|
+
function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate52.evaluated; if (evaluated0.dynamicProps) {
|
|
3729
3950
|
evaluated0.props = undefined;
|
|
3730
3951
|
} if (evaluated0.dynamicItems) {
|
|
3731
3952
|
evaluated0.items = undefined;
|
|
@@ -3805,7 +4026,7 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3805
4026
|
if (data.color !== undefined) {
|
|
3806
4027
|
let data0 = data.color;
|
|
3807
4028
|
if (typeof data0 === "string") {
|
|
3808
|
-
if (!
|
|
4029
|
+
if (!pattern7.test(data0)) {
|
|
3809
4030
|
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*\\)$" + "\"" };
|
|
3810
4031
|
if (vErrors === null) {
|
|
3811
4032
|
vErrors = [err7];
|
|
@@ -3953,7 +4174,7 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3953
4174
|
}
|
|
3954
4175
|
const _errs13 = errors;
|
|
3955
4176
|
if (!((data3 === "normal") || (data3 === "bold"))) {
|
|
3956
|
-
const err19 = { instancePath: instancePath + "/weight", schemaPath: "#/properties/weight/oneOf/1/enum", keyword: "enum", params: { allowedValues:
|
|
4177
|
+
const err19 = { instancePath: instancePath + "/weight", schemaPath: "#/properties/weight/oneOf/1/enum", keyword: "enum", params: { allowedValues: schema97.properties.weight.oneOf[1].enum }, message: "must be equal to one of the allowed values" };
|
|
3957
4178
|
if (vErrors === null) {
|
|
3958
4179
|
vErrors = [err19];
|
|
3959
4180
|
}
|
|
@@ -3998,7 +4219,7 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3998
4219
|
if (data.backgroundColor !== undefined) {
|
|
3999
4220
|
let data4 = data.backgroundColor;
|
|
4000
4221
|
if (typeof data4 === "string") {
|
|
4001
|
-
if (!
|
|
4222
|
+
if (!pattern7.test(data4)) {
|
|
4002
4223
|
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*\\)$" + "\"" };
|
|
4003
4224
|
if (vErrors === null) {
|
|
4004
4225
|
vErrors = [err21];
|
|
@@ -4023,7 +4244,7 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4023
4244
|
if (data.borderColor !== undefined) {
|
|
4024
4245
|
let data5 = data.borderColor;
|
|
4025
4246
|
if (typeof data5 === "string") {
|
|
4026
|
-
if (!
|
|
4247
|
+
if (!pattern7.test(data5)) {
|
|
4027
4248
|
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*\\)$" + "\"" };
|
|
4028
4249
|
if (vErrors === null) {
|
|
4029
4250
|
vErrors = [err23];
|
|
@@ -4055,12 +4276,12 @@ else {
|
|
|
4055
4276
|
vErrors.push(err25);
|
|
4056
4277
|
}
|
|
4057
4278
|
errors++;
|
|
4058
|
-
}
|
|
4059
|
-
|
|
4060
|
-
const
|
|
4061
|
-
const
|
|
4062
|
-
const wrapper0 = { validate:
|
|
4063
|
-
function
|
|
4279
|
+
} validate52.errors = vErrors; return errors === 0; }
|
|
4280
|
+
validate52.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
4281
|
+
const schema101 = { "type": "object", "maxProperties": 1000, "additionalProperties": { "$ref": "#/$defs/jsonValue" } };
|
|
4282
|
+
const schema102 = { "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" } }] };
|
|
4283
|
+
const wrapper0 = { validate: validate55 };
|
|
4284
|
+
function validate55(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate55.evaluated; if (evaluated0.dynamicProps) {
|
|
4064
4285
|
evaluated0.props = undefined;
|
|
4065
4286
|
} if (evaluated0.dynamicItems) {
|
|
4066
4287
|
evaluated0.items = undefined;
|
|
@@ -4263,9 +4484,9 @@ else {
|
|
|
4263
4484
|
vErrors = null;
|
|
4264
4485
|
}
|
|
4265
4486
|
}
|
|
4266
|
-
}
|
|
4267
|
-
|
|
4268
|
-
function
|
|
4487
|
+
} validate55.errors = vErrors; evaluated0.props = props2; evaluated0.items = items1; return errors === 0; }
|
|
4488
|
+
validate55.evaluated = { "dynamicProps": true, "dynamicItems": true };
|
|
4489
|
+
function validate54(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate54.evaluated; if (evaluated0.dynamicProps) {
|
|
4269
4490
|
evaluated0.props = undefined;
|
|
4270
4491
|
} if (evaluated0.dynamicItems) {
|
|
4271
4492
|
evaluated0.items = undefined;
|
|
@@ -4281,8 +4502,8 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4281
4502
|
errors++;
|
|
4282
4503
|
}
|
|
4283
4504
|
for (const key0 in data) {
|
|
4284
|
-
if (!(
|
|
4285
|
-
vErrors = vErrors === null ?
|
|
4505
|
+
if (!(validate55(data[key0], { instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key0, rootData, dynamicAnchors }))) {
|
|
4506
|
+
vErrors = vErrors === null ? validate55.errors : vErrors.concat(validate55.errors);
|
|
4286
4507
|
errors = vErrors.length;
|
|
4287
4508
|
}
|
|
4288
4509
|
}
|
|
@@ -4296,9 +4517,9 @@ else {
|
|
|
4296
4517
|
vErrors.push(err1);
|
|
4297
4518
|
}
|
|
4298
4519
|
errors++;
|
|
4299
|
-
}
|
|
4300
|
-
|
|
4301
|
-
function
|
|
4520
|
+
} validate54.errors = vErrors; return errors === 0; }
|
|
4521
|
+
validate54.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
4522
|
+
function validate37(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://baron.dev/kline-scene/overlay.schema.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate37.evaluated; if (evaluated0.dynamicProps) {
|
|
4302
4523
|
evaluated0.props = undefined;
|
|
4303
4524
|
} if (evaluated0.dynamicItems) {
|
|
4304
4525
|
evaluated0.items = undefined;
|
|
@@ -4384,7 +4605,7 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4384
4605
|
errors++;
|
|
4385
4606
|
}
|
|
4386
4607
|
for (const key0 in data) {
|
|
4387
|
-
if (!(func1.call(
|
|
4608
|
+
if (!(func1.call(schema76.properties, key0))) {
|
|
4388
4609
|
const err8 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
4389
4610
|
if (vErrors === null) {
|
|
4390
4611
|
vErrors = [err8];
|
|
@@ -4418,7 +4639,7 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4418
4639
|
}
|
|
4419
4640
|
errors++;
|
|
4420
4641
|
}
|
|
4421
|
-
if (!
|
|
4642
|
+
if (!pattern20.test(data0)) {
|
|
4422
4643
|
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._:-]*$" + "\"" };
|
|
4423
4644
|
if (vErrors === null) {
|
|
4424
4645
|
vErrors = [err11];
|
|
@@ -4443,7 +4664,7 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4443
4664
|
if (data.type !== undefined) {
|
|
4444
4665
|
let data1 = data.type;
|
|
4445
4666
|
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"))) {
|
|
4446
|
-
const err13 = { instancePath: instancePath + "/type", schemaPath: "#/properties/type/enum", keyword: "enum", params: { allowedValues:
|
|
4667
|
+
const err13 = { instancePath: instancePath + "/type", schemaPath: "#/properties/type/enum", keyword: "enum", params: { allowedValues: schema76.properties.type.enum }, message: "must be equal to one of the allowed values" };
|
|
4447
4668
|
if (vErrors === null) {
|
|
4448
4669
|
vErrors = [err13];
|
|
4449
4670
|
}
|
|
@@ -4476,7 +4697,7 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4476
4697
|
}
|
|
4477
4698
|
errors++;
|
|
4478
4699
|
}
|
|
4479
|
-
if (!
|
|
4700
|
+
if (!pattern20.test(data2)) {
|
|
4480
4701
|
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._:-]*$" + "\"" };
|
|
4481
4702
|
if (vErrors === null) {
|
|
4482
4703
|
vErrors = [err16];
|
|
@@ -4521,7 +4742,7 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4521
4742
|
}
|
|
4522
4743
|
errors++;
|
|
4523
4744
|
}
|
|
4524
|
-
if (!
|
|
4745
|
+
if (!pattern20.test(data3)) {
|
|
4525
4746
|
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._:-]*$" + "\"" };
|
|
4526
4747
|
if (vErrors === null) {
|
|
4527
4748
|
vErrors = [err20];
|
|
@@ -4605,7 +4826,7 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4605
4826
|
if (data.mode !== undefined) {
|
|
4606
4827
|
let data7 = data.mode;
|
|
4607
4828
|
if (!(((data7 === "normal") || (data7 === "weak_magnet")) || (data7 === "strong_magnet"))) {
|
|
4608
|
-
const err27 = { instancePath: instancePath + "/mode", schemaPath: "#/properties/mode/enum", keyword: "enum", params: { allowedValues:
|
|
4829
|
+
const err27 = { instancePath: instancePath + "/mode", schemaPath: "#/properties/mode/enum", keyword: "enum", params: { allowedValues: schema76.properties.mode.enum }, message: "must be equal to one of the allowed values" };
|
|
4609
4830
|
if (vErrors === null) {
|
|
4610
4831
|
vErrors = [err27];
|
|
4611
4832
|
}
|
|
@@ -4621,8 +4842,8 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4621
4842
|
let valid4 = false;
|
|
4622
4843
|
let passing0 = null;
|
|
4623
4844
|
const _errs21 = errors;
|
|
4624
|
-
if (!(
|
|
4625
|
-
vErrors = vErrors === null ?
|
|
4845
|
+
if (!(validate38(data8, { instancePath: instancePath + "/anchor", parentData: data, parentDataProperty: "anchor", rootData, dynamicAnchors }))) {
|
|
4846
|
+
vErrors = vErrors === null ? validate38.errors : vErrors.concat(validate38.errors);
|
|
4626
4847
|
errors = vErrors.length;
|
|
4627
4848
|
}
|
|
4628
4849
|
var _valid0 = _errs21 === errors;
|
|
@@ -4632,8 +4853,8 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4632
4853
|
var props0 = true;
|
|
4633
4854
|
}
|
|
4634
4855
|
const _errs22 = errors;
|
|
4635
|
-
if (!(
|
|
4636
|
-
vErrors = vErrors === null ?
|
|
4856
|
+
if (!(validate40(data8, { instancePath: instancePath + "/anchor", parentData: data, parentDataProperty: "anchor", rootData, dynamicAnchors }))) {
|
|
4857
|
+
vErrors = vErrors === null ? validate40.errors : vErrors.concat(validate40.errors);
|
|
4637
4858
|
errors = vErrors.length;
|
|
4638
4859
|
}
|
|
4639
4860
|
var _valid0 = _errs22 === errors;
|
|
@@ -4650,8 +4871,8 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4650
4871
|
}
|
|
4651
4872
|
}
|
|
4652
4873
|
const _errs23 = errors;
|
|
4653
|
-
if (!(
|
|
4654
|
-
vErrors = vErrors === null ?
|
|
4874
|
+
if (!(validate42(data8, { instancePath: instancePath + "/anchor", parentData: data, parentDataProperty: "anchor", rootData, dynamicAnchors }))) {
|
|
4875
|
+
vErrors = vErrors === null ? validate42.errors : vErrors.concat(validate42.errors);
|
|
4655
4876
|
errors = vErrors.length;
|
|
4656
4877
|
}
|
|
4657
4878
|
var _valid0 = _errs23 === errors;
|
|
@@ -4902,20 +5123,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4902
5123
|
}
|
|
4903
5124
|
}
|
|
4904
5125
|
if (data.point !== undefined) {
|
|
4905
|
-
if (!(
|
|
4906
|
-
vErrors = vErrors === null ?
|
|
5126
|
+
if (!(validate42(data.point, { instancePath: instancePath + "/point", parentData: data, parentDataProperty: "point", rootData, dynamicAnchors }))) {
|
|
5127
|
+
vErrors = vErrors === null ? validate42.errors : vErrors.concat(validate42.errors);
|
|
4907
5128
|
errors = vErrors.length;
|
|
4908
5129
|
}
|
|
4909
5130
|
}
|
|
4910
5131
|
if (data.start !== undefined) {
|
|
4911
|
-
if (!(
|
|
4912
|
-
vErrors = vErrors === null ?
|
|
5132
|
+
if (!(validate42(data.start, { instancePath: instancePath + "/start", parentData: data, parentDataProperty: "start", rootData, dynamicAnchors }))) {
|
|
5133
|
+
vErrors = vErrors === null ? validate42.errors : vErrors.concat(validate42.errors);
|
|
4913
5134
|
errors = vErrors.length;
|
|
4914
5135
|
}
|
|
4915
5136
|
}
|
|
4916
5137
|
if (data.end !== undefined) {
|
|
4917
|
-
if (!(
|
|
4918
|
-
vErrors = vErrors === null ?
|
|
5138
|
+
if (!(validate42(data.end, { instancePath: instancePath + "/end", parentData: data, parentDataProperty: "end", rootData, dynamicAnchors }))) {
|
|
5139
|
+
vErrors = vErrors === null ? validate42.errors : vErrors.concat(validate42.errors);
|
|
4919
5140
|
errors = vErrors.length;
|
|
4920
5141
|
}
|
|
4921
5142
|
}
|
|
@@ -4944,8 +5165,8 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4944
5165
|
}
|
|
4945
5166
|
const len0 = data18.length;
|
|
4946
5167
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
4947
|
-
if (!(
|
|
4948
|
-
vErrors = vErrors === null ?
|
|
5168
|
+
if (!(validate42(data18[i0], { instancePath: instancePath + "/points/" + i0, parentData: data18, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
5169
|
+
vErrors = vErrors === null ? validate42.errors : vErrors.concat(validate42.errors);
|
|
4949
5170
|
errors = vErrors.length;
|
|
4950
5171
|
}
|
|
4951
5172
|
}
|
|
@@ -5032,20 +5253,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5032
5253
|
}
|
|
5033
5254
|
}
|
|
5034
5255
|
if (data21.line !== undefined) {
|
|
5035
|
-
if (!(
|
|
5036
|
-
vErrors = vErrors === null ?
|
|
5256
|
+
if (!(validate48(data21.line, { instancePath: instancePath + "/styles/line", parentData: data21, parentDataProperty: "line", rootData, dynamicAnchors }))) {
|
|
5257
|
+
vErrors = vErrors === null ? validate48.errors : vErrors.concat(validate48.errors);
|
|
5037
5258
|
errors = vErrors.length;
|
|
5038
5259
|
}
|
|
5039
5260
|
}
|
|
5040
5261
|
if (data21.fill !== undefined) {
|
|
5041
|
-
if (!(
|
|
5042
|
-
vErrors = vErrors === null ?
|
|
5262
|
+
if (!(validate50(data21.fill, { instancePath: instancePath + "/styles/fill", parentData: data21, parentDataProperty: "fill", rootData, dynamicAnchors }))) {
|
|
5263
|
+
vErrors = vErrors === null ? validate50.errors : vErrors.concat(validate50.errors);
|
|
5043
5264
|
errors = vErrors.length;
|
|
5044
5265
|
}
|
|
5045
5266
|
}
|
|
5046
5267
|
if (data21.text !== undefined) {
|
|
5047
|
-
if (!(
|
|
5048
|
-
vErrors = vErrors === null ?
|
|
5268
|
+
if (!(validate52(data21.text, { instancePath: instancePath + "/styles/text", parentData: data21, parentDataProperty: "text", rootData, dynamicAnchors }))) {
|
|
5269
|
+
vErrors = vErrors === null ? validate52.errors : vErrors.concat(validate52.errors);
|
|
5049
5270
|
errors = vErrors.length;
|
|
5050
5271
|
}
|
|
5051
5272
|
}
|
|
@@ -5062,8 +5283,8 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5062
5283
|
}
|
|
5063
5284
|
}
|
|
5064
5285
|
if (data.metadata !== undefined) {
|
|
5065
|
-
if (!(
|
|
5066
|
-
vErrors = vErrors === null ?
|
|
5286
|
+
if (!(validate54(data.metadata, { instancePath: instancePath + "/metadata", parentData: data, parentDataProperty: "metadata", rootData, dynamicAnchors }))) {
|
|
5287
|
+
vErrors = vErrors === null ? validate54.errors : vErrors.concat(validate54.errors);
|
|
5067
5288
|
errors = vErrors.length;
|
|
5068
5289
|
}
|
|
5069
5290
|
}
|
|
@@ -5077,10 +5298,10 @@ else {
|
|
|
5077
5298
|
vErrors.push(err57);
|
|
5078
5299
|
}
|
|
5079
5300
|
errors++;
|
|
5080
|
-
}
|
|
5081
|
-
|
|
5082
|
-
const
|
|
5083
|
-
function
|
|
5301
|
+
} validate37.errors = vErrors; return errors === 0; }
|
|
5302
|
+
validate37.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
5303
|
+
const schema104 = { "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" } } };
|
|
5304
|
+
function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate59.evaluated; if (evaluated0.dynamicProps) {
|
|
5084
5305
|
evaluated0.props = undefined;
|
|
5085
5306
|
} if (evaluated0.dynamicItems) {
|
|
5086
5307
|
evaluated0.items = undefined;
|
|
@@ -5242,10 +5463,10 @@ else {
|
|
|
5242
5463
|
vErrors.push(err13);
|
|
5243
5464
|
}
|
|
5244
5465
|
errors++;
|
|
5245
|
-
}
|
|
5246
|
-
|
|
5247
|
-
const
|
|
5248
|
-
function
|
|
5466
|
+
} validate59.errors = vErrors; return errors === 0; }
|
|
5467
|
+
validate59.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
5468
|
+
const schema106 = { "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 } } };
|
|
5469
|
+
function validate61(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate61.evaluated; if (evaluated0.dynamicProps) {
|
|
5249
5470
|
evaluated0.props = undefined;
|
|
5250
5471
|
} if (evaluated0.dynamicItems) {
|
|
5251
5472
|
evaluated0.items = undefined;
|
|
@@ -5430,7 +5651,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5430
5651
|
if (data.background !== undefined) {
|
|
5431
5652
|
let data3 = data.background;
|
|
5432
5653
|
if (typeof data3 === "string") {
|
|
5433
|
-
if (!
|
|
5654
|
+
if (!pattern7.test(data3)) {
|
|
5434
5655
|
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*\\)$" + "\"" };
|
|
5435
5656
|
if (vErrors === null) {
|
|
5436
5657
|
vErrors = [err16];
|
|
@@ -5454,7 +5675,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5454
5675
|
}
|
|
5455
5676
|
if (data.fontFamily !== undefined) {
|
|
5456
5677
|
if (!(data.fontFamily === "Baron Sans")) {
|
|
5457
|
-
const err18 = { instancePath: instancePath + "/fontFamily", schemaPath: "#/properties/fontFamily/enum", keyword: "enum", params: { allowedValues:
|
|
5678
|
+
const err18 = { instancePath: instancePath + "/fontFamily", schemaPath: "#/properties/fontFamily/enum", keyword: "enum", params: { allowedValues: schema106.properties.fontFamily.enum }, message: "must be equal to one of the allowed values" };
|
|
5458
5679
|
if (vErrors === null) {
|
|
5459
5680
|
vErrors = [err18];
|
|
5460
5681
|
}
|
|
@@ -5509,9 +5730,9 @@ else {
|
|
|
5509
5730
|
vErrors.push(err22);
|
|
5510
5731
|
}
|
|
5511
5732
|
errors++;
|
|
5512
|
-
}
|
|
5513
|
-
|
|
5514
|
-
function
|
|
5733
|
+
} validate61.errors = vErrors; return errors === 0; }
|
|
5734
|
+
validate61.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
5735
|
+
function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate63.evaluated; if (evaluated0.dynamicProps) {
|
|
5515
5736
|
evaluated0.props = undefined;
|
|
5516
5737
|
} if (evaluated0.dynamicItems) {
|
|
5517
5738
|
evaluated0.items = undefined;
|
|
@@ -5527,8 +5748,8 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5527
5748
|
errors++;
|
|
5528
5749
|
}
|
|
5529
5750
|
for (const key0 in data) {
|
|
5530
|
-
if (!(
|
|
5531
|
-
vErrors = vErrors === null ?
|
|
5751
|
+
if (!(validate55(data[key0], { instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key0, rootData, dynamicAnchors }))) {
|
|
5752
|
+
vErrors = vErrors === null ? validate55.errors : vErrors.concat(validate55.errors);
|
|
5532
5753
|
errors = vErrors.length;
|
|
5533
5754
|
}
|
|
5534
5755
|
}
|
|
@@ -5542,15 +5763,16 @@ else {
|
|
|
5542
5763
|
vErrors.push(err1);
|
|
5543
5764
|
}
|
|
5544
5765
|
errors++;
|
|
5545
|
-
}
|
|
5546
|
-
|
|
5766
|
+
} validate63.errors = vErrors; return errors === 0; }
|
|
5767
|
+
validate63.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
5547
5768
|
function validate21(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 = validate21.evaluated; if (evaluated0.dynamicProps) {
|
|
5548
5769
|
evaluated0.props = undefined;
|
|
5549
5770
|
} if (evaluated0.dynamicItems) {
|
|
5550
5771
|
evaluated0.items = undefined;
|
|
5551
|
-
} if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
5552
|
-
|
|
5553
|
-
|
|
5772
|
+
} const _errs2 = errors; let valid1 = true; const _errs3 = errors; if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
5773
|
+
let missing0;
|
|
5774
|
+
if ((data.version === undefined) && (missing0 = "version")) {
|
|
5775
|
+
const err0 = {};
|
|
5554
5776
|
if (vErrors === null) {
|
|
5555
5777
|
vErrors = [err0];
|
|
5556
5778
|
}
|
|
@@ -5559,426 +5781,514 @@ function validate21(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5559
5781
|
}
|
|
5560
5782
|
errors++;
|
|
5561
5783
|
}
|
|
5784
|
+
else {
|
|
5785
|
+
if (data.version !== undefined) {
|
|
5786
|
+
if (1 !== data.version) {
|
|
5787
|
+
const err1 = {};
|
|
5788
|
+
if (vErrors === null) {
|
|
5789
|
+
vErrors = [err1];
|
|
5790
|
+
}
|
|
5791
|
+
else {
|
|
5792
|
+
vErrors.push(err1);
|
|
5793
|
+
}
|
|
5794
|
+
errors++;
|
|
5795
|
+
}
|
|
5796
|
+
}
|
|
5797
|
+
}
|
|
5798
|
+
} var _valid0 = _errs3 === errors; errors = _errs2; if (vErrors !== null) {
|
|
5799
|
+
if (_errs2) {
|
|
5800
|
+
vErrors.length = _errs2;
|
|
5801
|
+
}
|
|
5802
|
+
else {
|
|
5803
|
+
vErrors = null;
|
|
5804
|
+
}
|
|
5805
|
+
} let ifClause0; if (_valid0) {
|
|
5806
|
+
const _errs5 = errors;
|
|
5807
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
5808
|
+
if (data.gaps !== undefined) {
|
|
5809
|
+
const err2 = { instancePath: instancePath + "/gaps", schemaPath: "#/allOf/0/then/properties/gaps/false schema", keyword: "false schema", params: {}, message: "boolean schema is false" };
|
|
5810
|
+
if (vErrors === null) {
|
|
5811
|
+
vErrors = [err2];
|
|
5812
|
+
}
|
|
5813
|
+
else {
|
|
5814
|
+
vErrors.push(err2);
|
|
5815
|
+
}
|
|
5816
|
+
errors++;
|
|
5817
|
+
}
|
|
5818
|
+
}
|
|
5819
|
+
var _valid0 = _errs5 === errors;
|
|
5820
|
+
valid1 = _valid0;
|
|
5821
|
+
if (valid1) {
|
|
5822
|
+
var props0 = {};
|
|
5823
|
+
props0.gaps = true;
|
|
5824
|
+
props0.version = true;
|
|
5825
|
+
}
|
|
5826
|
+
ifClause0 = "then";
|
|
5827
|
+
}
|
|
5828
|
+
else {
|
|
5829
|
+
const _errs6 = errors;
|
|
5830
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
5831
|
+
if (data.gaps === undefined) {
|
|
5832
|
+
const err3 = { instancePath, schemaPath: "#/allOf/0/else/required", keyword: "required", params: { missingProperty: "gaps" }, message: "must have required property '" + "gaps" + "'" };
|
|
5833
|
+
if (vErrors === null) {
|
|
5834
|
+
vErrors = [err3];
|
|
5835
|
+
}
|
|
5836
|
+
else {
|
|
5837
|
+
vErrors.push(err3);
|
|
5838
|
+
}
|
|
5839
|
+
errors++;
|
|
5840
|
+
}
|
|
5841
|
+
}
|
|
5842
|
+
var _valid0 = _errs6 === errors;
|
|
5843
|
+
valid1 = _valid0;
|
|
5844
|
+
if (valid1) {
|
|
5845
|
+
if (props0 !== true) {
|
|
5846
|
+
props0 = props0 || {};
|
|
5847
|
+
props0.gaps = true;
|
|
5848
|
+
}
|
|
5849
|
+
}
|
|
5850
|
+
ifClause0 = "else";
|
|
5851
|
+
} if (!valid1) {
|
|
5852
|
+
const err4 = { instancePath, schemaPath: "#/allOf/0/if", keyword: "if", params: { failingKeyword: ifClause0 }, message: "must match \"" + ifClause0 + "\" schema" };
|
|
5853
|
+
if (vErrors === null) {
|
|
5854
|
+
vErrors = [err4];
|
|
5855
|
+
}
|
|
5856
|
+
else {
|
|
5857
|
+
vErrors.push(err4);
|
|
5858
|
+
}
|
|
5859
|
+
errors++;
|
|
5860
|
+
} if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
5861
|
+
if (data.schema === undefined) {
|
|
5862
|
+
const err5 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "schema" }, message: "must have required property '" + "schema" + "'" };
|
|
5863
|
+
if (vErrors === null) {
|
|
5864
|
+
vErrors = [err5];
|
|
5865
|
+
}
|
|
5866
|
+
else {
|
|
5867
|
+
vErrors.push(err5);
|
|
5868
|
+
}
|
|
5869
|
+
errors++;
|
|
5870
|
+
}
|
|
5562
5871
|
if (data.version === undefined) {
|
|
5563
|
-
const
|
|
5872
|
+
const err6 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "version" }, message: "must have required property '" + "version" + "'" };
|
|
5564
5873
|
if (vErrors === null) {
|
|
5565
|
-
vErrors = [
|
|
5874
|
+
vErrors = [err6];
|
|
5566
5875
|
}
|
|
5567
5876
|
else {
|
|
5568
|
-
vErrors.push(
|
|
5877
|
+
vErrors.push(err6);
|
|
5569
5878
|
}
|
|
5570
5879
|
errors++;
|
|
5571
5880
|
}
|
|
5572
5881
|
if (data.runtime === undefined) {
|
|
5573
|
-
const
|
|
5882
|
+
const err7 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "runtime" }, message: "must have required property '" + "runtime" + "'" };
|
|
5574
5883
|
if (vErrors === null) {
|
|
5575
|
-
vErrors = [
|
|
5884
|
+
vErrors = [err7];
|
|
5576
5885
|
}
|
|
5577
5886
|
else {
|
|
5578
|
-
vErrors.push(
|
|
5887
|
+
vErrors.push(err7);
|
|
5579
5888
|
}
|
|
5580
5889
|
errors++;
|
|
5581
5890
|
}
|
|
5582
5891
|
if (data.symbol === undefined) {
|
|
5583
|
-
const
|
|
5892
|
+
const err8 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "symbol" }, message: "must have required property '" + "symbol" + "'" };
|
|
5584
5893
|
if (vErrors === null) {
|
|
5585
|
-
vErrors = [
|
|
5894
|
+
vErrors = [err8];
|
|
5586
5895
|
}
|
|
5587
5896
|
else {
|
|
5588
|
-
vErrors.push(
|
|
5897
|
+
vErrors.push(err8);
|
|
5589
5898
|
}
|
|
5590
5899
|
errors++;
|
|
5591
5900
|
}
|
|
5592
5901
|
if (data.period === undefined) {
|
|
5593
|
-
const
|
|
5902
|
+
const err9 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "period" }, message: "must have required property '" + "period" + "'" };
|
|
5594
5903
|
if (vErrors === null) {
|
|
5595
|
-
vErrors = [
|
|
5904
|
+
vErrors = [err9];
|
|
5596
5905
|
}
|
|
5597
5906
|
else {
|
|
5598
|
-
vErrors.push(
|
|
5907
|
+
vErrors.push(err9);
|
|
5599
5908
|
}
|
|
5600
5909
|
errors++;
|
|
5601
5910
|
}
|
|
5602
5911
|
if (data.data === undefined) {
|
|
5603
|
-
const
|
|
5912
|
+
const err10 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "data" }, message: "must have required property '" + "data" + "'" };
|
|
5604
5913
|
if (vErrors === null) {
|
|
5605
|
-
vErrors = [
|
|
5914
|
+
vErrors = [err10];
|
|
5606
5915
|
}
|
|
5607
5916
|
else {
|
|
5608
|
-
vErrors.push(
|
|
5917
|
+
vErrors.push(err10);
|
|
5609
5918
|
}
|
|
5610
5919
|
errors++;
|
|
5611
5920
|
}
|
|
5612
5921
|
if (data.chart === undefined) {
|
|
5613
|
-
const
|
|
5922
|
+
const err11 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "chart" }, message: "must have required property '" + "chart" + "'" };
|
|
5614
5923
|
if (vErrors === null) {
|
|
5615
|
-
vErrors = [
|
|
5924
|
+
vErrors = [err11];
|
|
5616
5925
|
}
|
|
5617
5926
|
else {
|
|
5618
|
-
vErrors.push(
|
|
5927
|
+
vErrors.push(err11);
|
|
5619
5928
|
}
|
|
5620
5929
|
errors++;
|
|
5621
5930
|
}
|
|
5622
5931
|
if (data.panes === undefined) {
|
|
5623
|
-
const
|
|
5932
|
+
const err12 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "panes" }, message: "must have required property '" + "panes" + "'" };
|
|
5624
5933
|
if (vErrors === null) {
|
|
5625
|
-
vErrors = [
|
|
5934
|
+
vErrors = [err12];
|
|
5626
5935
|
}
|
|
5627
5936
|
else {
|
|
5628
|
-
vErrors.push(
|
|
5937
|
+
vErrors.push(err12);
|
|
5629
5938
|
}
|
|
5630
5939
|
errors++;
|
|
5631
5940
|
}
|
|
5632
5941
|
if (data.overlays === undefined) {
|
|
5633
|
-
const
|
|
5942
|
+
const err13 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "overlays" }, message: "must have required property '" + "overlays" + "'" };
|
|
5634
5943
|
if (vErrors === null) {
|
|
5635
|
-
vErrors = [
|
|
5944
|
+
vErrors = [err13];
|
|
5636
5945
|
}
|
|
5637
5946
|
else {
|
|
5638
|
-
vErrors.push(
|
|
5947
|
+
vErrors.push(err13);
|
|
5639
5948
|
}
|
|
5640
5949
|
errors++;
|
|
5641
5950
|
}
|
|
5642
5951
|
if (data.viewport === undefined) {
|
|
5643
|
-
const
|
|
5952
|
+
const err14 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "viewport" }, message: "must have required property '" + "viewport" + "'" };
|
|
5644
5953
|
if (vErrors === null) {
|
|
5645
|
-
vErrors = [
|
|
5954
|
+
vErrors = [err14];
|
|
5646
5955
|
}
|
|
5647
5956
|
else {
|
|
5648
|
-
vErrors.push(
|
|
5957
|
+
vErrors.push(err14);
|
|
5649
5958
|
}
|
|
5650
5959
|
errors++;
|
|
5651
5960
|
}
|
|
5652
5961
|
if (data.render === undefined) {
|
|
5653
|
-
const
|
|
5962
|
+
const err15 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "render" }, message: "must have required property '" + "render" + "'" };
|
|
5654
5963
|
if (vErrors === null) {
|
|
5655
|
-
vErrors = [
|
|
5964
|
+
vErrors = [err15];
|
|
5656
5965
|
}
|
|
5657
5966
|
else {
|
|
5658
|
-
vErrors.push(
|
|
5967
|
+
vErrors.push(err15);
|
|
5659
5968
|
}
|
|
5660
5969
|
errors++;
|
|
5661
5970
|
}
|
|
5662
5971
|
if (data.metadata === undefined) {
|
|
5663
|
-
const
|
|
5972
|
+
const err16 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "metadata" }, message: "must have required property '" + "metadata" + "'" };
|
|
5664
5973
|
if (vErrors === null) {
|
|
5665
|
-
vErrors = [
|
|
5974
|
+
vErrors = [err16];
|
|
5666
5975
|
}
|
|
5667
5976
|
else {
|
|
5668
|
-
vErrors.push(
|
|
5977
|
+
vErrors.push(err16);
|
|
5669
5978
|
}
|
|
5670
5979
|
errors++;
|
|
5671
5980
|
}
|
|
5672
5981
|
for (const key0 in data) {
|
|
5673
5982
|
if (!(func1.call(schema32.properties, key0))) {
|
|
5674
|
-
const
|
|
5983
|
+
const err17 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
5675
5984
|
if (vErrors === null) {
|
|
5676
|
-
vErrors = [
|
|
5985
|
+
vErrors = [err17];
|
|
5677
5986
|
}
|
|
5678
5987
|
else {
|
|
5679
|
-
vErrors.push(
|
|
5988
|
+
vErrors.push(err17);
|
|
5680
5989
|
}
|
|
5681
5990
|
errors++;
|
|
5682
5991
|
}
|
|
5683
5992
|
}
|
|
5684
5993
|
if (data.schema !== undefined) {
|
|
5685
5994
|
if ("@baron1996/kline-scene" !== data.schema) {
|
|
5686
|
-
const
|
|
5995
|
+
const err18 = { instancePath: instancePath + "/schema", schemaPath: "#/properties/schema/const", keyword: "const", params: { allowedValue: "@baron1996/kline-scene" }, message: "must be equal to constant" };
|
|
5687
5996
|
if (vErrors === null) {
|
|
5688
|
-
vErrors = [
|
|
5997
|
+
vErrors = [err18];
|
|
5689
5998
|
}
|
|
5690
5999
|
else {
|
|
5691
|
-
vErrors.push(
|
|
6000
|
+
vErrors.push(err18);
|
|
5692
6001
|
}
|
|
5693
6002
|
errors++;
|
|
5694
6003
|
}
|
|
5695
6004
|
}
|
|
5696
6005
|
if (data.version !== undefined) {
|
|
5697
|
-
|
|
5698
|
-
|
|
6006
|
+
let data3 = data.version;
|
|
6007
|
+
if (!((data3 === 1) || (data3 === 2))) {
|
|
6008
|
+
const err19 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/enum", keyword: "enum", params: { allowedValues: schema32.properties.version.enum }, message: "must be equal to one of the allowed values" };
|
|
5699
6009
|
if (vErrors === null) {
|
|
5700
|
-
vErrors = [
|
|
6010
|
+
vErrors = [err19];
|
|
5701
6011
|
}
|
|
5702
6012
|
else {
|
|
5703
|
-
vErrors.push(
|
|
6013
|
+
vErrors.push(err19);
|
|
5704
6014
|
}
|
|
5705
6015
|
errors++;
|
|
5706
6016
|
}
|
|
5707
6017
|
}
|
|
5708
6018
|
if (data.runtime !== undefined) {
|
|
5709
|
-
let
|
|
5710
|
-
if (
|
|
5711
|
-
if (
|
|
5712
|
-
const
|
|
6019
|
+
let data4 = data.runtime;
|
|
6020
|
+
if (data4 && typeof data4 == "object" && !Array.isArray(data4)) {
|
|
6021
|
+
if (data4.engine === undefined) {
|
|
6022
|
+
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" + "'" };
|
|
5713
6023
|
if (vErrors === null) {
|
|
5714
|
-
vErrors = [
|
|
6024
|
+
vErrors = [err20];
|
|
5715
6025
|
}
|
|
5716
6026
|
else {
|
|
5717
|
-
vErrors.push(
|
|
6027
|
+
vErrors.push(err20);
|
|
5718
6028
|
}
|
|
5719
6029
|
errors++;
|
|
5720
6030
|
}
|
|
5721
|
-
if (
|
|
5722
|
-
const
|
|
6031
|
+
if (data4.engineVersion === undefined) {
|
|
6032
|
+
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" + "'" };
|
|
5723
6033
|
if (vErrors === null) {
|
|
5724
|
-
vErrors = [
|
|
6034
|
+
vErrors = [err21];
|
|
5725
6035
|
}
|
|
5726
6036
|
else {
|
|
5727
|
-
vErrors.push(
|
|
6037
|
+
vErrors.push(err21);
|
|
5728
6038
|
}
|
|
5729
6039
|
errors++;
|
|
5730
6040
|
}
|
|
5731
|
-
if (
|
|
5732
|
-
const
|
|
6041
|
+
if (data4.runtimeVersion === undefined) {
|
|
6042
|
+
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" + "'" };
|
|
5733
6043
|
if (vErrors === null) {
|
|
5734
|
-
vErrors = [
|
|
6044
|
+
vErrors = [err22];
|
|
5735
6045
|
}
|
|
5736
6046
|
else {
|
|
5737
|
-
vErrors.push(
|
|
6047
|
+
vErrors.push(err22);
|
|
5738
6048
|
}
|
|
5739
6049
|
errors++;
|
|
5740
6050
|
}
|
|
5741
|
-
for (const key1 in
|
|
6051
|
+
for (const key1 in data4) {
|
|
5742
6052
|
if (!(((key1 === "engine") || (key1 === "engineVersion")) || (key1 === "runtimeVersion"))) {
|
|
5743
|
-
const
|
|
6053
|
+
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" };
|
|
5744
6054
|
if (vErrors === null) {
|
|
5745
|
-
vErrors = [
|
|
6055
|
+
vErrors = [err23];
|
|
5746
6056
|
}
|
|
5747
6057
|
else {
|
|
5748
|
-
vErrors.push(
|
|
6058
|
+
vErrors.push(err23);
|
|
5749
6059
|
}
|
|
5750
6060
|
errors++;
|
|
5751
6061
|
}
|
|
5752
6062
|
}
|
|
5753
|
-
if (
|
|
5754
|
-
if ("klinecharts" !==
|
|
5755
|
-
const
|
|
6063
|
+
if (data4.engine !== undefined) {
|
|
6064
|
+
if ("klinecharts" !== data4.engine) {
|
|
6065
|
+
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" };
|
|
5756
6066
|
if (vErrors === null) {
|
|
5757
|
-
vErrors = [
|
|
6067
|
+
vErrors = [err24];
|
|
5758
6068
|
}
|
|
5759
6069
|
else {
|
|
5760
|
-
vErrors.push(
|
|
6070
|
+
vErrors.push(err24);
|
|
5761
6071
|
}
|
|
5762
6072
|
errors++;
|
|
5763
6073
|
}
|
|
5764
6074
|
}
|
|
5765
|
-
if (
|
|
5766
|
-
if ("10.0.0" !==
|
|
5767
|
-
const
|
|
6075
|
+
if (data4.engineVersion !== undefined) {
|
|
6076
|
+
if ("10.0.0" !== data4.engineVersion) {
|
|
6077
|
+
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" };
|
|
5768
6078
|
if (vErrors === null) {
|
|
5769
|
-
vErrors = [
|
|
6079
|
+
vErrors = [err25];
|
|
5770
6080
|
}
|
|
5771
6081
|
else {
|
|
5772
|
-
vErrors.push(
|
|
6082
|
+
vErrors.push(err25);
|
|
5773
6083
|
}
|
|
5774
6084
|
errors++;
|
|
5775
6085
|
}
|
|
5776
6086
|
}
|
|
5777
|
-
if (
|
|
5778
|
-
let
|
|
5779
|
-
if (!((
|
|
5780
|
-
const
|
|
6087
|
+
if (data4.runtimeVersion !== undefined) {
|
|
6088
|
+
let data7 = data4.runtimeVersion;
|
|
6089
|
+
if (!((data7 === "0.1.0") || (data7 === "0.2.0"))) {
|
|
6090
|
+
const err26 = { instancePath: instancePath + "/runtime/runtimeVersion", schemaPath: "https://baron.dev/kline-scene/runtime.schema.json/properties/runtimeVersion/enum", keyword: "enum", params: { allowedValues: schema33.properties.runtimeVersion.enum }, message: "must be equal to one of the allowed values" };
|
|
5781
6091
|
if (vErrors === null) {
|
|
5782
|
-
vErrors = [
|
|
6092
|
+
vErrors = [err26];
|
|
5783
6093
|
}
|
|
5784
6094
|
else {
|
|
5785
|
-
vErrors.push(
|
|
6095
|
+
vErrors.push(err26);
|
|
5786
6096
|
}
|
|
5787
6097
|
errors++;
|
|
5788
6098
|
}
|
|
5789
6099
|
}
|
|
5790
6100
|
}
|
|
5791
6101
|
else {
|
|
5792
|
-
const
|
|
6102
|
+
const err27 = { instancePath: instancePath + "/runtime", schemaPath: "https://baron.dev/kline-scene/runtime.schema.json/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
5793
6103
|
if (vErrors === null) {
|
|
5794
|
-
vErrors = [
|
|
6104
|
+
vErrors = [err27];
|
|
5795
6105
|
}
|
|
5796
6106
|
else {
|
|
5797
|
-
vErrors.push(
|
|
6107
|
+
vErrors.push(err27);
|
|
5798
6108
|
}
|
|
5799
6109
|
errors++;
|
|
5800
6110
|
}
|
|
5801
6111
|
}
|
|
5802
6112
|
if (data.symbol !== undefined) {
|
|
5803
|
-
let
|
|
5804
|
-
if (
|
|
5805
|
-
if (
|
|
5806
|
-
const
|
|
6113
|
+
let data8 = data.symbol;
|
|
6114
|
+
if (data8 && typeof data8 == "object" && !Array.isArray(data8)) {
|
|
6115
|
+
if (data8.ticker === undefined) {
|
|
6116
|
+
const err28 = { instancePath: instancePath + "/symbol", schemaPath: "#/$defs/symbol/required", keyword: "required", params: { missingProperty: "ticker" }, message: "must have required property '" + "ticker" + "'" };
|
|
5807
6117
|
if (vErrors === null) {
|
|
5808
|
-
vErrors = [
|
|
6118
|
+
vErrors = [err28];
|
|
5809
6119
|
}
|
|
5810
6120
|
else {
|
|
5811
|
-
vErrors.push(
|
|
6121
|
+
vErrors.push(err28);
|
|
5812
6122
|
}
|
|
5813
6123
|
errors++;
|
|
5814
6124
|
}
|
|
5815
|
-
if (
|
|
5816
|
-
const
|
|
6125
|
+
if (data8.pricePrecision === undefined) {
|
|
6126
|
+
const err29 = { instancePath: instancePath + "/symbol", schemaPath: "#/$defs/symbol/required", keyword: "required", params: { missingProperty: "pricePrecision" }, message: "must have required property '" + "pricePrecision" + "'" };
|
|
5817
6127
|
if (vErrors === null) {
|
|
5818
|
-
vErrors = [
|
|
6128
|
+
vErrors = [err29];
|
|
5819
6129
|
}
|
|
5820
6130
|
else {
|
|
5821
|
-
vErrors.push(
|
|
6131
|
+
vErrors.push(err29);
|
|
5822
6132
|
}
|
|
5823
6133
|
errors++;
|
|
5824
6134
|
}
|
|
5825
|
-
if (
|
|
5826
|
-
const
|
|
6135
|
+
if (data8.volumePrecision === undefined) {
|
|
6136
|
+
const err30 = { instancePath: instancePath + "/symbol", schemaPath: "#/$defs/symbol/required", keyword: "required", params: { missingProperty: "volumePrecision" }, message: "must have required property '" + "volumePrecision" + "'" };
|
|
5827
6137
|
if (vErrors === null) {
|
|
5828
|
-
vErrors = [
|
|
6138
|
+
vErrors = [err30];
|
|
5829
6139
|
}
|
|
5830
6140
|
else {
|
|
5831
|
-
vErrors.push(
|
|
6141
|
+
vErrors.push(err30);
|
|
5832
6142
|
}
|
|
5833
6143
|
errors++;
|
|
5834
6144
|
}
|
|
5835
|
-
for (const key2 in
|
|
6145
|
+
for (const key2 in data8) {
|
|
5836
6146
|
if (!((((key2 === "ticker") || (key2 === "name")) || (key2 === "pricePrecision")) || (key2 === "volumePrecision"))) {
|
|
5837
|
-
const
|
|
6147
|
+
const err31 = { instancePath: instancePath + "/symbol", schemaPath: "#/$defs/symbol/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
|
|
5838
6148
|
if (vErrors === null) {
|
|
5839
|
-
vErrors = [
|
|
6149
|
+
vErrors = [err31];
|
|
5840
6150
|
}
|
|
5841
6151
|
else {
|
|
5842
|
-
vErrors.push(
|
|
6152
|
+
vErrors.push(err31);
|
|
5843
6153
|
}
|
|
5844
6154
|
errors++;
|
|
5845
6155
|
}
|
|
5846
6156
|
}
|
|
5847
|
-
if (
|
|
5848
|
-
let
|
|
5849
|
-
if (typeof
|
|
5850
|
-
if (func2(
|
|
5851
|
-
const
|
|
6157
|
+
if (data8.ticker !== undefined) {
|
|
6158
|
+
let data9 = data8.ticker;
|
|
6159
|
+
if (typeof data9 === "string") {
|
|
6160
|
+
if (func2(data9) > 128) {
|
|
6161
|
+
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" };
|
|
5852
6162
|
if (vErrors === null) {
|
|
5853
|
-
vErrors = [
|
|
6163
|
+
vErrors = [err32];
|
|
5854
6164
|
}
|
|
5855
6165
|
else {
|
|
5856
|
-
vErrors.push(
|
|
6166
|
+
vErrors.push(err32);
|
|
5857
6167
|
}
|
|
5858
6168
|
errors++;
|
|
5859
6169
|
}
|
|
5860
|
-
if (func2(
|
|
5861
|
-
const
|
|
6170
|
+
if (func2(data9) < 1) {
|
|
6171
|
+
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" };
|
|
5862
6172
|
if (vErrors === null) {
|
|
5863
|
-
vErrors = [
|
|
6173
|
+
vErrors = [err33];
|
|
5864
6174
|
}
|
|
5865
6175
|
else {
|
|
5866
|
-
vErrors.push(
|
|
6176
|
+
vErrors.push(err33);
|
|
5867
6177
|
}
|
|
5868
6178
|
errors++;
|
|
5869
6179
|
}
|
|
5870
6180
|
}
|
|
5871
6181
|
else {
|
|
5872
|
-
const
|
|
6182
|
+
const err34 = { instancePath: instancePath + "/symbol/ticker", schemaPath: "#/$defs/symbol/properties/ticker/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
5873
6183
|
if (vErrors === null) {
|
|
5874
|
-
vErrors = [
|
|
6184
|
+
vErrors = [err34];
|
|
5875
6185
|
}
|
|
5876
6186
|
else {
|
|
5877
|
-
vErrors.push(
|
|
6187
|
+
vErrors.push(err34);
|
|
5878
6188
|
}
|
|
5879
6189
|
errors++;
|
|
5880
6190
|
}
|
|
5881
6191
|
}
|
|
5882
|
-
if (
|
|
5883
|
-
let
|
|
5884
|
-
if (typeof
|
|
5885
|
-
if (func2(
|
|
5886
|
-
const
|
|
6192
|
+
if (data8.name !== undefined) {
|
|
6193
|
+
let data10 = data8.name;
|
|
6194
|
+
if (typeof data10 === "string") {
|
|
6195
|
+
if (func2(data10) > 256) {
|
|
6196
|
+
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" };
|
|
5887
6197
|
if (vErrors === null) {
|
|
5888
|
-
vErrors = [
|
|
6198
|
+
vErrors = [err35];
|
|
5889
6199
|
}
|
|
5890
6200
|
else {
|
|
5891
|
-
vErrors.push(
|
|
6201
|
+
vErrors.push(err35);
|
|
5892
6202
|
}
|
|
5893
6203
|
errors++;
|
|
5894
6204
|
}
|
|
5895
|
-
if (func2(
|
|
5896
|
-
const
|
|
6205
|
+
if (func2(data10) < 1) {
|
|
6206
|
+
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" };
|
|
5897
6207
|
if (vErrors === null) {
|
|
5898
|
-
vErrors = [
|
|
6208
|
+
vErrors = [err36];
|
|
5899
6209
|
}
|
|
5900
6210
|
else {
|
|
5901
|
-
vErrors.push(
|
|
6211
|
+
vErrors.push(err36);
|
|
5902
6212
|
}
|
|
5903
6213
|
errors++;
|
|
5904
6214
|
}
|
|
5905
6215
|
}
|
|
5906
6216
|
else {
|
|
5907
|
-
const
|
|
6217
|
+
const err37 = { instancePath: instancePath + "/symbol/name", schemaPath: "#/$defs/symbol/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
5908
6218
|
if (vErrors === null) {
|
|
5909
|
-
vErrors = [
|
|
6219
|
+
vErrors = [err37];
|
|
5910
6220
|
}
|
|
5911
6221
|
else {
|
|
5912
|
-
vErrors.push(
|
|
6222
|
+
vErrors.push(err37);
|
|
5913
6223
|
}
|
|
5914
6224
|
errors++;
|
|
5915
6225
|
}
|
|
5916
6226
|
}
|
|
5917
|
-
if (
|
|
5918
|
-
let
|
|
5919
|
-
if (!(((typeof
|
|
5920
|
-
const
|
|
6227
|
+
if (data8.pricePrecision !== undefined) {
|
|
6228
|
+
let data11 = data8.pricePrecision;
|
|
6229
|
+
if (!(((typeof data11 == "number") && (!(data11 % 1) && !isNaN(data11))) && (isFinite(data11)))) {
|
|
6230
|
+
const err38 = { instancePath: instancePath + "/symbol/pricePrecision", schemaPath: "#/$defs/symbol/properties/pricePrecision/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
5921
6231
|
if (vErrors === null) {
|
|
5922
|
-
vErrors = [
|
|
6232
|
+
vErrors = [err38];
|
|
5923
6233
|
}
|
|
5924
6234
|
else {
|
|
5925
|
-
vErrors.push(
|
|
6235
|
+
vErrors.push(err38);
|
|
5926
6236
|
}
|
|
5927
6237
|
errors++;
|
|
5928
6238
|
}
|
|
5929
|
-
if ((typeof
|
|
5930
|
-
if (
|
|
5931
|
-
const
|
|
6239
|
+
if ((typeof data11 == "number") && (isFinite(data11))) {
|
|
6240
|
+
if (data11 > 16 || isNaN(data11)) {
|
|
6241
|
+
const err39 = { instancePath: instancePath + "/symbol/pricePrecision", schemaPath: "#/$defs/symbol/properties/pricePrecision/maximum", keyword: "maximum", params: { comparison: "<=", limit: 16 }, message: "must be <= 16" };
|
|
5932
6242
|
if (vErrors === null) {
|
|
5933
|
-
vErrors = [
|
|
6243
|
+
vErrors = [err39];
|
|
5934
6244
|
}
|
|
5935
6245
|
else {
|
|
5936
|
-
vErrors.push(
|
|
6246
|
+
vErrors.push(err39);
|
|
5937
6247
|
}
|
|
5938
6248
|
errors++;
|
|
5939
6249
|
}
|
|
5940
|
-
if (
|
|
5941
|
-
const
|
|
6250
|
+
if (data11 < 0 || isNaN(data11)) {
|
|
6251
|
+
const err40 = { instancePath: instancePath + "/symbol/pricePrecision", schemaPath: "#/$defs/symbol/properties/pricePrecision/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
5942
6252
|
if (vErrors === null) {
|
|
5943
|
-
vErrors = [
|
|
6253
|
+
vErrors = [err40];
|
|
5944
6254
|
}
|
|
5945
6255
|
else {
|
|
5946
|
-
vErrors.push(
|
|
6256
|
+
vErrors.push(err40);
|
|
5947
6257
|
}
|
|
5948
6258
|
errors++;
|
|
5949
6259
|
}
|
|
5950
6260
|
}
|
|
5951
6261
|
}
|
|
5952
|
-
if (
|
|
5953
|
-
let
|
|
5954
|
-
if (!(((typeof
|
|
5955
|
-
const
|
|
6262
|
+
if (data8.volumePrecision !== undefined) {
|
|
6263
|
+
let data12 = data8.volumePrecision;
|
|
6264
|
+
if (!(((typeof data12 == "number") && (!(data12 % 1) && !isNaN(data12))) && (isFinite(data12)))) {
|
|
6265
|
+
const err41 = { instancePath: instancePath + "/symbol/volumePrecision", schemaPath: "#/$defs/symbol/properties/volumePrecision/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
5956
6266
|
if (vErrors === null) {
|
|
5957
|
-
vErrors = [
|
|
6267
|
+
vErrors = [err41];
|
|
5958
6268
|
}
|
|
5959
6269
|
else {
|
|
5960
|
-
vErrors.push(
|
|
6270
|
+
vErrors.push(err41);
|
|
5961
6271
|
}
|
|
5962
6272
|
errors++;
|
|
5963
6273
|
}
|
|
5964
|
-
if ((typeof
|
|
5965
|
-
if (
|
|
5966
|
-
const
|
|
6274
|
+
if ((typeof data12 == "number") && (isFinite(data12))) {
|
|
6275
|
+
if (data12 > 16 || isNaN(data12)) {
|
|
6276
|
+
const err42 = { instancePath: instancePath + "/symbol/volumePrecision", schemaPath: "#/$defs/symbol/properties/volumePrecision/maximum", keyword: "maximum", params: { comparison: "<=", limit: 16 }, message: "must be <= 16" };
|
|
5967
6277
|
if (vErrors === null) {
|
|
5968
|
-
vErrors = [
|
|
6278
|
+
vErrors = [err42];
|
|
5969
6279
|
}
|
|
5970
6280
|
else {
|
|
5971
|
-
vErrors.push(
|
|
6281
|
+
vErrors.push(err42);
|
|
5972
6282
|
}
|
|
5973
6283
|
errors++;
|
|
5974
6284
|
}
|
|
5975
|
-
if (
|
|
5976
|
-
const
|
|
6285
|
+
if (data12 < 0 || isNaN(data12)) {
|
|
6286
|
+
const err43 = { instancePath: instancePath + "/symbol/volumePrecision", schemaPath: "#/$defs/symbol/properties/volumePrecision/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
5977
6287
|
if (vErrors === null) {
|
|
5978
|
-
vErrors = [
|
|
6288
|
+
vErrors = [err43];
|
|
5979
6289
|
}
|
|
5980
6290
|
else {
|
|
5981
|
-
vErrors.push(
|
|
6291
|
+
vErrors.push(err43);
|
|
5982
6292
|
}
|
|
5983
6293
|
errors++;
|
|
5984
6294
|
}
|
|
@@ -5986,269 +6296,301 @@ function validate21(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5986
6296
|
}
|
|
5987
6297
|
}
|
|
5988
6298
|
else {
|
|
5989
|
-
const
|
|
6299
|
+
const err44 = { instancePath: instancePath + "/symbol", schemaPath: "#/$defs/symbol/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
5990
6300
|
if (vErrors === null) {
|
|
5991
|
-
vErrors = [
|
|
6301
|
+
vErrors = [err44];
|
|
5992
6302
|
}
|
|
5993
6303
|
else {
|
|
5994
|
-
vErrors.push(
|
|
6304
|
+
vErrors.push(err44);
|
|
5995
6305
|
}
|
|
5996
6306
|
errors++;
|
|
5997
6307
|
}
|
|
5998
6308
|
}
|
|
5999
6309
|
if (data.period !== undefined) {
|
|
6000
|
-
let
|
|
6001
|
-
if (
|
|
6002
|
-
if (
|
|
6003
|
-
const
|
|
6310
|
+
let data13 = data.period;
|
|
6311
|
+
if (data13 && typeof data13 == "object" && !Array.isArray(data13)) {
|
|
6312
|
+
if (data13.span === undefined) {
|
|
6313
|
+
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" + "'" };
|
|
6004
6314
|
if (vErrors === null) {
|
|
6005
|
-
vErrors = [
|
|
6315
|
+
vErrors = [err45];
|
|
6006
6316
|
}
|
|
6007
6317
|
else {
|
|
6008
|
-
vErrors.push(
|
|
6318
|
+
vErrors.push(err45);
|
|
6009
6319
|
}
|
|
6010
6320
|
errors++;
|
|
6011
6321
|
}
|
|
6012
|
-
if (
|
|
6013
|
-
const
|
|
6322
|
+
if (data13.type === undefined) {
|
|
6323
|
+
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" + "'" };
|
|
6014
6324
|
if (vErrors === null) {
|
|
6015
|
-
vErrors = [
|
|
6325
|
+
vErrors = [err46];
|
|
6016
6326
|
}
|
|
6017
6327
|
else {
|
|
6018
|
-
vErrors.push(
|
|
6328
|
+
vErrors.push(err46);
|
|
6019
6329
|
}
|
|
6020
6330
|
errors++;
|
|
6021
6331
|
}
|
|
6022
|
-
for (const key3 in
|
|
6332
|
+
for (const key3 in data13) {
|
|
6023
6333
|
if (!((key3 === "span") || (key3 === "type"))) {
|
|
6024
|
-
const
|
|
6334
|
+
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" };
|
|
6025
6335
|
if (vErrors === null) {
|
|
6026
|
-
vErrors = [
|
|
6336
|
+
vErrors = [err47];
|
|
6027
6337
|
}
|
|
6028
6338
|
else {
|
|
6029
|
-
vErrors.push(
|
|
6339
|
+
vErrors.push(err47);
|
|
6030
6340
|
}
|
|
6031
6341
|
errors++;
|
|
6032
6342
|
}
|
|
6033
6343
|
}
|
|
6034
|
-
if (
|
|
6035
|
-
let
|
|
6036
|
-
if (!(((typeof
|
|
6037
|
-
const
|
|
6344
|
+
if (data13.span !== undefined) {
|
|
6345
|
+
let data14 = data13.span;
|
|
6346
|
+
if (!(((typeof data14 == "number") && (!(data14 % 1) && !isNaN(data14))) && (isFinite(data14)))) {
|
|
6347
|
+
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" };
|
|
6038
6348
|
if (vErrors === null) {
|
|
6039
|
-
vErrors = [
|
|
6349
|
+
vErrors = [err48];
|
|
6040
6350
|
}
|
|
6041
6351
|
else {
|
|
6042
|
-
vErrors.push(
|
|
6352
|
+
vErrors.push(err48);
|
|
6043
6353
|
}
|
|
6044
6354
|
errors++;
|
|
6045
6355
|
}
|
|
6046
|
-
if ((typeof
|
|
6047
|
-
if (
|
|
6048
|
-
const
|
|
6356
|
+
if ((typeof data14 == "number") && (isFinite(data14))) {
|
|
6357
|
+
if (data14 > 100000 || isNaN(data14)) {
|
|
6358
|
+
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" };
|
|
6049
6359
|
if (vErrors === null) {
|
|
6050
|
-
vErrors = [
|
|
6360
|
+
vErrors = [err49];
|
|
6051
6361
|
}
|
|
6052
6362
|
else {
|
|
6053
|
-
vErrors.push(
|
|
6363
|
+
vErrors.push(err49);
|
|
6054
6364
|
}
|
|
6055
6365
|
errors++;
|
|
6056
6366
|
}
|
|
6057
|
-
if (
|
|
6058
|
-
const
|
|
6367
|
+
if (data14 < 1 || isNaN(data14)) {
|
|
6368
|
+
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" };
|
|
6059
6369
|
if (vErrors === null) {
|
|
6060
|
-
vErrors = [
|
|
6370
|
+
vErrors = [err50];
|
|
6061
6371
|
}
|
|
6062
6372
|
else {
|
|
6063
|
-
vErrors.push(
|
|
6373
|
+
vErrors.push(err50);
|
|
6064
6374
|
}
|
|
6065
6375
|
errors++;
|
|
6066
6376
|
}
|
|
6067
6377
|
}
|
|
6068
6378
|
}
|
|
6069
|
-
if (
|
|
6070
|
-
let
|
|
6071
|
-
if (!(((((((
|
|
6072
|
-
const
|
|
6379
|
+
if (data13.type !== undefined) {
|
|
6380
|
+
let data15 = data13.type;
|
|
6381
|
+
if (!(((((((data15 === "second") || (data15 === "minute")) || (data15 === "hour")) || (data15 === "day")) || (data15 === "week")) || (data15 === "month")) || (data15 === "year"))) {
|
|
6382
|
+
const err51 = { instancePath: instancePath + "/period/type", schemaPath: "https://baron.dev/kline-scene/common.schema.json#/$defs/period/properties/type/enum", keyword: "enum", params: { allowedValues: schema36.properties.type.enum }, message: "must be equal to one of the allowed values" };
|
|
6073
6383
|
if (vErrors === null) {
|
|
6074
|
-
vErrors = [
|
|
6384
|
+
vErrors = [err51];
|
|
6075
6385
|
}
|
|
6076
6386
|
else {
|
|
6077
|
-
vErrors.push(
|
|
6387
|
+
vErrors.push(err51);
|
|
6078
6388
|
}
|
|
6079
6389
|
errors++;
|
|
6080
6390
|
}
|
|
6081
6391
|
}
|
|
6082
6392
|
}
|
|
6083
6393
|
else {
|
|
6084
|
-
const
|
|
6394
|
+
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" };
|
|
6085
6395
|
if (vErrors === null) {
|
|
6086
|
-
vErrors = [
|
|
6396
|
+
vErrors = [err52];
|
|
6087
6397
|
}
|
|
6088
6398
|
else {
|
|
6089
|
-
vErrors.push(
|
|
6399
|
+
vErrors.push(err52);
|
|
6090
6400
|
}
|
|
6091
6401
|
errors++;
|
|
6092
6402
|
}
|
|
6093
6403
|
}
|
|
6094
6404
|
if (data.data !== undefined) {
|
|
6095
|
-
let
|
|
6096
|
-
if (Array.isArray(
|
|
6097
|
-
if (
|
|
6098
|
-
const
|
|
6405
|
+
let data16 = data.data;
|
|
6406
|
+
if (Array.isArray(data16)) {
|
|
6407
|
+
if (data16.length > 1000000) {
|
|
6408
|
+
const err53 = { instancePath: instancePath + "/data", schemaPath: "#/properties/data/maxItems", keyword: "maxItems", params: { limit: 1000000 }, message: "must NOT have more than 1000000 items" };
|
|
6099
6409
|
if (vErrors === null) {
|
|
6100
|
-
vErrors = [
|
|
6410
|
+
vErrors = [err53];
|
|
6101
6411
|
}
|
|
6102
6412
|
else {
|
|
6103
|
-
vErrors.push(
|
|
6413
|
+
vErrors.push(err53);
|
|
6104
6414
|
}
|
|
6105
6415
|
errors++;
|
|
6106
6416
|
}
|
|
6107
|
-
if (
|
|
6108
|
-
const
|
|
6417
|
+
if (data16.length < 1) {
|
|
6418
|
+
const err54 = { instancePath: instancePath + "/data", schemaPath: "#/properties/data/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
6109
6419
|
if (vErrors === null) {
|
|
6110
|
-
vErrors = [
|
|
6420
|
+
vErrors = [err54];
|
|
6111
6421
|
}
|
|
6112
6422
|
else {
|
|
6113
|
-
vErrors.push(
|
|
6423
|
+
vErrors.push(err54);
|
|
6114
6424
|
}
|
|
6115
6425
|
errors++;
|
|
6116
6426
|
}
|
|
6117
|
-
const len0 =
|
|
6427
|
+
const len0 = data16.length;
|
|
6118
6428
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
6119
|
-
if (!(validate23(
|
|
6429
|
+
if (!(validate23(data16[i0], { instancePath: instancePath + "/data/" + i0, parentData: data16, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
6120
6430
|
vErrors = vErrors === null ? validate23.errors : vErrors.concat(validate23.errors);
|
|
6121
6431
|
errors = vErrors.length;
|
|
6122
6432
|
}
|
|
6123
6433
|
}
|
|
6124
6434
|
}
|
|
6125
6435
|
else {
|
|
6126
|
-
const
|
|
6436
|
+
const err55 = { instancePath: instancePath + "/data", schemaPath: "#/properties/data/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
6127
6437
|
if (vErrors === null) {
|
|
6128
|
-
vErrors = [
|
|
6438
|
+
vErrors = [err55];
|
|
6129
6439
|
}
|
|
6130
6440
|
else {
|
|
6131
|
-
vErrors.push(
|
|
6441
|
+
vErrors.push(err55);
|
|
6442
|
+
}
|
|
6443
|
+
errors++;
|
|
6444
|
+
}
|
|
6445
|
+
}
|
|
6446
|
+
if (data.gaps !== undefined) {
|
|
6447
|
+
let data18 = data.gaps;
|
|
6448
|
+
if (Array.isArray(data18)) {
|
|
6449
|
+
if (data18.length > 1000000) {
|
|
6450
|
+
const err56 = { instancePath: instancePath + "/gaps", schemaPath: "#/properties/gaps/maxItems", keyword: "maxItems", params: { limit: 1000000 }, message: "must NOT have more than 1000000 items" };
|
|
6451
|
+
if (vErrors === null) {
|
|
6452
|
+
vErrors = [err56];
|
|
6453
|
+
}
|
|
6454
|
+
else {
|
|
6455
|
+
vErrors.push(err56);
|
|
6456
|
+
}
|
|
6457
|
+
errors++;
|
|
6458
|
+
}
|
|
6459
|
+
const len1 = data18.length;
|
|
6460
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
6461
|
+
if (!(validate25(data18[i1], { instancePath: instancePath + "/gaps/" + i1, parentData: data18, parentDataProperty: i1, rootData, dynamicAnchors }))) {
|
|
6462
|
+
vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);
|
|
6463
|
+
errors = vErrors.length;
|
|
6464
|
+
}
|
|
6465
|
+
}
|
|
6466
|
+
}
|
|
6467
|
+
else {
|
|
6468
|
+
const err57 = { instancePath: instancePath + "/gaps", schemaPath: "#/properties/gaps/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
6469
|
+
if (vErrors === null) {
|
|
6470
|
+
vErrors = [err57];
|
|
6471
|
+
}
|
|
6472
|
+
else {
|
|
6473
|
+
vErrors.push(err57);
|
|
6132
6474
|
}
|
|
6133
6475
|
errors++;
|
|
6134
6476
|
}
|
|
6135
6477
|
}
|
|
6136
6478
|
if (data.chart !== undefined) {
|
|
6137
|
-
if (!(
|
|
6138
|
-
vErrors = vErrors === null ?
|
|
6479
|
+
if (!(validate27(data.chart, { instancePath: instancePath + "/chart", parentData: data, parentDataProperty: "chart", rootData, dynamicAnchors }))) {
|
|
6480
|
+
vErrors = vErrors === null ? validate27.errors : vErrors.concat(validate27.errors);
|
|
6139
6481
|
errors = vErrors.length;
|
|
6140
6482
|
}
|
|
6141
6483
|
}
|
|
6142
6484
|
if (data.panes !== undefined) {
|
|
6143
|
-
let
|
|
6144
|
-
if (Array.isArray(
|
|
6145
|
-
if (
|
|
6146
|
-
const
|
|
6485
|
+
let data21 = data.panes;
|
|
6486
|
+
if (Array.isArray(data21)) {
|
|
6487
|
+
if (data21.length > 32) {
|
|
6488
|
+
const err58 = { instancePath: instancePath + "/panes", schemaPath: "#/properties/panes/maxItems", keyword: "maxItems", params: { limit: 32 }, message: "must NOT have more than 32 items" };
|
|
6147
6489
|
if (vErrors === null) {
|
|
6148
|
-
vErrors = [
|
|
6490
|
+
vErrors = [err58];
|
|
6149
6491
|
}
|
|
6150
6492
|
else {
|
|
6151
|
-
vErrors.push(
|
|
6493
|
+
vErrors.push(err58);
|
|
6152
6494
|
}
|
|
6153
6495
|
errors++;
|
|
6154
6496
|
}
|
|
6155
|
-
if (
|
|
6156
|
-
const
|
|
6497
|
+
if (data21.length < 1) {
|
|
6498
|
+
const err59 = { instancePath: instancePath + "/panes", schemaPath: "#/properties/panes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
6157
6499
|
if (vErrors === null) {
|
|
6158
|
-
vErrors = [
|
|
6500
|
+
vErrors = [err59];
|
|
6159
6501
|
}
|
|
6160
6502
|
else {
|
|
6161
|
-
vErrors.push(
|
|
6503
|
+
vErrors.push(err59);
|
|
6162
6504
|
}
|
|
6163
6505
|
errors++;
|
|
6164
6506
|
}
|
|
6165
|
-
const
|
|
6166
|
-
for (let
|
|
6167
|
-
if (!(
|
|
6168
|
-
vErrors = vErrors === null ?
|
|
6507
|
+
const len2 = data21.length;
|
|
6508
|
+
for (let i2 = 0; i2 < len2; i2++) {
|
|
6509
|
+
if (!(validate29(data21[i2], { instancePath: instancePath + "/panes/" + i2, parentData: data21, parentDataProperty: i2, rootData, dynamicAnchors }))) {
|
|
6510
|
+
vErrors = vErrors === null ? validate29.errors : vErrors.concat(validate29.errors);
|
|
6169
6511
|
errors = vErrors.length;
|
|
6170
6512
|
}
|
|
6171
6513
|
}
|
|
6172
6514
|
}
|
|
6173
6515
|
else {
|
|
6174
|
-
const
|
|
6516
|
+
const err60 = { instancePath: instancePath + "/panes", schemaPath: "#/properties/panes/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
6175
6517
|
if (vErrors === null) {
|
|
6176
|
-
vErrors = [
|
|
6518
|
+
vErrors = [err60];
|
|
6177
6519
|
}
|
|
6178
6520
|
else {
|
|
6179
|
-
vErrors.push(
|
|
6521
|
+
vErrors.push(err60);
|
|
6180
6522
|
}
|
|
6181
6523
|
errors++;
|
|
6182
6524
|
}
|
|
6183
6525
|
}
|
|
6184
6526
|
if (data.overlays !== undefined) {
|
|
6185
|
-
let
|
|
6186
|
-
if (Array.isArray(
|
|
6187
|
-
if (
|
|
6188
|
-
const
|
|
6527
|
+
let data23 = data.overlays;
|
|
6528
|
+
if (Array.isArray(data23)) {
|
|
6529
|
+
if (data23.length > 10000) {
|
|
6530
|
+
const err61 = { instancePath: instancePath + "/overlays", schemaPath: "#/properties/overlays/maxItems", keyword: "maxItems", params: { limit: 10000 }, message: "must NOT have more than 10000 items" };
|
|
6189
6531
|
if (vErrors === null) {
|
|
6190
|
-
vErrors = [
|
|
6532
|
+
vErrors = [err61];
|
|
6191
6533
|
}
|
|
6192
6534
|
else {
|
|
6193
|
-
vErrors.push(
|
|
6535
|
+
vErrors.push(err61);
|
|
6194
6536
|
}
|
|
6195
6537
|
errors++;
|
|
6196
6538
|
}
|
|
6197
|
-
const
|
|
6198
|
-
for (let
|
|
6199
|
-
if (!(
|
|
6200
|
-
vErrors = vErrors === null ?
|
|
6539
|
+
const len3 = data23.length;
|
|
6540
|
+
for (let i3 = 0; i3 < len3; i3++) {
|
|
6541
|
+
if (!(validate37(data23[i3], { instancePath: instancePath + "/overlays/" + i3, parentData: data23, parentDataProperty: i3, rootData, dynamicAnchors }))) {
|
|
6542
|
+
vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);
|
|
6201
6543
|
errors = vErrors.length;
|
|
6202
6544
|
}
|
|
6203
6545
|
}
|
|
6204
6546
|
}
|
|
6205
6547
|
else {
|
|
6206
|
-
const
|
|
6548
|
+
const err62 = { instancePath: instancePath + "/overlays", schemaPath: "#/properties/overlays/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
6207
6549
|
if (vErrors === null) {
|
|
6208
|
-
vErrors = [
|
|
6550
|
+
vErrors = [err62];
|
|
6209
6551
|
}
|
|
6210
6552
|
else {
|
|
6211
|
-
vErrors.push(
|
|
6553
|
+
vErrors.push(err62);
|
|
6212
6554
|
}
|
|
6213
6555
|
errors++;
|
|
6214
6556
|
}
|
|
6215
6557
|
}
|
|
6216
6558
|
if (data.viewport !== undefined) {
|
|
6217
|
-
if (!(
|
|
6218
|
-
vErrors = vErrors === null ?
|
|
6559
|
+
if (!(validate59(data.viewport, { instancePath: instancePath + "/viewport", parentData: data, parentDataProperty: "viewport", rootData, dynamicAnchors }))) {
|
|
6560
|
+
vErrors = vErrors === null ? validate59.errors : vErrors.concat(validate59.errors);
|
|
6219
6561
|
errors = vErrors.length;
|
|
6220
6562
|
}
|
|
6221
6563
|
}
|
|
6222
6564
|
if (data.render !== undefined) {
|
|
6223
|
-
if (!(
|
|
6224
|
-
vErrors = vErrors === null ?
|
|
6565
|
+
if (!(validate61(data.render, { instancePath: instancePath + "/render", parentData: data, parentDataProperty: "render", rootData, dynamicAnchors }))) {
|
|
6566
|
+
vErrors = vErrors === null ? validate61.errors : vErrors.concat(validate61.errors);
|
|
6225
6567
|
errors = vErrors.length;
|
|
6226
6568
|
}
|
|
6227
6569
|
}
|
|
6228
6570
|
if (data.metadata !== undefined) {
|
|
6229
|
-
if (!(
|
|
6230
|
-
vErrors = vErrors === null ?
|
|
6571
|
+
if (!(validate63(data.metadata, { instancePath: instancePath + "/metadata", parentData: data, parentDataProperty: "metadata", rootData, dynamicAnchors }))) {
|
|
6572
|
+
vErrors = vErrors === null ? validate63.errors : vErrors.concat(validate63.errors);
|
|
6231
6573
|
errors = vErrors.length;
|
|
6232
6574
|
}
|
|
6233
6575
|
}
|
|
6234
6576
|
}
|
|
6235
6577
|
else {
|
|
6236
|
-
const
|
|
6578
|
+
const err63 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
6237
6579
|
if (vErrors === null) {
|
|
6238
|
-
vErrors = [
|
|
6580
|
+
vErrors = [err63];
|
|
6239
6581
|
}
|
|
6240
6582
|
else {
|
|
6241
|
-
vErrors.push(
|
|
6583
|
+
vErrors.push(err63);
|
|
6242
6584
|
}
|
|
6243
6585
|
errors++;
|
|
6244
6586
|
} validate21.errors = vErrors; return errors === 0; }
|
|
6245
6587
|
validate21.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
6246
|
-
const
|
|
6247
|
-
const
|
|
6248
|
-
const
|
|
6249
|
-
const
|
|
6250
|
-
const
|
|
6251
|
-
function
|
|
6588
|
+
const schema109 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://baron.dev/kline-scene/time-series-scene.schema.json", "title": "TimeSeriesScene", "type": "object", "additionalProperties": false, "required": ["schema", "version", "runtime", "period", "series", "data", "chart", "viewport", "render", "metadata"], "properties": { "schema": { "const": "@baron1996/time-series-scene" }, "version": { "const": 1 }, "runtime": { "$ref": "https://baron.dev/kline-scene/time-series-runtime.schema.json" }, "period": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/period" }, "series": { "type": "array", "minItems": 1, "maxItems": 64, "items": { "$ref": "#/$defs/timeSeriesDefinition" } }, "data": { "type": "array", "minItems": 1, "maxItems": 1000000, "items": { "$ref": "#/$defs/timeSeriesPoint" } }, "chart": { "$ref": "https://baron.dev/kline-scene/time-series-chart-config.schema.json" }, "viewport": { "$ref": "#/$defs/timeSeriesViewport" }, "render": { "$ref": "#/$defs/timeSeriesRender" }, "metadata": { "$ref": "#/$defs/metadata" } }, "$defs": { "timeSeriesDefinition": { "type": "object", "additionalProperties": false, "required": ["id", "name", "type", "unit", "precision", "visible", "style"], "properties": { "id": { "type": "string", "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$" }, "name": { "type": "string", "minLength": 1, "maxLength": 256 }, "type": { "const": "line" }, "unit": { "type": "string", "minLength": 1, "maxLength": 64 }, "precision": { "type": "integer", "minimum": 0, "maximum": 16 }, "visible": { "type": "boolean" }, "style": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/lineStyle" } } }, "timeSeriesPoint": { "type": "object", "additionalProperties": false, "required": ["timestamp", "values"], "properties": { "timestamp": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 }, "values": { "type": "object", "minProperties": 1, "maxProperties": 64, "propertyNames": { "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$" }, "additionalProperties": { "oneOf": [{ "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" }, { "type": "null" }] } } } }, "timeSeriesViewport": { "type": "object", "additionalProperties": false, "required": ["barSpace", "rightOffsetDistance", "anchorTimestamp"], "properties": { "barSpace": { "type": "number", "minimum": 1, "maximum": 100 }, "rightOffsetDistance": { "type": "number", "minimum": 0, "maximum": 10000 }, "anchorTimestamp": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 } } }, "timeSeriesRender": { "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": { "const": "Baron Sans" }, "timeoutMs": { "type": "integer", "minimum": 100, "maximum": 120000 } } }, "metadata": { "type": "object", "maxProperties": 64, "propertyNames": { "type": "string", "minLength": 1, "maxLength": 128 }, "additionalProperties": { "oneOf": [{ "type": "null" }, { "type": "boolean" }, { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" }, { "type": "string" }] } } } };
|
|
6589
|
+
const schema110 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://baron.dev/kline-scene/time-series-runtime.schema.json", "title": "TimeSeriesRuntimeIdentity", "type": "object", "additionalProperties": false, "required": ["engine", "engineVersion", "runtimeVersion"], "properties": { "engine": { "const": "klinecharts" }, "engineVersion": { "const": "10.0.0" }, "runtimeVersion": { "const": "0.1.0" } } };
|
|
6590
|
+
const schema122 = { "type": "object", "additionalProperties": false, "required": ["barSpace", "rightOffsetDistance", "anchorTimestamp"], "properties": { "barSpace": { "type": "number", "minimum": 1, "maximum": 100 }, "rightOffsetDistance": { "type": "number", "minimum": 0, "maximum": 10000 }, "anchorTimestamp": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 } } };
|
|
6591
|
+
const schema112 = { "type": "object", "additionalProperties": false, "required": ["id", "name", "type", "unit", "precision", "visible", "style"], "properties": { "id": { "type": "string", "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$" }, "name": { "type": "string", "minLength": 1, "maxLength": 256 }, "type": { "const": "line" }, "unit": { "type": "string", "minLength": 1, "maxLength": 64 }, "precision": { "type": "integer", "minimum": 0, "maximum": 16 }, "visible": { "type": "boolean" }, "style": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/lineStyle" } } };
|
|
6592
|
+
const pattern39 = new RegExp("^[A-Za-z][A-Za-z0-9_-]{0,63}$", "u");
|
|
6593
|
+
function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate69.evaluated; if (evaluated0.dynamicProps) {
|
|
6252
6594
|
evaluated0.props = undefined;
|
|
6253
6595
|
} if (evaluated0.dynamicItems) {
|
|
6254
6596
|
evaluated0.items = undefined;
|
|
@@ -6298,7 +6640,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6298
6640
|
if (data.color !== undefined) {
|
|
6299
6641
|
let data0 = data.color;
|
|
6300
6642
|
if (typeof data0 === "string") {
|
|
6301
|
-
if (!
|
|
6643
|
+
if (!pattern7.test(data0)) {
|
|
6302
6644
|
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*\\)$" + "\"" };
|
|
6303
6645
|
if (vErrors === null) {
|
|
6304
6646
|
vErrors = [err4];
|
|
@@ -6358,7 +6700,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6358
6700
|
if (data.style !== undefined) {
|
|
6359
6701
|
let data2 = data.style;
|
|
6360
6702
|
if (!(((data2 === "solid") || (data2 === "dashed")) || (data2 === "dotted"))) {
|
|
6361
|
-
const err9 = { instancePath: instancePath + "/style", schemaPath: "#/properties/style/enum", keyword: "enum", params: { allowedValues:
|
|
6703
|
+
const err9 = { instancePath: instancePath + "/style", schemaPath: "#/properties/style/enum", keyword: "enum", params: { allowedValues: schema70.properties.style.enum }, message: "must be equal to one of the allowed values" };
|
|
6362
6704
|
if (vErrors === null) {
|
|
6363
6705
|
vErrors = [err9];
|
|
6364
6706
|
}
|
|
@@ -6378,9 +6720,9 @@ else {
|
|
|
6378
6720
|
vErrors.push(err10);
|
|
6379
6721
|
}
|
|
6380
6722
|
errors++;
|
|
6381
|
-
}
|
|
6382
|
-
|
|
6383
|
-
function
|
|
6723
|
+
} validate69.errors = vErrors; return errors === 0; }
|
|
6724
|
+
validate69.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
6725
|
+
function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate68.evaluated; if (evaluated0.dynamicProps) {
|
|
6384
6726
|
evaluated0.props = undefined;
|
|
6385
6727
|
} if (evaluated0.dynamicItems) {
|
|
6386
6728
|
evaluated0.items = undefined;
|
|
@@ -6470,7 +6812,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6470
6812
|
if (data.id !== undefined) {
|
|
6471
6813
|
let data0 = data.id;
|
|
6472
6814
|
if (typeof data0 === "string") {
|
|
6473
|
-
if (!
|
|
6815
|
+
if (!pattern39.test(data0)) {
|
|
6474
6816
|
const err8 = { instancePath: instancePath + "/id", schemaPath: "#/properties/id/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z][A-Za-z0-9_-]{0,63}$" }, message: "must match pattern \"" + "^[A-Za-z][A-Za-z0-9_-]{0,63}$" + "\"" };
|
|
6475
6817
|
if (vErrors === null) {
|
|
6476
6818
|
vErrors = [err8];
|
|
@@ -6622,8 +6964,8 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6622
6964
|
}
|
|
6623
6965
|
}
|
|
6624
6966
|
if (data.style !== undefined) {
|
|
6625
|
-
if (!(
|
|
6626
|
-
vErrors = vErrors === null ?
|
|
6967
|
+
if (!(validate69(data.style, { instancePath: instancePath + "/style", parentData: data, parentDataProperty: "style", rootData, dynamicAnchors }))) {
|
|
6968
|
+
vErrors = vErrors === null ? validate69.errors : vErrors.concat(validate69.errors);
|
|
6627
6969
|
errors = vErrors.length;
|
|
6628
6970
|
}
|
|
6629
6971
|
}
|
|
@@ -6637,10 +6979,10 @@ else {
|
|
|
6637
6979
|
vErrors.push(err21);
|
|
6638
6980
|
}
|
|
6639
6981
|
errors++;
|
|
6640
|
-
}
|
|
6641
|
-
|
|
6642
|
-
const
|
|
6643
|
-
function
|
|
6982
|
+
} validate68.errors = vErrors; return errors === 0; }
|
|
6983
|
+
validate68.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
6984
|
+
const schema115 = { "type": "object", "additionalProperties": false, "required": ["timestamp", "values"], "properties": { "timestamp": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 }, "values": { "type": "object", "minProperties": 1, "maxProperties": 64, "propertyNames": { "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$" }, "additionalProperties": { "oneOf": [{ "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" }, { "type": "null" }] } } } };
|
|
6985
|
+
function validate72(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate72.evaluated; if (evaluated0.dynamicProps) {
|
|
6644
6986
|
evaluated0.props = undefined;
|
|
6645
6987
|
} if (evaluated0.dynamicItems) {
|
|
6646
6988
|
evaluated0.items = undefined;
|
|
@@ -6738,7 +7080,7 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6738
7080
|
for (const key1 in data1) {
|
|
6739
7081
|
const _errs6 = errors;
|
|
6740
7082
|
if (typeof key1 === "string") {
|
|
6741
|
-
if (!
|
|
7083
|
+
if (!pattern39.test(key1)) {
|
|
6742
7084
|
const err8 = { instancePath: instancePath + "/values", schemaPath: "#/properties/values/propertyNames/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z][A-Za-z0-9_-]{0,63}$" }, message: "must match pattern \"" + "^[A-Za-z][A-Za-z0-9_-]{0,63}$" + "\"", propertyName: key1 };
|
|
6743
7085
|
if (vErrors === null) {
|
|
6744
7086
|
vErrors = [err8];
|
|
@@ -6870,10 +7212,10 @@ else {
|
|
|
6870
7212
|
vErrors.push(err16);
|
|
6871
7213
|
}
|
|
6872
7214
|
errors++;
|
|
6873
|
-
}
|
|
6874
|
-
|
|
6875
|
-
const
|
|
6876
|
-
function
|
|
7215
|
+
} validate72.errors = vErrors; return errors === 0; }
|
|
7216
|
+
validate72.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
7217
|
+
const schema117 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://baron.dev/kline-scene/time-series-chart-config.schema.json", "title": "TimeSeriesChartConfig", "type": "object", "additionalProperties": false, "required": ["locale", "timezone", "layout", "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 } } }, "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"] } } };
|
|
7218
|
+
function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://baron.dev/kline-scene/time-series-chart-config.schema.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate74.evaluated; if (evaluated0.dynamicProps) {
|
|
6877
7219
|
evaluated0.props = undefined;
|
|
6878
7220
|
} if (evaluated0.dynamicItems) {
|
|
6879
7221
|
evaluated0.items = undefined;
|
|
@@ -6969,7 +7311,7 @@ function validate72(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6969
7311
|
errors++;
|
|
6970
7312
|
}
|
|
6971
7313
|
for (const key0 in data) {
|
|
6972
|
-
if (!(func1.call(
|
|
7314
|
+
if (!(func1.call(schema117.properties, key0))) {
|
|
6973
7315
|
const err9 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
6974
7316
|
if (vErrors === null) {
|
|
6975
7317
|
vErrors = [err9];
|
|
@@ -7003,7 +7345,7 @@ function validate72(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7003
7345
|
}
|
|
7004
7346
|
errors++;
|
|
7005
7347
|
}
|
|
7006
|
-
if (!
|
|
7348
|
+
if (!pattern5.test(data0)) {
|
|
7007
7349
|
const err12 = { 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})*$" + "\"" };
|
|
7008
7350
|
if (vErrors === null) {
|
|
7009
7351
|
vErrors = [err12];
|
|
@@ -7048,7 +7390,7 @@ function validate72(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7048
7390
|
}
|
|
7049
7391
|
errors++;
|
|
7050
7392
|
}
|
|
7051
|
-
if (!
|
|
7393
|
+
if (!pattern6.test(data1)) {
|
|
7052
7394
|
const err16 = { 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_+-]+)*$" + "\"" };
|
|
7053
7395
|
if (vErrors === null) {
|
|
7054
7396
|
vErrors = [err16];
|
|
@@ -7128,7 +7470,7 @@ function validate72(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7128
7470
|
if (data2.backgroundColor !== undefined) {
|
|
7129
7471
|
let data3 = data2.backgroundColor;
|
|
7130
7472
|
if (typeof data3 === "string") {
|
|
7131
|
-
if (!
|
|
7473
|
+
if (!pattern7.test(data3)) {
|
|
7132
7474
|
const err23 = { 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*\\)$" + "\"" };
|
|
7133
7475
|
if (vErrors === null) {
|
|
7134
7476
|
vErrors = [err23];
|
|
@@ -7153,7 +7495,7 @@ function validate72(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7153
7495
|
if (data2.textColor !== undefined) {
|
|
7154
7496
|
let data4 = data2.textColor;
|
|
7155
7497
|
if (typeof data4 === "string") {
|
|
7156
|
-
if (!
|
|
7498
|
+
if (!pattern7.test(data4)) {
|
|
7157
7499
|
const err25 = { 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*\\)$" + "\"" };
|
|
7158
7500
|
if (vErrors === null) {
|
|
7159
7501
|
vErrors = [err25];
|
|
@@ -7295,7 +7637,7 @@ function validate72(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7295
7637
|
if (data7.horizontalColor !== undefined) {
|
|
7296
7638
|
let data8 = data7.horizontalColor;
|
|
7297
7639
|
if (typeof data8 === "string") {
|
|
7298
|
-
if (!
|
|
7640
|
+
if (!pattern7.test(data8)) {
|
|
7299
7641
|
const err37 = { 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*\\)$" + "\"" };
|
|
7300
7642
|
if (vErrors === null) {
|
|
7301
7643
|
vErrors = [err37];
|
|
@@ -7320,7 +7662,7 @@ function validate72(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7320
7662
|
if (data7.verticalColor !== undefined) {
|
|
7321
7663
|
let data9 = data7.verticalColor;
|
|
7322
7664
|
if (typeof data9 === "string") {
|
|
7323
|
-
if (!
|
|
7665
|
+
if (!pattern7.test(data9)) {
|
|
7324
7666
|
const err39 = { 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*\\)$" + "\"" };
|
|
7325
7667
|
if (vErrors === null) {
|
|
7326
7668
|
vErrors = [err39];
|
|
@@ -7357,7 +7699,7 @@ function validate72(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7357
7699
|
if (data.thousandsSeparator !== undefined) {
|
|
7358
7700
|
let data10 = data.thousandsSeparator;
|
|
7359
7701
|
if (!((((data10 === "") || (data10 === ",")) || (data10 === " ")) || (data10 === "_"))) {
|
|
7360
|
-
const err42 = { instancePath: instancePath + "/thousandsSeparator", schemaPath: "#/properties/thousandsSeparator/enum", keyword: "enum", params: { allowedValues:
|
|
7702
|
+
const err42 = { instancePath: instancePath + "/thousandsSeparator", schemaPath: "#/properties/thousandsSeparator/enum", keyword: "enum", params: { allowedValues: schema117.properties.thousandsSeparator.enum }, message: "must be equal to one of the allowed values" };
|
|
7361
7703
|
if (vErrors === null) {
|
|
7362
7704
|
vErrors = [err42];
|
|
7363
7705
|
}
|
|
@@ -7464,7 +7806,7 @@ function validate72(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7464
7806
|
if (data.zoomAnchor !== undefined) {
|
|
7465
7807
|
let data14 = data.zoomAnchor;
|
|
7466
7808
|
if (!((data14 === "cursor") || (data14 === "right"))) {
|
|
7467
|
-
const err51 = { instancePath: instancePath + "/zoomAnchor", schemaPath: "#/properties/zoomAnchor/enum", keyword: "enum", params: { allowedValues:
|
|
7809
|
+
const err51 = { instancePath: instancePath + "/zoomAnchor", schemaPath: "#/properties/zoomAnchor/enum", keyword: "enum", params: { allowedValues: schema117.properties.zoomAnchor.enum }, message: "must be equal to one of the allowed values" };
|
|
7468
7810
|
if (vErrors === null) {
|
|
7469
7811
|
vErrors = [err51];
|
|
7470
7812
|
}
|
|
@@ -7477,7 +7819,7 @@ function validate72(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7477
7819
|
if (data.dateFormat !== undefined) {
|
|
7478
7820
|
let data15 = data.dateFormat;
|
|
7479
7821
|
if (!(((data15 === "yyyy-MM-dd") || (data15 === "yyyy-MM-dd HH:mm")) || (data15 === "yyyy-MM-dd HH:mm:ss"))) {
|
|
7480
|
-
const err52 = { instancePath: instancePath + "/dateFormat", schemaPath: "#/properties/dateFormat/enum", keyword: "enum", params: { allowedValues:
|
|
7822
|
+
const err52 = { instancePath: instancePath + "/dateFormat", schemaPath: "#/properties/dateFormat/enum", keyword: "enum", params: { allowedValues: schema117.properties.dateFormat.enum }, message: "must be equal to one of the allowed values" };
|
|
7481
7823
|
if (vErrors === null) {
|
|
7482
7824
|
vErrors = [err52];
|
|
7483
7825
|
}
|
|
@@ -7490,7 +7832,7 @@ function validate72(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7490
7832
|
if (data.largeNumberFormat !== undefined) {
|
|
7491
7833
|
let data16 = data.largeNumberFormat;
|
|
7492
7834
|
if (!(((data16 === "western") || (data16 === "chinese")) || (data16 === "plain"))) {
|
|
7493
|
-
const err53 = { instancePath: instancePath + "/largeNumberFormat", schemaPath: "#/properties/largeNumberFormat/enum", keyword: "enum", params: { allowedValues:
|
|
7835
|
+
const err53 = { instancePath: instancePath + "/largeNumberFormat", schemaPath: "#/properties/largeNumberFormat/enum", keyword: "enum", params: { allowedValues: schema117.properties.largeNumberFormat.enum }, message: "must be equal to one of the allowed values" };
|
|
7494
7836
|
if (vErrors === null) {
|
|
7495
7837
|
vErrors = [err53];
|
|
7496
7838
|
}
|
|
@@ -7510,10 +7852,10 @@ else {
|
|
|
7510
7852
|
vErrors.push(err54);
|
|
7511
7853
|
}
|
|
7512
7854
|
errors++;
|
|
7513
|
-
}
|
|
7514
|
-
|
|
7515
|
-
const
|
|
7516
|
-
function
|
|
7855
|
+
} validate74.errors = vErrors; return errors === 0; }
|
|
7856
|
+
validate74.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
7857
|
+
const schema123 = { "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": { "const": "Baron Sans" }, "timeoutMs": { "type": "integer", "minimum": 100, "maximum": 120000 } } };
|
|
7858
|
+
function validate76(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate76.evaluated; if (evaluated0.dynamicProps) {
|
|
7517
7859
|
evaluated0.props = undefined;
|
|
7518
7860
|
} if (evaluated0.dynamicItems) {
|
|
7519
7861
|
evaluated0.items = undefined;
|
|
@@ -7698,7 +8040,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7698
8040
|
if (data.background !== undefined) {
|
|
7699
8041
|
let data3 = data.background;
|
|
7700
8042
|
if (typeof data3 === "string") {
|
|
7701
|
-
if (!
|
|
8043
|
+
if (!pattern7.test(data3)) {
|
|
7702
8044
|
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*\\)$" + "\"" };
|
|
7703
8045
|
if (vErrors === null) {
|
|
7704
8046
|
vErrors = [err16];
|
|
@@ -7777,10 +8119,10 @@ else {
|
|
|
7777
8119
|
vErrors.push(err22);
|
|
7778
8120
|
}
|
|
7779
8121
|
errors++;
|
|
7780
|
-
}
|
|
7781
|
-
|
|
7782
|
-
const
|
|
7783
|
-
function
|
|
8122
|
+
} validate76.errors = vErrors; return errors === 0; }
|
|
8123
|
+
validate76.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
8124
|
+
const schema125 = { "type": "object", "maxProperties": 64, "propertyNames": { "type": "string", "minLength": 1, "maxLength": 128 }, "additionalProperties": { "oneOf": [{ "type": "null" }, { "type": "boolean" }, { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" }, { "type": "string" }] } };
|
|
8125
|
+
function validate78(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate78.evaluated; if (evaluated0.dynamicProps) {
|
|
7784
8126
|
evaluated0.props = undefined;
|
|
7785
8127
|
} if (evaluated0.dynamicItems) {
|
|
7786
8128
|
evaluated0.items = undefined;
|
|
@@ -7982,9 +8324,9 @@ else {
|
|
|
7982
8324
|
vErrors.push(err12);
|
|
7983
8325
|
}
|
|
7984
8326
|
errors++;
|
|
7985
|
-
}
|
|
7986
|
-
|
|
7987
|
-
function
|
|
8327
|
+
} validate78.errors = vErrors; return errors === 0; }
|
|
8328
|
+
validate78.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
8329
|
+
function validate67(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://baron.dev/kline-scene/time-series-scene.schema.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate67.evaluated; if (evaluated0.dynamicProps) {
|
|
7988
8330
|
evaluated0.props = undefined;
|
|
7989
8331
|
} if (evaluated0.dynamicItems) {
|
|
7990
8332
|
evaluated0.items = undefined;
|
|
@@ -8090,7 +8432,7 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8090
8432
|
errors++;
|
|
8091
8433
|
}
|
|
8092
8434
|
for (const key0 in data) {
|
|
8093
|
-
if (!(func1.call(
|
|
8435
|
+
if (!(func1.call(schema109.properties, key0))) {
|
|
8094
8436
|
const err10 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
8095
8437
|
if (vErrors === null) {
|
|
8096
8438
|
vErrors = [err10];
|
|
@@ -8338,8 +8680,8 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8338
8680
|
}
|
|
8339
8681
|
const len0 = data9.length;
|
|
8340
8682
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
8341
|
-
if (!(
|
|
8342
|
-
vErrors = vErrors === null ?
|
|
8683
|
+
if (!(validate68(data9[i0], { instancePath: instancePath + "/series/" + i0, parentData: data9, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
8684
|
+
vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
|
|
8343
8685
|
errors = vErrors.length;
|
|
8344
8686
|
}
|
|
8345
8687
|
}
|
|
@@ -8380,8 +8722,8 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8380
8722
|
}
|
|
8381
8723
|
const len1 = data11.length;
|
|
8382
8724
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
8383
|
-
if (!(
|
|
8384
|
-
vErrors = vErrors === null ?
|
|
8725
|
+
if (!(validate72(data11[i1], { instancePath: instancePath + "/data/" + i1, parentData: data11, parentDataProperty: i1, rootData, dynamicAnchors }))) {
|
|
8726
|
+
vErrors = vErrors === null ? validate72.errors : vErrors.concat(validate72.errors);
|
|
8385
8727
|
errors = vErrors.length;
|
|
8386
8728
|
}
|
|
8387
8729
|
}
|
|
@@ -8398,8 +8740,8 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8398
8740
|
}
|
|
8399
8741
|
}
|
|
8400
8742
|
if (data.chart !== undefined) {
|
|
8401
|
-
if (!(
|
|
8402
|
-
vErrors = vErrors === null ?
|
|
8743
|
+
if (!(validate74(data.chart, { instancePath: instancePath + "/chart", parentData: data, parentDataProperty: "chart", rootData, dynamicAnchors }))) {
|
|
8744
|
+
vErrors = vErrors === null ? validate74.errors : vErrors.concat(validate74.errors);
|
|
8403
8745
|
errors = vErrors.length;
|
|
8404
8746
|
}
|
|
8405
8747
|
}
|
|
@@ -8566,14 +8908,14 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8566
8908
|
}
|
|
8567
8909
|
}
|
|
8568
8910
|
if (data.render !== undefined) {
|
|
8569
|
-
if (!(
|
|
8570
|
-
vErrors = vErrors === null ?
|
|
8911
|
+
if (!(validate76(data.render, { instancePath: instancePath + "/render", parentData: data, parentDataProperty: "render", rootData, dynamicAnchors }))) {
|
|
8912
|
+
vErrors = vErrors === null ? validate76.errors : vErrors.concat(validate76.errors);
|
|
8571
8913
|
errors = vErrors.length;
|
|
8572
8914
|
}
|
|
8573
8915
|
}
|
|
8574
8916
|
if (data.metadata !== undefined) {
|
|
8575
|
-
if (!(
|
|
8576
|
-
vErrors = vErrors === null ?
|
|
8917
|
+
if (!(validate78(data.metadata, { instancePath: instancePath + "/metadata", parentData: data, parentDataProperty: "metadata", rootData, dynamicAnchors }))) {
|
|
8918
|
+
vErrors = vErrors === null ? validate78.errors : vErrors.concat(validate78.errors);
|
|
8577
8919
|
errors = vErrors.length;
|
|
8578
8920
|
}
|
|
8579
8921
|
}
|
|
@@ -8587,13 +8929,13 @@ else {
|
|
|
8587
8929
|
vErrors.push(err49);
|
|
8588
8930
|
}
|
|
8589
8931
|
errors++;
|
|
8590
|
-
}
|
|
8591
|
-
|
|
8592
|
-
const schema124 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://baron.dev/kline-scene/drawing-document.schema.json", "title": "DrawingDocument", "type": "object", "additionalProperties": false, "required": ["schema", "version", "scopeKey", "coordinateSystem", "drawings", "metadata"], "properties": { "schema": { "const": "@baron1996/drawing-document" }, "version": { "const": 1 }, "scopeKey": { "type": "string", "minLength": 1, "maxLength": 256 }, "coordinateSystem": { "$ref": "#/$defs/coordinateSystem" }, "drawings": { "type": "array", "maxItems": 10000, "items": { "$ref": "#/$defs/drawing" } }, "metadata": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/metadata" } }, "$defs": { "coordinateSystem": { "type": "object", "additionalProperties": false, "required": ["timezone", "valueAxes"], "properties": { "timezone": { "$ref": "#/$defs/timezone" }, "valueAxes": { "$ref": "#/$defs/valueAxes" } } }, "timezone": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z_+-]+(?:/[A-Za-z0-9_+-]+)*$" }, "valueAxes": { "type": "array", "minItems": 1, "maxItems": 64, "items": { "$ref": "#/$defs/valueAxis" } }, "valueAxis": { "type": "object", "additionalProperties": false, "required": ["paneRole", "yAxisRole", "valuePrecision"], "properties": { "paneRole": { "type": "string", "minLength": 1, "maxLength": 128 }, "yAxisRole": { "type": "string", "minLength": 1, "maxLength": 128 }, "valuePrecision": { "type": "integer", "minimum": 0, "maximum": 16 } } }, "target": { "type": "object", "additionalProperties": false, "required": ["paneRole", "yAxisRole"], "properties": { "paneRole": { "type": "string", "minLength": 1, "maxLength": 128 }, "yAxisRole": { "type": "string", "minLength": 1, "maxLength": 128 } } }, "drawingStyles": { "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" } } }, "drawingBase": { "type": "object", "additionalProperties": false, "required": ["id", "target", "visible", "locked", "zLevel", "mode", "styles"], "properties": { "id": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId" }, "groupId": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId" }, "target": { "$ref": "#/$defs/target" }, "visible": { "type": "boolean" }, "locked": { "type": "boolean" }, "zLevel": { "type": "integer", "minimum": -1000, "maximum": 1000 }, "mode": { "enum": ["normal", "weak_magnet", "strong_magnet"] }, "styles": { "$ref": "#/$defs/drawingStyles" }, "metadata": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/metadata" } } }, "drawingTimeAnchor": { "type": "object", "additionalProperties": false, "required": ["timestamp", "granularity"], "properties": { "timestamp": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" }, "granularity": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/period" } } }, "timeValuePoint": { "type": "object", "additionalProperties": false, "required": ["timestamp", "granularity", "value"], "properties": { "timestamp": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" }, "granularity": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/period" }, "value": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" } } }, "geometryValue": { "type": "object", "additionalProperties": false, "required": ["value"], "properties": { "value": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" } } }, "geometryValueText": { "type": "object", "additionalProperties": false, "required": ["value", "text"], "properties": { "value": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" }, "text": { "type": "string", "maxLength": 4096 } } }, "geometryTime": { "type": "object", "additionalProperties": false, "required": ["time"], "properties": { "time": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" } } }, "geometryValueSpan": { "type": "object", "additionalProperties": false, "required": ["value", "startTime", "endTime"], "properties": { "value": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" }, "startTime": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" }, "endTime": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" } } }, "geometryTimeSpan": { "type": "object", "additionalProperties": false, "required": ["time", "startValue", "endValue"], "properties": { "time": { "$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" } } }, "geometryTwoPoints": { "type": "object", "additionalProperties": false, "required": ["points"], "properties": { "points": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "$ref": "#/$defs/timeValuePoint" } } } }, "geometryThreePoints": { "type": "object", "additionalProperties": false, "required": ["points"], "properties": { "points": { "type": "array", "minItems": 3, "maxItems": 3, "items": { "$ref": "#/$defs/timeValuePoint" } } } }, "geometryBrushPoints": { "type": "object", "additionalProperties": false, "required": ["points"], "properties": { "points": { "type": "array", "minItems": 2, "maxItems": 256, "items": { "$ref": "#/$defs/timeValuePoint" } } } }, "geometryPointText": { "type": "object", "additionalProperties": false, "required": ["point", "text"], "properties": { "point": { "$ref": "#/$defs/timeValuePoint" }, "text": { "type": "string", "maxLength": 4096 } } }, "geometryPoint": { "type": "object", "additionalProperties": false, "required": ["point"], "properties": { "point": { "$ref": "#/$defs/timeValuePoint" } } }, "geometryStartEnd": { "type": "object", "additionalProperties": false, "required": ["start", "end"], "properties": { "start": { "$ref": "#/$defs/timeValuePoint" }, "end": { "$ref": "#/$defs/timeValuePoint" } } }, "drawing": { "type": "object", "additionalProperties": false, "required": ["id", "target", "visible", "locked", "zLevel", "mode", "styles", "type", "geometry"], "properties": { "id": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId" }, "groupId": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId" }, "target": { "$ref": "#/$defs/target" }, "visible": { "type": "boolean" }, "locked": { "type": "boolean" }, "zLevel": { "type": "integer", "minimum": -1000, "maximum": 1000 }, "mode": { "enum": ["normal", "weak_magnet", "strong_magnet"] }, "styles": { "$ref": "#/$defs/drawingStyles" }, "metadata": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/metadata" }, "type": { "enum": ["horizontalStraightLine", "priceLine", "simpleTag", "verticalStraightLine", "horizontalRayLine", "horizontalSegment", "verticalRayLine", "verticalSegment", "rayLine", "segment", "straightLine", "fibonacciLine", "priceChannelLine", "parallelStraightLine", "brush", "simpleAnnotation", "callout", "text", "crossLine", "rectangle", "arrow", "priceMeasurement"] }, "geometry": { "type": "object" } }, "oneOf": [{ "title": "DrawingHorizontalStraightLine", "properties": { "type": { "const": "horizontalStraightLine" }, "geometry": { "$ref": "#/$defs/geometryValue" } }, "required": ["type", "geometry"] }, { "title": "DrawingPriceLine", "properties": { "type": { "const": "priceLine" }, "geometry": { "$ref": "#/$defs/geometryValue" } }, "required": ["type", "geometry"] }, { "title": "DrawingSimpleTag", "properties": { "type": { "const": "simpleTag" }, "geometry": { "$ref": "#/$defs/geometryValueText" } }, "required": ["type", "geometry"] }, { "title": "DrawingVerticalStraightLine", "properties": { "type": { "const": "verticalStraightLine" }, "geometry": { "$ref": "#/$defs/geometryTime" } }, "required": ["type", "geometry"] }, { "title": "DrawingHorizontalRayLine", "properties": { "type": { "const": "horizontalRayLine" }, "geometry": { "$ref": "#/$defs/geometryValueSpan" } }, "required": ["type", "geometry"] }, { "title": "DrawingHorizontalSegment", "properties": { "type": { "const": "horizontalSegment" }, "geometry": { "$ref": "#/$defs/geometryValueSpan" } }, "required": ["type", "geometry"] }, { "title": "DrawingVerticalRayLine", "properties": { "type": { "const": "verticalRayLine" }, "geometry": { "$ref": "#/$defs/geometryTimeSpan" } }, "required": ["type", "geometry"] }, { "title": "DrawingVerticalSegment", "properties": { "type": { "const": "verticalSegment" }, "geometry": { "$ref": "#/$defs/geometryTimeSpan" } }, "required": ["type", "geometry"] }, { "title": "DrawingRayLine", "properties": { "type": { "const": "rayLine" }, "geometry": { "$ref": "#/$defs/geometryTwoPoints" } }, "required": ["type", "geometry"] }, { "title": "DrawingSegment", "properties": { "type": { "const": "segment" }, "geometry": { "$ref": "#/$defs/geometryTwoPoints" } }, "required": ["type", "geometry"] }, { "title": "DrawingStraightLine", "properties": { "type": { "const": "straightLine" }, "geometry": { "$ref": "#/$defs/geometryTwoPoints" } }, "required": ["type", "geometry"] }, { "title": "DrawingFibonacciLine", "properties": { "type": { "const": "fibonacciLine" }, "geometry": { "$ref": "#/$defs/geometryTwoPoints" } }, "required": ["type", "geometry"] }, { "title": "DrawingPriceChannelLine", "properties": { "type": { "const": "priceChannelLine" }, "geometry": { "$ref": "#/$defs/geometryThreePoints" } }, "required": ["type", "geometry"] }, { "title": "DrawingParallelStraightLine", "properties": { "type": { "const": "parallelStraightLine" }, "geometry": { "$ref": "#/$defs/geometryThreePoints" } }, "required": ["type", "geometry"] }, { "title": "DrawingBrush", "properties": { "type": { "const": "brush" }, "geometry": { "$ref": "#/$defs/geometryBrushPoints" } }, "required": ["type", "geometry"] }, { "title": "DrawingSimpleAnnotation", "properties": { "type": { "const": "simpleAnnotation" }, "geometry": { "$ref": "#/$defs/geometryPointText" } }, "required": ["type", "geometry"] }, { "title": "DrawingCallout", "properties": { "type": { "const": "callout" }, "geometry": { "$ref": "#/$defs/geometryPointText" } }, "required": ["type", "geometry"] }, { "title": "DrawingText", "properties": { "type": { "const": "text" }, "geometry": { "$ref": "#/$defs/geometryPointText" } }, "required": ["type", "geometry"] }, { "title": "DrawingCrossLine", "properties": { "type": { "const": "crossLine" }, "geometry": { "$ref": "#/$defs/geometryPoint" } }, "required": ["type", "geometry"] }, { "title": "DrawingRectangle", "properties": { "type": { "const": "rectangle" }, "geometry": { "$ref": "#/$defs/geometryStartEnd" } }, "required": ["type", "geometry"] }, { "title": "DrawingArrow", "properties": { "type": { "const": "arrow" }, "geometry": { "$ref": "#/$defs/geometryStartEnd" } }, "required": ["type", "geometry"] }, { "title": "DrawingPriceMeasurement", "properties": { "type": { "const": "priceMeasurement" }, "geometry": { "$ref": "#/$defs/geometryStartEnd" } }, "required": ["type", "geometry"] }] } } };
|
|
8593
|
-
const
|
|
8594
|
-
const
|
|
8595
|
-
const
|
|
8596
|
-
function
|
|
8932
|
+
} validate67.errors = vErrors; return errors === 0; }
|
|
8933
|
+
validate67.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
8934
|
+
const schema127 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://baron.dev/kline-scene/drawing-document.schema.json", "title": "DrawingDocument", "type": "object", "additionalProperties": false, "required": ["schema", "version", "scopeKey", "coordinateSystem", "drawings", "metadata"], "properties": { "schema": { "const": "@baron1996/drawing-document" }, "version": { "const": 1 }, "scopeKey": { "type": "string", "minLength": 1, "maxLength": 256 }, "coordinateSystem": { "$ref": "#/$defs/coordinateSystem" }, "drawings": { "type": "array", "maxItems": 10000, "items": { "$ref": "#/$defs/drawing" } }, "metadata": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/metadata" } }, "$defs": { "coordinateSystem": { "type": "object", "additionalProperties": false, "required": ["timezone", "valueAxes"], "properties": { "timezone": { "$ref": "#/$defs/timezone" }, "valueAxes": { "$ref": "#/$defs/valueAxes" } } }, "timezone": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z_+-]+(?:/[A-Za-z0-9_+-]+)*$" }, "valueAxes": { "type": "array", "minItems": 1, "maxItems": 64, "items": { "$ref": "#/$defs/valueAxis" } }, "valueAxis": { "type": "object", "additionalProperties": false, "required": ["paneRole", "yAxisRole", "valuePrecision"], "properties": { "paneRole": { "type": "string", "minLength": 1, "maxLength": 128 }, "yAxisRole": { "type": "string", "minLength": 1, "maxLength": 128 }, "valuePrecision": { "type": "integer", "minimum": 0, "maximum": 16 } } }, "target": { "type": "object", "additionalProperties": false, "required": ["paneRole", "yAxisRole"], "properties": { "paneRole": { "type": "string", "minLength": 1, "maxLength": 128 }, "yAxisRole": { "type": "string", "minLength": 1, "maxLength": 128 } } }, "drawingStyles": { "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" } } }, "drawingBase": { "type": "object", "additionalProperties": false, "required": ["id", "target", "visible", "locked", "zLevel", "mode", "styles"], "properties": { "id": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId" }, "groupId": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId" }, "target": { "$ref": "#/$defs/target" }, "visible": { "type": "boolean" }, "locked": { "type": "boolean" }, "zLevel": { "type": "integer", "minimum": -1000, "maximum": 1000 }, "mode": { "enum": ["normal", "weak_magnet", "strong_magnet"] }, "styles": { "$ref": "#/$defs/drawingStyles" }, "metadata": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/metadata" } } }, "drawingTimeAnchor": { "type": "object", "additionalProperties": false, "required": ["timestamp", "granularity"], "properties": { "timestamp": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" }, "granularity": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/period" } } }, "timeValuePoint": { "type": "object", "additionalProperties": false, "required": ["timestamp", "granularity", "value"], "properties": { "timestamp": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" }, "granularity": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/period" }, "value": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" } } }, "geometryValue": { "type": "object", "additionalProperties": false, "required": ["value"], "properties": { "value": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" } } }, "geometryValueText": { "type": "object", "additionalProperties": false, "required": ["value", "text"], "properties": { "value": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" }, "text": { "type": "string", "maxLength": 4096 } } }, "geometryTime": { "type": "object", "additionalProperties": false, "required": ["time"], "properties": { "time": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" } } }, "geometryValueSpan": { "type": "object", "additionalProperties": false, "required": ["value", "startTime", "endTime"], "properties": { "value": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" }, "startTime": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" }, "endTime": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" } } }, "geometryTimeSpan": { "type": "object", "additionalProperties": false, "required": ["time", "startValue", "endValue"], "properties": { "time": { "$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" } } }, "geometryTwoPoints": { "type": "object", "additionalProperties": false, "required": ["points"], "properties": { "points": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "$ref": "#/$defs/timeValuePoint" } } } }, "geometryThreePoints": { "type": "object", "additionalProperties": false, "required": ["points"], "properties": { "points": { "type": "array", "minItems": 3, "maxItems": 3, "items": { "$ref": "#/$defs/timeValuePoint" } } } }, "geometryBrushPoints": { "type": "object", "additionalProperties": false, "required": ["points"], "properties": { "points": { "type": "array", "minItems": 2, "maxItems": 256, "items": { "$ref": "#/$defs/timeValuePoint" } } } }, "geometryPointText": { "type": "object", "additionalProperties": false, "required": ["point", "text"], "properties": { "point": { "$ref": "#/$defs/timeValuePoint" }, "text": { "type": "string", "maxLength": 4096 } } }, "geometryPoint": { "type": "object", "additionalProperties": false, "required": ["point"], "properties": { "point": { "$ref": "#/$defs/timeValuePoint" } } }, "geometryStartEnd": { "type": "object", "additionalProperties": false, "required": ["start", "end"], "properties": { "start": { "$ref": "#/$defs/timeValuePoint" }, "end": { "$ref": "#/$defs/timeValuePoint" } } }, "drawing": { "type": "object", "additionalProperties": false, "required": ["id", "target", "visible", "locked", "zLevel", "mode", "styles", "type", "geometry"], "properties": { "id": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId" }, "groupId": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId" }, "target": { "$ref": "#/$defs/target" }, "visible": { "type": "boolean" }, "locked": { "type": "boolean" }, "zLevel": { "type": "integer", "minimum": -1000, "maximum": 1000 }, "mode": { "enum": ["normal", "weak_magnet", "strong_magnet"] }, "styles": { "$ref": "#/$defs/drawingStyles" }, "metadata": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/metadata" }, "type": { "enum": ["horizontalStraightLine", "priceLine", "simpleTag", "verticalStraightLine", "horizontalRayLine", "horizontalSegment", "verticalRayLine", "verticalSegment", "rayLine", "segment", "straightLine", "fibonacciLine", "priceChannelLine", "parallelStraightLine", "brush", "simpleAnnotation", "callout", "text", "crossLine", "rectangle", "arrow", "priceMeasurement"] }, "geometry": { "type": "object" } }, "oneOf": [{ "title": "DrawingHorizontalStraightLine", "properties": { "type": { "const": "horizontalStraightLine" }, "geometry": { "$ref": "#/$defs/geometryValue" } }, "required": ["type", "geometry"] }, { "title": "DrawingPriceLine", "properties": { "type": { "const": "priceLine" }, "geometry": { "$ref": "#/$defs/geometryValue" } }, "required": ["type", "geometry"] }, { "title": "DrawingSimpleTag", "properties": { "type": { "const": "simpleTag" }, "geometry": { "$ref": "#/$defs/geometryValueText" } }, "required": ["type", "geometry"] }, { "title": "DrawingVerticalStraightLine", "properties": { "type": { "const": "verticalStraightLine" }, "geometry": { "$ref": "#/$defs/geometryTime" } }, "required": ["type", "geometry"] }, { "title": "DrawingHorizontalRayLine", "properties": { "type": { "const": "horizontalRayLine" }, "geometry": { "$ref": "#/$defs/geometryValueSpan" } }, "required": ["type", "geometry"] }, { "title": "DrawingHorizontalSegment", "properties": { "type": { "const": "horizontalSegment" }, "geometry": { "$ref": "#/$defs/geometryValueSpan" } }, "required": ["type", "geometry"] }, { "title": "DrawingVerticalRayLine", "properties": { "type": { "const": "verticalRayLine" }, "geometry": { "$ref": "#/$defs/geometryTimeSpan" } }, "required": ["type", "geometry"] }, { "title": "DrawingVerticalSegment", "properties": { "type": { "const": "verticalSegment" }, "geometry": { "$ref": "#/$defs/geometryTimeSpan" } }, "required": ["type", "geometry"] }, { "title": "DrawingRayLine", "properties": { "type": { "const": "rayLine" }, "geometry": { "$ref": "#/$defs/geometryTwoPoints" } }, "required": ["type", "geometry"] }, { "title": "DrawingSegment", "properties": { "type": { "const": "segment" }, "geometry": { "$ref": "#/$defs/geometryTwoPoints" } }, "required": ["type", "geometry"] }, { "title": "DrawingStraightLine", "properties": { "type": { "const": "straightLine" }, "geometry": { "$ref": "#/$defs/geometryTwoPoints" } }, "required": ["type", "geometry"] }, { "title": "DrawingFibonacciLine", "properties": { "type": { "const": "fibonacciLine" }, "geometry": { "$ref": "#/$defs/geometryTwoPoints" } }, "required": ["type", "geometry"] }, { "title": "DrawingPriceChannelLine", "properties": { "type": { "const": "priceChannelLine" }, "geometry": { "$ref": "#/$defs/geometryThreePoints" } }, "required": ["type", "geometry"] }, { "title": "DrawingParallelStraightLine", "properties": { "type": { "const": "parallelStraightLine" }, "geometry": { "$ref": "#/$defs/geometryThreePoints" } }, "required": ["type", "geometry"] }, { "title": "DrawingBrush", "properties": { "type": { "const": "brush" }, "geometry": { "$ref": "#/$defs/geometryBrushPoints" } }, "required": ["type", "geometry"] }, { "title": "DrawingSimpleAnnotation", "properties": { "type": { "const": "simpleAnnotation" }, "geometry": { "$ref": "#/$defs/geometryPointText" } }, "required": ["type", "geometry"] }, { "title": "DrawingCallout", "properties": { "type": { "const": "callout" }, "geometry": { "$ref": "#/$defs/geometryPointText" } }, "required": ["type", "geometry"] }, { "title": "DrawingText", "properties": { "type": { "const": "text" }, "geometry": { "$ref": "#/$defs/geometryPointText" } }, "required": ["type", "geometry"] }, { "title": "DrawingCrossLine", "properties": { "type": { "const": "crossLine" }, "geometry": { "$ref": "#/$defs/geometryPoint" } }, "required": ["type", "geometry"] }, { "title": "DrawingRectangle", "properties": { "type": { "const": "rectangle" }, "geometry": { "$ref": "#/$defs/geometryStartEnd" } }, "required": ["type", "geometry"] }, { "title": "DrawingArrow", "properties": { "type": { "const": "arrow" }, "geometry": { "$ref": "#/$defs/geometryStartEnd" } }, "required": ["type", "geometry"] }, { "title": "DrawingPriceMeasurement", "properties": { "type": { "const": "priceMeasurement" }, "geometry": { "$ref": "#/$defs/geometryStartEnd" } }, "required": ["type", "geometry"] }] } } };
|
|
8935
|
+
const schema128 = { "type": "object", "additionalProperties": false, "required": ["timezone", "valueAxes"], "properties": { "timezone": { "$ref": "#/$defs/timezone" }, "valueAxes": { "$ref": "#/$defs/valueAxes" } } };
|
|
8936
|
+
const schema130 = { "type": "array", "minItems": 1, "maxItems": 64, "items": { "$ref": "#/$defs/valueAxis" } };
|
|
8937
|
+
const schema131 = { "type": "object", "additionalProperties": false, "required": ["paneRole", "yAxisRole", "valuePrecision"], "properties": { "paneRole": { "type": "string", "minLength": 1, "maxLength": 128 }, "yAxisRole": { "type": "string", "minLength": 1, "maxLength": 128 }, "valuePrecision": { "type": "integer", "minimum": 0, "maximum": 16 } } };
|
|
8938
|
+
function validate83(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate83.evaluated; if (evaluated0.dynamicProps) {
|
|
8597
8939
|
evaluated0.props = undefined;
|
|
8598
8940
|
} if (evaluated0.dynamicItems) {
|
|
8599
8941
|
evaluated0.items = undefined;
|
|
@@ -8791,9 +9133,9 @@ else {
|
|
|
8791
9133
|
vErrors.push(err16);
|
|
8792
9134
|
}
|
|
8793
9135
|
errors++;
|
|
8794
|
-
}
|
|
8795
|
-
|
|
8796
|
-
function
|
|
9136
|
+
} validate83.errors = vErrors; return errors === 0; }
|
|
9137
|
+
validate83.evaluated = { "items": true, "dynamicProps": false, "dynamicItems": false };
|
|
9138
|
+
function validate82(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate82.evaluated; if (evaluated0.dynamicProps) {
|
|
8797
9139
|
evaluated0.props = undefined;
|
|
8798
9140
|
} if (evaluated0.dynamicItems) {
|
|
8799
9141
|
evaluated0.items = undefined;
|
|
@@ -8853,7 +9195,7 @@ function validate80(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8853
9195
|
}
|
|
8854
9196
|
errors++;
|
|
8855
9197
|
}
|
|
8856
|
-
if (!
|
|
9198
|
+
if (!pattern6.test(data0)) {
|
|
8857
9199
|
const err5 = { instancePath: instancePath + "/timezone", schemaPath: "#/$defs/timezone/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z_+-]+(?:/[A-Za-z0-9_+-]+)*$" }, message: "must match pattern \"" + "^[A-Za-z_+-]+(?:/[A-Za-z0-9_+-]+)*$" + "\"" };
|
|
8858
9200
|
if (vErrors === null) {
|
|
8859
9201
|
vErrors = [err5];
|
|
@@ -8876,8 +9218,8 @@ function validate80(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8876
9218
|
}
|
|
8877
9219
|
}
|
|
8878
9220
|
if (data.valueAxes !== undefined) {
|
|
8879
|
-
if (!(
|
|
8880
|
-
vErrors = vErrors === null ?
|
|
9221
|
+
if (!(validate83(data.valueAxes, { instancePath: instancePath + "/valueAxes", parentData: data, parentDataProperty: "valueAxes", rootData, dynamicAnchors }))) {
|
|
9222
|
+
vErrors = vErrors === null ? validate83.errors : vErrors.concat(validate83.errors);
|
|
8881
9223
|
errors = vErrors.length;
|
|
8882
9224
|
}
|
|
8883
9225
|
}
|
|
@@ -8891,12 +9233,12 @@ else {
|
|
|
8891
9233
|
vErrors.push(err7);
|
|
8892
9234
|
}
|
|
8893
9235
|
errors++;
|
|
8894
|
-
}
|
|
8895
|
-
|
|
8896
|
-
const
|
|
8897
|
-
const
|
|
8898
|
-
const
|
|
8899
|
-
function
|
|
9236
|
+
} validate82.errors = vErrors; return errors === 0; }
|
|
9237
|
+
validate82.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
9238
|
+
const schema132 = { "type": "object", "additionalProperties": false, "required": ["id", "target", "visible", "locked", "zLevel", "mode", "styles", "type", "geometry"], "properties": { "id": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId" }, "groupId": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/stableId" }, "target": { "$ref": "#/$defs/target" }, "visible": { "type": "boolean" }, "locked": { "type": "boolean" }, "zLevel": { "type": "integer", "minimum": -1000, "maximum": 1000 }, "mode": { "enum": ["normal", "weak_magnet", "strong_magnet"] }, "styles": { "$ref": "#/$defs/drawingStyles" }, "metadata": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/metadata" }, "type": { "enum": ["horizontalStraightLine", "priceLine", "simpleTag", "verticalStraightLine", "horizontalRayLine", "horizontalSegment", "verticalRayLine", "verticalSegment", "rayLine", "segment", "straightLine", "fibonacciLine", "priceChannelLine", "parallelStraightLine", "brush", "simpleAnnotation", "callout", "text", "crossLine", "rectangle", "arrow", "priceMeasurement"] }, "geometry": { "type": "object" } }, "oneOf": [{ "title": "DrawingHorizontalStraightLine", "properties": { "type": { "const": "horizontalStraightLine" }, "geometry": { "$ref": "#/$defs/geometryValue" } }, "required": ["type", "geometry"] }, { "title": "DrawingPriceLine", "properties": { "type": { "const": "priceLine" }, "geometry": { "$ref": "#/$defs/geometryValue" } }, "required": ["type", "geometry"] }, { "title": "DrawingSimpleTag", "properties": { "type": { "const": "simpleTag" }, "geometry": { "$ref": "#/$defs/geometryValueText" } }, "required": ["type", "geometry"] }, { "title": "DrawingVerticalStraightLine", "properties": { "type": { "const": "verticalStraightLine" }, "geometry": { "$ref": "#/$defs/geometryTime" } }, "required": ["type", "geometry"] }, { "title": "DrawingHorizontalRayLine", "properties": { "type": { "const": "horizontalRayLine" }, "geometry": { "$ref": "#/$defs/geometryValueSpan" } }, "required": ["type", "geometry"] }, { "title": "DrawingHorizontalSegment", "properties": { "type": { "const": "horizontalSegment" }, "geometry": { "$ref": "#/$defs/geometryValueSpan" } }, "required": ["type", "geometry"] }, { "title": "DrawingVerticalRayLine", "properties": { "type": { "const": "verticalRayLine" }, "geometry": { "$ref": "#/$defs/geometryTimeSpan" } }, "required": ["type", "geometry"] }, { "title": "DrawingVerticalSegment", "properties": { "type": { "const": "verticalSegment" }, "geometry": { "$ref": "#/$defs/geometryTimeSpan" } }, "required": ["type", "geometry"] }, { "title": "DrawingRayLine", "properties": { "type": { "const": "rayLine" }, "geometry": { "$ref": "#/$defs/geometryTwoPoints" } }, "required": ["type", "geometry"] }, { "title": "DrawingSegment", "properties": { "type": { "const": "segment" }, "geometry": { "$ref": "#/$defs/geometryTwoPoints" } }, "required": ["type", "geometry"] }, { "title": "DrawingStraightLine", "properties": { "type": { "const": "straightLine" }, "geometry": { "$ref": "#/$defs/geometryTwoPoints" } }, "required": ["type", "geometry"] }, { "title": "DrawingFibonacciLine", "properties": { "type": { "const": "fibonacciLine" }, "geometry": { "$ref": "#/$defs/geometryTwoPoints" } }, "required": ["type", "geometry"] }, { "title": "DrawingPriceChannelLine", "properties": { "type": { "const": "priceChannelLine" }, "geometry": { "$ref": "#/$defs/geometryThreePoints" } }, "required": ["type", "geometry"] }, { "title": "DrawingParallelStraightLine", "properties": { "type": { "const": "parallelStraightLine" }, "geometry": { "$ref": "#/$defs/geometryThreePoints" } }, "required": ["type", "geometry"] }, { "title": "DrawingBrush", "properties": { "type": { "const": "brush" }, "geometry": { "$ref": "#/$defs/geometryBrushPoints" } }, "required": ["type", "geometry"] }, { "title": "DrawingSimpleAnnotation", "properties": { "type": { "const": "simpleAnnotation" }, "geometry": { "$ref": "#/$defs/geometryPointText" } }, "required": ["type", "geometry"] }, { "title": "DrawingCallout", "properties": { "type": { "const": "callout" }, "geometry": { "$ref": "#/$defs/geometryPointText" } }, "required": ["type", "geometry"] }, { "title": "DrawingText", "properties": { "type": { "const": "text" }, "geometry": { "$ref": "#/$defs/geometryPointText" } }, "required": ["type", "geometry"] }, { "title": "DrawingCrossLine", "properties": { "type": { "const": "crossLine" }, "geometry": { "$ref": "#/$defs/geometryPoint" } }, "required": ["type", "geometry"] }, { "title": "DrawingRectangle", "properties": { "type": { "const": "rectangle" }, "geometry": { "$ref": "#/$defs/geometryStartEnd" } }, "required": ["type", "geometry"] }, { "title": "DrawingArrow", "properties": { "type": { "const": "arrow" }, "geometry": { "$ref": "#/$defs/geometryStartEnd" } }, "required": ["type", "geometry"] }, { "title": "DrawingPriceMeasurement", "properties": { "type": { "const": "priceMeasurement" }, "geometry": { "$ref": "#/$defs/geometryStartEnd" } }, "required": ["type", "geometry"] }] };
|
|
9239
|
+
const schema159 = { "type": "object", "additionalProperties": false, "required": ["paneRole", "yAxisRole"], "properties": { "paneRole": { "type": "string", "minLength": 1, "maxLength": 128 }, "yAxisRole": { "type": "string", "minLength": 1, "maxLength": 128 } } };
|
|
9240
|
+
const schema133 = { "type": "object", "additionalProperties": false, "required": ["value"], "properties": { "value": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" } } };
|
|
9241
|
+
function validate87(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate87.evaluated; if (evaluated0.dynamicProps) {
|
|
8900
9242
|
evaluated0.props = undefined;
|
|
8901
9243
|
} if (evaluated0.dynamicItems) {
|
|
8902
9244
|
evaluated0.items = undefined;
|
|
@@ -8968,10 +9310,10 @@ else {
|
|
|
8968
9310
|
vErrors.push(err5);
|
|
8969
9311
|
}
|
|
8970
9312
|
errors++;
|
|
8971
|
-
}
|
|
8972
|
-
|
|
8973
|
-
const
|
|
8974
|
-
function
|
|
9313
|
+
} validate87.errors = vErrors; return errors === 0; }
|
|
9314
|
+
validate87.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
9315
|
+
const schema135 = { "type": "object", "additionalProperties": false, "required": ["value", "text"], "properties": { "value": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" }, "text": { "type": "string", "maxLength": 4096 } } };
|
|
9316
|
+
function validate90(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate90.evaluated; if (evaluated0.dynamicProps) {
|
|
8975
9317
|
evaluated0.props = undefined;
|
|
8976
9318
|
} if (evaluated0.dynamicItems) {
|
|
8977
9319
|
evaluated0.items = undefined;
|
|
@@ -9078,10 +9420,10 @@ else {
|
|
|
9078
9420
|
vErrors.push(err8);
|
|
9079
9421
|
}
|
|
9080
9422
|
errors++;
|
|
9081
|
-
}
|
|
9082
|
-
|
|
9083
|
-
const
|
|
9084
|
-
function
|
|
9423
|
+
} validate90.errors = vErrors; return errors === 0; }
|
|
9424
|
+
validate90.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
9425
|
+
const schema137 = { "type": "object", "additionalProperties": false, "required": ["time"], "properties": { "time": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" } } };
|
|
9426
|
+
function validate92(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate92.evaluated; if (evaluated0.dynamicProps) {
|
|
9085
9427
|
evaluated0.props = undefined;
|
|
9086
9428
|
} if (evaluated0.dynamicItems) {
|
|
9087
9429
|
evaluated0.items = undefined;
|
|
@@ -9153,10 +9495,10 @@ else {
|
|
|
9153
9495
|
vErrors.push(err5);
|
|
9154
9496
|
}
|
|
9155
9497
|
errors++;
|
|
9156
|
-
}
|
|
9157
|
-
|
|
9158
|
-
const
|
|
9159
|
-
function
|
|
9498
|
+
} validate92.errors = vErrors; return errors === 0; }
|
|
9499
|
+
validate92.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
9500
|
+
const schema139 = { "type": "object", "additionalProperties": false, "required": ["value", "startTime", "endTime"], "properties": { "value": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" }, "startTime": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" }, "endTime": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" } } };
|
|
9501
|
+
function validate94(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate94.evaluated; if (evaluated0.dynamicProps) {
|
|
9160
9502
|
evaluated0.props = undefined;
|
|
9161
9503
|
} if (evaluated0.dynamicItems) {
|
|
9162
9504
|
evaluated0.items = undefined;
|
|
@@ -9318,10 +9660,10 @@ else {
|
|
|
9318
9660
|
vErrors.push(err13);
|
|
9319
9661
|
}
|
|
9320
9662
|
errors++;
|
|
9321
|
-
}
|
|
9322
|
-
|
|
9323
|
-
const
|
|
9324
|
-
function
|
|
9663
|
+
} validate94.errors = vErrors; return errors === 0; }
|
|
9664
|
+
validate94.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
9665
|
+
const schema143 = { "type": "object", "additionalProperties": false, "required": ["time", "startValue", "endValue"], "properties": { "time": { "$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" } } };
|
|
9666
|
+
function validate97(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate97.evaluated; if (evaluated0.dynamicProps) {
|
|
9325
9667
|
evaluated0.props = undefined;
|
|
9326
9668
|
} if (evaluated0.dynamicItems) {
|
|
9327
9669
|
evaluated0.items = undefined;
|
|
@@ -9483,11 +9825,11 @@ else {
|
|
|
9483
9825
|
vErrors.push(err13);
|
|
9484
9826
|
}
|
|
9485
9827
|
errors++;
|
|
9486
|
-
}
|
|
9487
|
-
|
|
9488
|
-
const
|
|
9489
|
-
const
|
|
9490
|
-
function
|
|
9828
|
+
} validate97.errors = vErrors; return errors === 0; }
|
|
9829
|
+
validate97.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
9830
|
+
const schema147 = { "type": "object", "additionalProperties": false, "required": ["points"], "properties": { "points": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "$ref": "#/$defs/timeValuePoint" } } } };
|
|
9831
|
+
const schema148 = { "type": "object", "additionalProperties": false, "required": ["timestamp", "granularity", "value"], "properties": { "timestamp": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/safeInteger" }, "granularity": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/period" }, "value": { "$ref": "https://baron.dev/kline-scene/common.schema.json#/$defs/finiteNumber" } } };
|
|
9832
|
+
function validate101(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate101.evaluated; if (evaluated0.dynamicProps) {
|
|
9491
9833
|
evaluated0.props = undefined;
|
|
9492
9834
|
} if (evaluated0.dynamicItems) {
|
|
9493
9835
|
evaluated0.items = undefined;
|
|
@@ -9709,9 +10051,9 @@ else {
|
|
|
9709
10051
|
vErrors.push(err18);
|
|
9710
10052
|
}
|
|
9711
10053
|
errors++;
|
|
9712
|
-
}
|
|
9713
|
-
|
|
9714
|
-
function
|
|
10054
|
+
} validate101.errors = vErrors; return errors === 0; }
|
|
10055
|
+
validate101.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10056
|
+
function validate100(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate100.evaluated; if (evaluated0.dynamicProps) {
|
|
9715
10057
|
evaluated0.props = undefined;
|
|
9716
10058
|
} if (evaluated0.dynamicItems) {
|
|
9717
10059
|
evaluated0.items = undefined;
|
|
@@ -9763,8 +10105,8 @@ function validate98(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9763
10105
|
}
|
|
9764
10106
|
const len0 = data0.length;
|
|
9765
10107
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
9766
|
-
if (!(
|
|
9767
|
-
vErrors = vErrors === null ?
|
|
10108
|
+
if (!(validate101(data0[i0], { instancePath: instancePath + "/points/" + i0, parentData: data0, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
10109
|
+
vErrors = vErrors === null ? validate101.errors : vErrors.concat(validate101.errors);
|
|
9768
10110
|
errors = vErrors.length;
|
|
9769
10111
|
}
|
|
9770
10112
|
}
|
|
@@ -9790,10 +10132,10 @@ else {
|
|
|
9790
10132
|
vErrors.push(err5);
|
|
9791
10133
|
}
|
|
9792
10134
|
errors++;
|
|
9793
|
-
}
|
|
9794
|
-
|
|
9795
|
-
const
|
|
9796
|
-
function
|
|
10135
|
+
} validate100.errors = vErrors; return errors === 0; }
|
|
10136
|
+
validate100.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10137
|
+
const schema152 = { "type": "object", "additionalProperties": false, "required": ["points"], "properties": { "points": { "type": "array", "minItems": 3, "maxItems": 3, "items": { "$ref": "#/$defs/timeValuePoint" } } } };
|
|
10138
|
+
function validate107(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate107.evaluated; if (evaluated0.dynamicProps) {
|
|
9797
10139
|
evaluated0.props = undefined;
|
|
9798
10140
|
} if (evaluated0.dynamicItems) {
|
|
9799
10141
|
evaluated0.items = undefined;
|
|
@@ -9845,8 +10187,8 @@ function validate105(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
9845
10187
|
}
|
|
9846
10188
|
const len0 = data0.length;
|
|
9847
10189
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
9848
|
-
if (!(
|
|
9849
|
-
vErrors = vErrors === null ?
|
|
10190
|
+
if (!(validate101(data0[i0], { instancePath: instancePath + "/points/" + i0, parentData: data0, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
10191
|
+
vErrors = vErrors === null ? validate101.errors : vErrors.concat(validate101.errors);
|
|
9850
10192
|
errors = vErrors.length;
|
|
9851
10193
|
}
|
|
9852
10194
|
}
|
|
@@ -9872,10 +10214,10 @@ else {
|
|
|
9872
10214
|
vErrors.push(err5);
|
|
9873
10215
|
}
|
|
9874
10216
|
errors++;
|
|
9875
|
-
}
|
|
9876
|
-
|
|
9877
|
-
const
|
|
9878
|
-
function
|
|
10217
|
+
} validate107.errors = vErrors; return errors === 0; }
|
|
10218
|
+
validate107.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10219
|
+
const schema153 = { "type": "object", "additionalProperties": false, "required": ["points"], "properties": { "points": { "type": "array", "minItems": 2, "maxItems": 256, "items": { "$ref": "#/$defs/timeValuePoint" } } } };
|
|
10220
|
+
function validate111(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate111.evaluated; if (evaluated0.dynamicProps) {
|
|
9879
10221
|
evaluated0.props = undefined;
|
|
9880
10222
|
} if (evaluated0.dynamicItems) {
|
|
9881
10223
|
evaluated0.items = undefined;
|
|
@@ -9927,8 +10269,8 @@ function validate109(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
9927
10269
|
}
|
|
9928
10270
|
const len0 = data0.length;
|
|
9929
10271
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
9930
|
-
if (!(
|
|
9931
|
-
vErrors = vErrors === null ?
|
|
10272
|
+
if (!(validate101(data0[i0], { instancePath: instancePath + "/points/" + i0, parentData: data0, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
10273
|
+
vErrors = vErrors === null ? validate101.errors : vErrors.concat(validate101.errors);
|
|
9932
10274
|
errors = vErrors.length;
|
|
9933
10275
|
}
|
|
9934
10276
|
}
|
|
@@ -9954,10 +10296,10 @@ else {
|
|
|
9954
10296
|
vErrors.push(err5);
|
|
9955
10297
|
}
|
|
9956
10298
|
errors++;
|
|
9957
|
-
}
|
|
9958
|
-
|
|
9959
|
-
const
|
|
9960
|
-
function
|
|
10299
|
+
} validate111.errors = vErrors; return errors === 0; }
|
|
10300
|
+
validate111.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10301
|
+
const schema154 = { "type": "object", "additionalProperties": false, "required": ["point", "text"], "properties": { "point": { "$ref": "#/$defs/timeValuePoint" }, "text": { "type": "string", "maxLength": 4096 } } };
|
|
10302
|
+
function validate114(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate114.evaluated; if (evaluated0.dynamicProps) {
|
|
9961
10303
|
evaluated0.props = undefined;
|
|
9962
10304
|
} if (evaluated0.dynamicItems) {
|
|
9963
10305
|
evaluated0.items = undefined;
|
|
@@ -9995,8 +10337,8 @@ function validate112(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
9995
10337
|
}
|
|
9996
10338
|
}
|
|
9997
10339
|
if (data.point !== undefined) {
|
|
9998
|
-
if (!(
|
|
9999
|
-
vErrors = vErrors === null ?
|
|
10340
|
+
if (!(validate101(data.point, { instancePath: instancePath + "/point", parentData: data, parentDataProperty: "point", rootData, dynamicAnchors }))) {
|
|
10341
|
+
vErrors = vErrors === null ? validate101.errors : vErrors.concat(validate101.errors);
|
|
10000
10342
|
errors = vErrors.length;
|
|
10001
10343
|
}
|
|
10002
10344
|
}
|
|
@@ -10035,10 +10377,10 @@ else {
|
|
|
10035
10377
|
vErrors.push(err5);
|
|
10036
10378
|
}
|
|
10037
10379
|
errors++;
|
|
10038
|
-
}
|
|
10039
|
-
|
|
10040
|
-
const
|
|
10041
|
-
function
|
|
10380
|
+
} validate114.errors = vErrors; return errors === 0; }
|
|
10381
|
+
validate114.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10382
|
+
const schema155 = { "type": "object", "additionalProperties": false, "required": ["point"], "properties": { "point": { "$ref": "#/$defs/timeValuePoint" } } };
|
|
10383
|
+
function validate119(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate119.evaluated; if (evaluated0.dynamicProps) {
|
|
10042
10384
|
evaluated0.props = undefined;
|
|
10043
10385
|
} if (evaluated0.dynamicItems) {
|
|
10044
10386
|
evaluated0.items = undefined;
|
|
@@ -10066,8 +10408,8 @@ function validate117(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
10066
10408
|
}
|
|
10067
10409
|
}
|
|
10068
10410
|
if (data.point !== undefined) {
|
|
10069
|
-
if (!(
|
|
10070
|
-
vErrors = vErrors === null ?
|
|
10411
|
+
if (!(validate101(data.point, { instancePath: instancePath + "/point", parentData: data, parentDataProperty: "point", rootData, dynamicAnchors }))) {
|
|
10412
|
+
vErrors = vErrors === null ? validate101.errors : vErrors.concat(validate101.errors);
|
|
10071
10413
|
errors = vErrors.length;
|
|
10072
10414
|
}
|
|
10073
10415
|
}
|
|
@@ -10081,10 +10423,10 @@ else {
|
|
|
10081
10423
|
vErrors.push(err2);
|
|
10082
10424
|
}
|
|
10083
10425
|
errors++;
|
|
10084
|
-
}
|
|
10085
|
-
|
|
10086
|
-
const
|
|
10087
|
-
function
|
|
10426
|
+
} validate119.errors = vErrors; return errors === 0; }
|
|
10427
|
+
validate119.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10428
|
+
const schema156 = { "type": "object", "additionalProperties": false, "required": ["start", "end"], "properties": { "start": { "$ref": "#/$defs/timeValuePoint" }, "end": { "$ref": "#/$defs/timeValuePoint" } } };
|
|
10429
|
+
function validate122(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate122.evaluated; if (evaluated0.dynamicProps) {
|
|
10088
10430
|
evaluated0.props = undefined;
|
|
10089
10431
|
} if (evaluated0.dynamicItems) {
|
|
10090
10432
|
evaluated0.items = undefined;
|
|
@@ -10122,14 +10464,14 @@ function validate120(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
10122
10464
|
}
|
|
10123
10465
|
}
|
|
10124
10466
|
if (data.start !== undefined) {
|
|
10125
|
-
if (!(
|
|
10126
|
-
vErrors = vErrors === null ?
|
|
10467
|
+
if (!(validate101(data.start, { instancePath: instancePath + "/start", parentData: data, parentDataProperty: "start", rootData, dynamicAnchors }))) {
|
|
10468
|
+
vErrors = vErrors === null ? validate101.errors : vErrors.concat(validate101.errors);
|
|
10127
10469
|
errors = vErrors.length;
|
|
10128
10470
|
}
|
|
10129
10471
|
}
|
|
10130
10472
|
if (data.end !== undefined) {
|
|
10131
|
-
if (!(
|
|
10132
|
-
vErrors = vErrors === null ?
|
|
10473
|
+
if (!(validate101(data.end, { instancePath: instancePath + "/end", parentData: data, parentDataProperty: "end", rootData, dynamicAnchors }))) {
|
|
10474
|
+
vErrors = vErrors === null ? validate101.errors : vErrors.concat(validate101.errors);
|
|
10133
10475
|
errors = vErrors.length;
|
|
10134
10476
|
}
|
|
10135
10477
|
}
|
|
@@ -10143,10 +10485,10 @@ else {
|
|
|
10143
10485
|
vErrors.push(err3);
|
|
10144
10486
|
}
|
|
10145
10487
|
errors++;
|
|
10146
|
-
}
|
|
10147
|
-
|
|
10148
|
-
const
|
|
10149
|
-
function
|
|
10488
|
+
} validate122.errors = vErrors; return errors === 0; }
|
|
10489
|
+
validate122.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10490
|
+
const schema160 = { "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" } } };
|
|
10491
|
+
function validate129(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate129.evaluated; if (evaluated0.dynamicProps) {
|
|
10150
10492
|
evaluated0.props = undefined;
|
|
10151
10493
|
} if (evaluated0.dynamicItems) {
|
|
10152
10494
|
evaluated0.items = undefined;
|
|
@@ -10196,7 +10538,7 @@ function validate127(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
10196
10538
|
if (data.color !== undefined) {
|
|
10197
10539
|
let data0 = data.color;
|
|
10198
10540
|
if (typeof data0 === "string") {
|
|
10199
|
-
if (!
|
|
10541
|
+
if (!pattern7.test(data0)) {
|
|
10200
10542
|
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*\\)$" + "\"" };
|
|
10201
10543
|
if (vErrors === null) {
|
|
10202
10544
|
vErrors = [err4];
|
|
@@ -10256,7 +10598,7 @@ function validate127(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
10256
10598
|
if (data.style !== undefined) {
|
|
10257
10599
|
let data2 = data.style;
|
|
10258
10600
|
if (!(((data2 === "solid") || (data2 === "dashed")) || (data2 === "dotted"))) {
|
|
10259
|
-
const err9 = { instancePath: instancePath + "/style", schemaPath: "#/properties/style/enum", keyword: "enum", params: { allowedValues:
|
|
10601
|
+
const err9 = { instancePath: instancePath + "/style", schemaPath: "#/properties/style/enum", keyword: "enum", params: { allowedValues: schema70.properties.style.enum }, message: "must be equal to one of the allowed values" };
|
|
10260
10602
|
if (vErrors === null) {
|
|
10261
10603
|
vErrors = [err9];
|
|
10262
10604
|
}
|
|
@@ -10276,9 +10618,9 @@ else {
|
|
|
10276
10618
|
vErrors.push(err10);
|
|
10277
10619
|
}
|
|
10278
10620
|
errors++;
|
|
10279
|
-
}
|
|
10280
|
-
|
|
10281
|
-
function
|
|
10621
|
+
} validate129.errors = vErrors; return errors === 0; }
|
|
10622
|
+
validate129.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10623
|
+
function validate131(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate131.evaluated; if (evaluated0.dynamicProps) {
|
|
10282
10624
|
evaluated0.props = undefined;
|
|
10283
10625
|
} if (evaluated0.dynamicItems) {
|
|
10284
10626
|
evaluated0.items = undefined;
|
|
@@ -10308,7 +10650,7 @@ function validate129(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
10308
10650
|
if (data.color !== undefined) {
|
|
10309
10651
|
let data0 = data.color;
|
|
10310
10652
|
if (typeof data0 === "string") {
|
|
10311
|
-
if (!
|
|
10653
|
+
if (!pattern7.test(data0)) {
|
|
10312
10654
|
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*\\)$" + "\"" };
|
|
10313
10655
|
if (vErrors === null) {
|
|
10314
10656
|
vErrors = [err2];
|
|
@@ -10340,9 +10682,9 @@ else {
|
|
|
10340
10682
|
vErrors.push(err4);
|
|
10341
10683
|
}
|
|
10342
10684
|
errors++;
|
|
10343
|
-
}
|
|
10344
|
-
|
|
10345
|
-
function
|
|
10685
|
+
} validate131.errors = vErrors; return errors === 0; }
|
|
10686
|
+
validate131.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
10687
|
+
function validate133(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate133.evaluated; if (evaluated0.dynamicProps) {
|
|
10346
10688
|
evaluated0.props = undefined;
|
|
10347
10689
|
} if (evaluated0.dynamicItems) {
|
|
10348
10690
|
evaluated0.items = undefined;
|
|
@@ -10422,7 +10764,7 @@ function validate131(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
10422
10764
|
if (data.color !== undefined) {
|
|
10423
10765
|
let data0 = data.color;
|
|
10424
10766
|
if (typeof data0 === "string") {
|
|
10425
|
-
if (!
|
|
10767
|
+
if (!pattern7.test(data0)) {
|
|
10426
10768
|
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*\\)$" + "\"" };
|
|
10427
10769
|
if (vErrors === null) {
|
|
10428
10770
|
vErrors = [err7];
|
|
@@ -10570,7 +10912,7 @@ function validate131(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
10570
10912
|
}
|
|
10571
10913
|
const _errs13 = errors;
|
|
10572
10914
|
if (!((data3 === "normal") || (data3 === "bold"))) {
|
|
10573
|
-
const err19 = { instancePath: instancePath + "/weight", schemaPath: "#/properties/weight/oneOf/1/enum", keyword: "enum", params: { allowedValues:
|
|
10915
|
+
const err19 = { instancePath: instancePath + "/weight", schemaPath: "#/properties/weight/oneOf/1/enum", keyword: "enum", params: { allowedValues: schema97.properties.weight.oneOf[1].enum }, message: "must be equal to one of the allowed values" };
|
|
10574
10916
|
if (vErrors === null) {
|
|
10575
10917
|
vErrors = [err19];
|
|
10576
10918
|
}
|
|
@@ -10615,7 +10957,7 @@ function validate131(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
10615
10957
|
if (data.backgroundColor !== undefined) {
|
|
10616
10958
|
let data4 = data.backgroundColor;
|
|
10617
10959
|
if (typeof data4 === "string") {
|
|
10618
|
-
if (!
|
|
10960
|
+
if (!pattern7.test(data4)) {
|
|
10619
10961
|
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*\\)$" + "\"" };
|
|
10620
10962
|
if (vErrors === null) {
|
|
10621
10963
|
vErrors = [err21];
|
|
@@ -10640,7 +10982,7 @@ function validate131(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
10640
10982
|
if (data.borderColor !== undefined) {
|
|
10641
10983
|
let data5 = data.borderColor;
|
|
10642
10984
|
if (typeof data5 === "string") {
|
|
10643
|
-
if (!
|
|
10985
|
+
if (!pattern7.test(data5)) {
|
|
10644
10986
|
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*\\)$" + "\"" };
|
|
10645
10987
|
if (vErrors === null) {
|
|
10646
10988
|
vErrors = [err23];
|
|
@@ -10672,9 +11014,9 @@ else {
|
|
|
10672
11014
|
vErrors.push(err25);
|
|
10673
11015
|
}
|
|
10674
11016
|
errors++;
|
|
10675
|
-
}
|
|
10676
|
-
|
|
10677
|
-
function
|
|
11017
|
+
} validate133.errors = vErrors; return errors === 0; }
|
|
11018
|
+
validate133.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
11019
|
+
function validate128(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate128.evaluated; if (evaluated0.dynamicProps) {
|
|
10678
11020
|
evaluated0.props = undefined;
|
|
10679
11021
|
} if (evaluated0.dynamicItems) {
|
|
10680
11022
|
evaluated0.items = undefined;
|
|
@@ -10722,20 +11064,20 @@ function validate126(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
10722
11064
|
}
|
|
10723
11065
|
}
|
|
10724
11066
|
if (data.line !== undefined) {
|
|
10725
|
-
if (!(
|
|
10726
|
-
vErrors = vErrors === null ?
|
|
11067
|
+
if (!(validate129(data.line, { instancePath: instancePath + "/line", parentData: data, parentDataProperty: "line", rootData, dynamicAnchors }))) {
|
|
11068
|
+
vErrors = vErrors === null ? validate129.errors : vErrors.concat(validate129.errors);
|
|
10727
11069
|
errors = vErrors.length;
|
|
10728
11070
|
}
|
|
10729
11071
|
}
|
|
10730
11072
|
if (data.fill !== undefined) {
|
|
10731
|
-
if (!(
|
|
10732
|
-
vErrors = vErrors === null ?
|
|
11073
|
+
if (!(validate131(data.fill, { instancePath: instancePath + "/fill", parentData: data, parentDataProperty: "fill", rootData, dynamicAnchors }))) {
|
|
11074
|
+
vErrors = vErrors === null ? validate131.errors : vErrors.concat(validate131.errors);
|
|
10733
11075
|
errors = vErrors.length;
|
|
10734
11076
|
}
|
|
10735
11077
|
}
|
|
10736
11078
|
if (data.text !== undefined) {
|
|
10737
|
-
if (!(
|
|
10738
|
-
vErrors = vErrors === null ?
|
|
11079
|
+
if (!(validate133(data.text, { instancePath: instancePath + "/text", parentData: data, parentDataProperty: "text", rootData, dynamicAnchors }))) {
|
|
11080
|
+
vErrors = vErrors === null ? validate133.errors : vErrors.concat(validate133.errors);
|
|
10739
11081
|
errors = vErrors.length;
|
|
10740
11082
|
}
|
|
10741
11083
|
}
|
|
@@ -10749,9 +11091,9 @@ else {
|
|
|
10749
11091
|
vErrors.push(err4);
|
|
10750
11092
|
}
|
|
10751
11093
|
errors++;
|
|
10752
|
-
}
|
|
10753
|
-
|
|
10754
|
-
function
|
|
11094
|
+
} validate128.errors = vErrors; return errors === 0; }
|
|
11095
|
+
validate128.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
11096
|
+
function validate136(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate136.evaluated; if (evaluated0.dynamicProps) {
|
|
10755
11097
|
evaluated0.props = undefined;
|
|
10756
11098
|
} if (evaluated0.dynamicItems) {
|
|
10757
11099
|
evaluated0.items = undefined;
|
|
@@ -10767,8 +11109,8 @@ function validate134(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
10767
11109
|
errors++;
|
|
10768
11110
|
}
|
|
10769
11111
|
for (const key0 in data) {
|
|
10770
|
-
if (!(
|
|
10771
|
-
vErrors = vErrors === null ?
|
|
11112
|
+
if (!(validate55(data[key0], { instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key0, rootData, dynamicAnchors }))) {
|
|
11113
|
+
vErrors = vErrors === null ? validate55.errors : vErrors.concat(validate55.errors);
|
|
10772
11114
|
errors = vErrors.length;
|
|
10773
11115
|
}
|
|
10774
11116
|
}
|
|
@@ -10782,9 +11124,9 @@ else {
|
|
|
10782
11124
|
vErrors.push(err1);
|
|
10783
11125
|
}
|
|
10784
11126
|
errors++;
|
|
10785
|
-
}
|
|
10786
|
-
|
|
10787
|
-
function
|
|
11127
|
+
} validate136.errors = vErrors; return errors === 0; }
|
|
11128
|
+
validate136.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
11129
|
+
function validate86(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate86.evaluated; if (evaluated0.dynamicProps) {
|
|
10788
11130
|
evaluated0.props = undefined;
|
|
10789
11131
|
} if (evaluated0.dynamicItems) {
|
|
10790
11132
|
evaluated0.items = undefined;
|
|
@@ -10822,8 +11164,8 @@ function validate84(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10822
11164
|
}
|
|
10823
11165
|
}
|
|
10824
11166
|
if (data.geometry !== undefined) {
|
|
10825
|
-
if (!(
|
|
10826
|
-
vErrors = vErrors === null ?
|
|
11167
|
+
if (!(validate87(data.geometry, { instancePath: instancePath + "/geometry", parentData: data, parentDataProperty: "geometry", rootData, dynamicAnchors }))) {
|
|
11168
|
+
vErrors = vErrors === null ? validate87.errors : vErrors.concat(validate87.errors);
|
|
10827
11169
|
errors = vErrors.length;
|
|
10828
11170
|
}
|
|
10829
11171
|
}
|
|
@@ -10867,8 +11209,8 @@ function validate84(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10867
11209
|
}
|
|
10868
11210
|
}
|
|
10869
11211
|
if (data.geometry !== undefined) {
|
|
10870
|
-
if (!(
|
|
10871
|
-
vErrors = vErrors === null ?
|
|
11212
|
+
if (!(validate87(data.geometry, { instancePath: instancePath + "/geometry", parentData: data, parentDataProperty: "geometry", rootData, dynamicAnchors }))) {
|
|
11213
|
+
vErrors = vErrors === null ? validate87.errors : vErrors.concat(validate87.errors);
|
|
10872
11214
|
errors = vErrors.length;
|
|
10873
11215
|
}
|
|
10874
11216
|
}
|
|
@@ -10921,8 +11263,8 @@ else {
|
|
|
10921
11263
|
}
|
|
10922
11264
|
}
|
|
10923
11265
|
if (data.geometry !== undefined) {
|
|
10924
|
-
if (!(
|
|
10925
|
-
vErrors = vErrors === null ?
|
|
11266
|
+
if (!(validate90(data.geometry, { instancePath: instancePath + "/geometry", parentData: data, parentDataProperty: "geometry", rootData, dynamicAnchors }))) {
|
|
11267
|
+
vErrors = vErrors === null ? validate90.errors : vErrors.concat(validate90.errors);
|
|
10926
11268
|
errors = vErrors.length;
|
|
10927
11269
|
}
|
|
10928
11270
|
}
|
|
@@ -10977,8 +11319,8 @@ else {
|
|
|
10977
11319
|
}
|
|
10978
11320
|
}
|
|
10979
11321
|
if (data.geometry !== undefined) {
|
|
10980
|
-
if (!(
|
|
10981
|
-
vErrors = vErrors === null ?
|
|
11322
|
+
if (!(validate92(data.geometry, { instancePath: instancePath + "/geometry", parentData: data, parentDataProperty: "geometry", rootData, dynamicAnchors }))) {
|
|
11323
|
+
vErrors = vErrors === null ? validate92.errors : vErrors.concat(validate92.errors);
|
|
10982
11324
|
errors = vErrors.length;
|
|
10983
11325
|
}
|
|
10984
11326
|
}
|
|
@@ -11033,8 +11375,8 @@ else {
|
|
|
11033
11375
|
}
|
|
11034
11376
|
}
|
|
11035
11377
|
if (data.geometry !== undefined) {
|
|
11036
|
-
if (!(
|
|
11037
|
-
vErrors = vErrors === null ?
|
|
11378
|
+
if (!(validate94(data.geometry, { instancePath: instancePath + "/geometry", parentData: data, parentDataProperty: "geometry", rootData, dynamicAnchors }))) {
|
|
11379
|
+
vErrors = vErrors === null ? validate94.errors : vErrors.concat(validate94.errors);
|
|
11038
11380
|
errors = vErrors.length;
|
|
11039
11381
|
}
|
|
11040
11382
|
}
|
|
@@ -11089,8 +11431,8 @@ else {
|
|
|
11089
11431
|
}
|
|
11090
11432
|
}
|
|
11091
11433
|
if (data.geometry !== undefined) {
|
|
11092
|
-
if (!(
|
|
11093
|
-
vErrors = vErrors === null ?
|
|
11434
|
+
if (!(validate94(data.geometry, { instancePath: instancePath + "/geometry", parentData: data, parentDataProperty: "geometry", rootData, dynamicAnchors }))) {
|
|
11435
|
+
vErrors = vErrors === null ? validate94.errors : vErrors.concat(validate94.errors);
|
|
11094
11436
|
errors = vErrors.length;
|
|
11095
11437
|
}
|
|
11096
11438
|
}
|
|
@@ -11145,8 +11487,8 @@ else {
|
|
|
11145
11487
|
}
|
|
11146
11488
|
}
|
|
11147
11489
|
if (data.geometry !== undefined) {
|
|
11148
|
-
if (!(
|
|
11149
|
-
vErrors = vErrors === null ?
|
|
11490
|
+
if (!(validate97(data.geometry, { instancePath: instancePath + "/geometry", parentData: data, parentDataProperty: "geometry", rootData, dynamicAnchors }))) {
|
|
11491
|
+
vErrors = vErrors === null ? validate97.errors : vErrors.concat(validate97.errors);
|
|
11150
11492
|
errors = vErrors.length;
|
|
11151
11493
|
}
|
|
11152
11494
|
}
|
|
@@ -11201,8 +11543,8 @@ else {
|
|
|
11201
11543
|
}
|
|
11202
11544
|
}
|
|
11203
11545
|
if (data.geometry !== undefined) {
|
|
11204
|
-
if (!(
|
|
11205
|
-
vErrors = vErrors === null ?
|
|
11546
|
+
if (!(validate97(data.geometry, { instancePath: instancePath + "/geometry", parentData: data, parentDataProperty: "geometry", rootData, dynamicAnchors }))) {
|
|
11547
|
+
vErrors = vErrors === null ? validate97.errors : vErrors.concat(validate97.errors);
|
|
11206
11548
|
errors = vErrors.length;
|
|
11207
11549
|
}
|
|
11208
11550
|
}
|
|
@@ -11257,8 +11599,8 @@ else {
|
|
|
11257
11599
|
}
|
|
11258
11600
|
}
|
|
11259
11601
|
if (data.geometry !== undefined) {
|
|
11260
|
-
if (!(
|
|
11261
|
-
vErrors = vErrors === null ?
|
|
11602
|
+
if (!(validate100(data.geometry, { instancePath: instancePath + "/geometry", parentData: data, parentDataProperty: "geometry", rootData, dynamicAnchors }))) {
|
|
11603
|
+
vErrors = vErrors === null ? validate100.errors : vErrors.concat(validate100.errors);
|
|
11262
11604
|
errors = vErrors.length;
|
|
11263
11605
|
}
|
|
11264
11606
|
}
|
|
@@ -11313,8 +11655,8 @@ else {
|
|
|
11313
11655
|
}
|
|
11314
11656
|
}
|
|
11315
11657
|
if (data.geometry !== undefined) {
|
|
11316
|
-
if (!(
|
|
11317
|
-
vErrors = vErrors === null ?
|
|
11658
|
+
if (!(validate100(data.geometry, { instancePath: instancePath + "/geometry", parentData: data, parentDataProperty: "geometry", rootData, dynamicAnchors }))) {
|
|
11659
|
+
vErrors = vErrors === null ? validate100.errors : vErrors.concat(validate100.errors);
|
|
11318
11660
|
errors = vErrors.length;
|
|
11319
11661
|
}
|
|
11320
11662
|
}
|
|
@@ -11369,8 +11711,8 @@ else {
|
|
|
11369
11711
|
}
|
|
11370
11712
|
}
|
|
11371
11713
|
if (data.geometry !== undefined) {
|
|
11372
|
-
if (!(
|
|
11373
|
-
vErrors = vErrors === null ?
|
|
11714
|
+
if (!(validate100(data.geometry, { instancePath: instancePath + "/geometry", parentData: data, parentDataProperty: "geometry", rootData, dynamicAnchors }))) {
|
|
11715
|
+
vErrors = vErrors === null ? validate100.errors : vErrors.concat(validate100.errors);
|
|
11374
11716
|
errors = vErrors.length;
|
|
11375
11717
|
}
|
|
11376
11718
|
}
|
|
@@ -11425,8 +11767,8 @@ else {
|
|
|
11425
11767
|
}
|
|
11426
11768
|
}
|
|
11427
11769
|
if (data.geometry !== undefined) {
|
|
11428
|
-
if (!(
|
|
11429
|
-
vErrors = vErrors === null ?
|
|
11770
|
+
if (!(validate100(data.geometry, { instancePath: instancePath + "/geometry", parentData: data, parentDataProperty: "geometry", rootData, dynamicAnchors }))) {
|
|
11771
|
+
vErrors = vErrors === null ? validate100.errors : vErrors.concat(validate100.errors);
|
|
11430
11772
|
errors = vErrors.length;
|
|
11431
11773
|
}
|
|
11432
11774
|
}
|
|
@@ -11481,8 +11823,8 @@ else {
|
|
|
11481
11823
|
}
|
|
11482
11824
|
}
|
|
11483
11825
|
if (data.geometry !== undefined) {
|
|
11484
|
-
if (!(
|
|
11485
|
-
vErrors = vErrors === null ?
|
|
11826
|
+
if (!(validate107(data.geometry, { instancePath: instancePath + "/geometry", parentData: data, parentDataProperty: "geometry", rootData, dynamicAnchors }))) {
|
|
11827
|
+
vErrors = vErrors === null ? validate107.errors : vErrors.concat(validate107.errors);
|
|
11486
11828
|
errors = vErrors.length;
|
|
11487
11829
|
}
|
|
11488
11830
|
}
|
|
@@ -11537,8 +11879,8 @@ else {
|
|
|
11537
11879
|
}
|
|
11538
11880
|
}
|
|
11539
11881
|
if (data.geometry !== undefined) {
|
|
11540
|
-
if (!(
|
|
11541
|
-
vErrors = vErrors === null ?
|
|
11882
|
+
if (!(validate107(data.geometry, { instancePath: instancePath + "/geometry", parentData: data, parentDataProperty: "geometry", rootData, dynamicAnchors }))) {
|
|
11883
|
+
vErrors = vErrors === null ? validate107.errors : vErrors.concat(validate107.errors);
|
|
11542
11884
|
errors = vErrors.length;
|
|
11543
11885
|
}
|
|
11544
11886
|
}
|
|
@@ -11593,8 +11935,8 @@ else {
|
|
|
11593
11935
|
}
|
|
11594
11936
|
}
|
|
11595
11937
|
if (data.geometry !== undefined) {
|
|
11596
|
-
if (!(
|
|
11597
|
-
vErrors = vErrors === null ?
|
|
11938
|
+
if (!(validate111(data.geometry, { instancePath: instancePath + "/geometry", parentData: data, parentDataProperty: "geometry", rootData, dynamicAnchors }))) {
|
|
11939
|
+
vErrors = vErrors === null ? validate111.errors : vErrors.concat(validate111.errors);
|
|
11598
11940
|
errors = vErrors.length;
|
|
11599
11941
|
}
|
|
11600
11942
|
}
|
|
@@ -11649,8 +11991,8 @@ else {
|
|
|
11649
11991
|
}
|
|
11650
11992
|
}
|
|
11651
11993
|
if (data.geometry !== undefined) {
|
|
11652
|
-
if (!(
|
|
11653
|
-
vErrors = vErrors === null ?
|
|
11994
|
+
if (!(validate114(data.geometry, { instancePath: instancePath + "/geometry", parentData: data, parentDataProperty: "geometry", rootData, dynamicAnchors }))) {
|
|
11995
|
+
vErrors = vErrors === null ? validate114.errors : vErrors.concat(validate114.errors);
|
|
11654
11996
|
errors = vErrors.length;
|
|
11655
11997
|
}
|
|
11656
11998
|
}
|
|
@@ -11705,8 +12047,8 @@ else {
|
|
|
11705
12047
|
}
|
|
11706
12048
|
}
|
|
11707
12049
|
if (data.geometry !== undefined) {
|
|
11708
|
-
if (!(
|
|
11709
|
-
vErrors = vErrors === null ?
|
|
12050
|
+
if (!(validate114(data.geometry, { instancePath: instancePath + "/geometry", parentData: data, parentDataProperty: "geometry", rootData, dynamicAnchors }))) {
|
|
12051
|
+
vErrors = vErrors === null ? validate114.errors : vErrors.concat(validate114.errors);
|
|
11710
12052
|
errors = vErrors.length;
|
|
11711
12053
|
}
|
|
11712
12054
|
}
|
|
@@ -11761,8 +12103,8 @@ else {
|
|
|
11761
12103
|
}
|
|
11762
12104
|
}
|
|
11763
12105
|
if (data.geometry !== undefined) {
|
|
11764
|
-
if (!(
|
|
11765
|
-
vErrors = vErrors === null ?
|
|
12106
|
+
if (!(validate114(data.geometry, { instancePath: instancePath + "/geometry", parentData: data, parentDataProperty: "geometry", rootData, dynamicAnchors }))) {
|
|
12107
|
+
vErrors = vErrors === null ? validate114.errors : vErrors.concat(validate114.errors);
|
|
11766
12108
|
errors = vErrors.length;
|
|
11767
12109
|
}
|
|
11768
12110
|
}
|
|
@@ -11817,8 +12159,8 @@ else {
|
|
|
11817
12159
|
}
|
|
11818
12160
|
}
|
|
11819
12161
|
if (data.geometry !== undefined) {
|
|
11820
|
-
if (!(
|
|
11821
|
-
vErrors = vErrors === null ?
|
|
12162
|
+
if (!(validate119(data.geometry, { instancePath: instancePath + "/geometry", parentData: data, parentDataProperty: "geometry", rootData, dynamicAnchors }))) {
|
|
12163
|
+
vErrors = vErrors === null ? validate119.errors : vErrors.concat(validate119.errors);
|
|
11822
12164
|
errors = vErrors.length;
|
|
11823
12165
|
}
|
|
11824
12166
|
}
|
|
@@ -11873,8 +12215,8 @@ else {
|
|
|
11873
12215
|
}
|
|
11874
12216
|
}
|
|
11875
12217
|
if (data.geometry !== undefined) {
|
|
11876
|
-
if (!(
|
|
11877
|
-
vErrors = vErrors === null ?
|
|
12218
|
+
if (!(validate122(data.geometry, { instancePath: instancePath + "/geometry", parentData: data, parentDataProperty: "geometry", rootData, dynamicAnchors }))) {
|
|
12219
|
+
vErrors = vErrors === null ? validate122.errors : vErrors.concat(validate122.errors);
|
|
11878
12220
|
errors = vErrors.length;
|
|
11879
12221
|
}
|
|
11880
12222
|
}
|
|
@@ -11929,8 +12271,8 @@ else {
|
|
|
11929
12271
|
}
|
|
11930
12272
|
}
|
|
11931
12273
|
if (data.geometry !== undefined) {
|
|
11932
|
-
if (!(
|
|
11933
|
-
vErrors = vErrors === null ?
|
|
12274
|
+
if (!(validate122(data.geometry, { instancePath: instancePath + "/geometry", parentData: data, parentDataProperty: "geometry", rootData, dynamicAnchors }))) {
|
|
12275
|
+
vErrors = vErrors === null ? validate122.errors : vErrors.concat(validate122.errors);
|
|
11934
12276
|
errors = vErrors.length;
|
|
11935
12277
|
}
|
|
11936
12278
|
}
|
|
@@ -11985,8 +12327,8 @@ else {
|
|
|
11985
12327
|
}
|
|
11986
12328
|
}
|
|
11987
12329
|
if (data.geometry !== undefined) {
|
|
11988
|
-
if (!(
|
|
11989
|
-
vErrors = vErrors === null ?
|
|
12330
|
+
if (!(validate122(data.geometry, { instancePath: instancePath + "/geometry", parentData: data, parentDataProperty: "geometry", rootData, dynamicAnchors }))) {
|
|
12331
|
+
vErrors = vErrors === null ? validate122.errors : vErrors.concat(validate122.errors);
|
|
11990
12332
|
errors = vErrors.length;
|
|
11991
12333
|
}
|
|
11992
12334
|
}
|
|
@@ -12138,7 +12480,7 @@ else {
|
|
|
12138
12480
|
errors++;
|
|
12139
12481
|
}
|
|
12140
12482
|
for (const key0 in data) {
|
|
12141
|
-
if (!(func1.call(
|
|
12483
|
+
if (!(func1.call(schema132.properties, key0))) {
|
|
12142
12484
|
const err76 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
12143
12485
|
if (vErrors === null) {
|
|
12144
12486
|
vErrors = [err76];
|
|
@@ -12172,7 +12514,7 @@ else {
|
|
|
12172
12514
|
}
|
|
12173
12515
|
errors++;
|
|
12174
12516
|
}
|
|
12175
|
-
if (!
|
|
12517
|
+
if (!pattern20.test(data44)) {
|
|
12176
12518
|
const err79 = { 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._:-]*$" + "\"" };
|
|
12177
12519
|
if (vErrors === null) {
|
|
12178
12520
|
vErrors = [err79];
|
|
@@ -12217,7 +12559,7 @@ else {
|
|
|
12217
12559
|
}
|
|
12218
12560
|
errors++;
|
|
12219
12561
|
}
|
|
12220
|
-
if (!
|
|
12562
|
+
if (!pattern20.test(data45)) {
|
|
12221
12563
|
const err83 = { 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._:-]*$" + "\"" };
|
|
12222
12564
|
if (vErrors === null) {
|
|
12223
12565
|
vErrors = [err83];
|
|
@@ -12418,7 +12760,7 @@ else {
|
|
|
12418
12760
|
if (data.mode !== undefined) {
|
|
12419
12761
|
let data52 = data.mode;
|
|
12420
12762
|
if (!(((data52 === "normal") || (data52 === "weak_magnet")) || (data52 === "strong_magnet"))) {
|
|
12421
|
-
const err100 = { instancePath: instancePath + "/mode", schemaPath: "#/properties/mode/enum", keyword: "enum", params: { allowedValues:
|
|
12763
|
+
const err100 = { instancePath: instancePath + "/mode", schemaPath: "#/properties/mode/enum", keyword: "enum", params: { allowedValues: schema132.properties.mode.enum }, message: "must be equal to one of the allowed values" };
|
|
12422
12764
|
if (vErrors === null) {
|
|
12423
12765
|
vErrors = [err100];
|
|
12424
12766
|
}
|
|
@@ -12429,21 +12771,21 @@ else {
|
|
|
12429
12771
|
}
|
|
12430
12772
|
}
|
|
12431
12773
|
if (data.styles !== undefined) {
|
|
12432
|
-
if (!(
|
|
12433
|
-
vErrors = vErrors === null ?
|
|
12774
|
+
if (!(validate128(data.styles, { instancePath: instancePath + "/styles", parentData: data, parentDataProperty: "styles", rootData, dynamicAnchors }))) {
|
|
12775
|
+
vErrors = vErrors === null ? validate128.errors : vErrors.concat(validate128.errors);
|
|
12434
12776
|
errors = vErrors.length;
|
|
12435
12777
|
}
|
|
12436
12778
|
}
|
|
12437
12779
|
if (data.metadata !== undefined) {
|
|
12438
|
-
if (!(
|
|
12439
|
-
vErrors = vErrors === null ?
|
|
12780
|
+
if (!(validate136(data.metadata, { instancePath: instancePath + "/metadata", parentData: data, parentDataProperty: "metadata", rootData, dynamicAnchors }))) {
|
|
12781
|
+
vErrors = vErrors === null ? validate136.errors : vErrors.concat(validate136.errors);
|
|
12440
12782
|
errors = vErrors.length;
|
|
12441
12783
|
}
|
|
12442
12784
|
}
|
|
12443
12785
|
if (data.type !== undefined) {
|
|
12444
12786
|
let data55 = data.type;
|
|
12445
12787
|
if (!((((((((((((((((((((((data55 === "horizontalStraightLine") || (data55 === "priceLine")) || (data55 === "simpleTag")) || (data55 === "verticalStraightLine")) || (data55 === "horizontalRayLine")) || (data55 === "horizontalSegment")) || (data55 === "verticalRayLine")) || (data55 === "verticalSegment")) || (data55 === "rayLine")) || (data55 === "segment")) || (data55 === "straightLine")) || (data55 === "fibonacciLine")) || (data55 === "priceChannelLine")) || (data55 === "parallelStraightLine")) || (data55 === "brush")) || (data55 === "simpleAnnotation")) || (data55 === "callout")) || (data55 === "text")) || (data55 === "crossLine")) || (data55 === "rectangle")) || (data55 === "arrow")) || (data55 === "priceMeasurement"))) {
|
|
12446
|
-
const err101 = { instancePath: instancePath + "/type", schemaPath: "#/properties/type/enum", keyword: "enum", params: { allowedValues:
|
|
12788
|
+
const err101 = { instancePath: instancePath + "/type", schemaPath: "#/properties/type/enum", keyword: "enum", params: { allowedValues: schema132.properties.type.enum }, message: "must be equal to one of the allowed values" };
|
|
12447
12789
|
if (vErrors === null) {
|
|
12448
12790
|
vErrors = [err101];
|
|
12449
12791
|
}
|
|
@@ -12476,9 +12818,9 @@ else {
|
|
|
12476
12818
|
vErrors.push(err103);
|
|
12477
12819
|
}
|
|
12478
12820
|
errors++;
|
|
12479
|
-
}
|
|
12480
|
-
|
|
12481
|
-
function
|
|
12821
|
+
} validate86.errors = vErrors; return errors === 0; }
|
|
12822
|
+
validate86.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
12823
|
+
function validate81(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://baron.dev/kline-scene/drawing-document.schema.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate81.evaluated; if (evaluated0.dynamicProps) {
|
|
12482
12824
|
evaluated0.props = undefined;
|
|
12483
12825
|
} if (evaluated0.dynamicItems) {
|
|
12484
12826
|
evaluated0.items = undefined;
|
|
@@ -12615,8 +12957,8 @@ function validate79(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12615
12957
|
}
|
|
12616
12958
|
}
|
|
12617
12959
|
if (data.coordinateSystem !== undefined) {
|
|
12618
|
-
if (!(
|
|
12619
|
-
vErrors = vErrors === null ?
|
|
12960
|
+
if (!(validate82(data.coordinateSystem, { instancePath: instancePath + "/coordinateSystem", parentData: data, parentDataProperty: "coordinateSystem", rootData, dynamicAnchors }))) {
|
|
12961
|
+
vErrors = vErrors === null ? validate82.errors : vErrors.concat(validate82.errors);
|
|
12620
12962
|
errors = vErrors.length;
|
|
12621
12963
|
}
|
|
12622
12964
|
}
|
|
@@ -12635,8 +12977,8 @@ function validate79(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12635
12977
|
}
|
|
12636
12978
|
const len0 = data4.length;
|
|
12637
12979
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
12638
|
-
if (!(
|
|
12639
|
-
vErrors = vErrors === null ?
|
|
12980
|
+
if (!(validate86(data4[i0], { instancePath: instancePath + "/drawings/" + i0, parentData: data4, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
12981
|
+
vErrors = vErrors === null ? validate86.errors : vErrors.concat(validate86.errors);
|
|
12640
12982
|
errors = vErrors.length;
|
|
12641
12983
|
}
|
|
12642
12984
|
}
|
|
@@ -12653,8 +12995,8 @@ function validate79(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12653
12995
|
}
|
|
12654
12996
|
}
|
|
12655
12997
|
if (data.metadata !== undefined) {
|
|
12656
|
-
if (!(
|
|
12657
|
-
vErrors = vErrors === null ?
|
|
12998
|
+
if (!(validate136(data.metadata, { instancePath: instancePath + "/metadata", parentData: data, parentDataProperty: "metadata", rootData, dynamicAnchors }))) {
|
|
12999
|
+
vErrors = vErrors === null ? validate136.errors : vErrors.concat(validate136.errors);
|
|
12658
13000
|
errors = vErrors.length;
|
|
12659
13001
|
}
|
|
12660
13002
|
}
|
|
@@ -12668,9 +13010,9 @@ else {
|
|
|
12668
13010
|
vErrors.push(err14);
|
|
12669
13011
|
}
|
|
12670
13012
|
errors++;
|
|
12671
|
-
}
|
|
12672
|
-
|
|
12673
|
-
function
|
|
13013
|
+
} validate81.errors = vErrors; return errors === 0; }
|
|
13014
|
+
validate81.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
13015
|
+
function validate142(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate142.evaluated; if (evaluated0.dynamicProps) {
|
|
12674
13016
|
evaluated0.props = undefined;
|
|
12675
13017
|
} if (evaluated0.dynamicItems) {
|
|
12676
13018
|
evaluated0.items = undefined;
|
|
@@ -12868,9 +13210,9 @@ else {
|
|
|
12868
13210
|
vErrors.push(err16);
|
|
12869
13211
|
}
|
|
12870
13212
|
errors++;
|
|
12871
|
-
}
|
|
12872
|
-
|
|
12873
|
-
function
|
|
13213
|
+
} validate142.errors = vErrors; return errors === 0; }
|
|
13214
|
+
validate142.evaluated = { "items": true, "dynamicProps": false, "dynamicItems": false };
|
|
13215
|
+
function validate144(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate144.evaluated; if (evaluated0.dynamicProps) {
|
|
12874
13216
|
evaluated0.props = undefined;
|
|
12875
13217
|
} if (evaluated0.dynamicItems) {
|
|
12876
13218
|
evaluated0.items = undefined;
|
|
@@ -12886,8 +13228,8 @@ function validate142(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
12886
13228
|
errors++;
|
|
12887
13229
|
}
|
|
12888
13230
|
for (const key0 in data) {
|
|
12889
|
-
if (!(
|
|
12890
|
-
vErrors = vErrors === null ?
|
|
13231
|
+
if (!(validate55(data[key0], { instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key0, rootData, dynamicAnchors }))) {
|
|
13232
|
+
vErrors = vErrors === null ? validate55.errors : vErrors.concat(validate55.errors);
|
|
12891
13233
|
errors = vErrors.length;
|
|
12892
13234
|
}
|
|
12893
13235
|
}
|
|
@@ -12901,8 +13243,8 @@ else {
|
|
|
12901
13243
|
vErrors.push(err1);
|
|
12902
13244
|
}
|
|
12903
13245
|
errors++;
|
|
12904
|
-
}
|
|
12905
|
-
|
|
13246
|
+
} validate144.errors = vErrors; return errors === 0; }
|
|
13247
|
+
validate144.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
12906
13248
|
function validate20(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://baron.dev/kline-scene/drawable-workspace.schema.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate20.evaluated; if (evaluated0.dynamicProps) {
|
|
12907
13249
|
evaluated0.props = undefined;
|
|
12908
13250
|
} if (evaluated0.dynamicItems) {
|
|
@@ -13228,8 +13570,8 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13228
13570
|
}
|
|
13229
13571
|
}
|
|
13230
13572
|
if (data6.document !== undefined) {
|
|
13231
|
-
if (!(
|
|
13232
|
-
vErrors = vErrors === null ?
|
|
13573
|
+
if (!(validate67(data6.document, { instancePath: instancePath + "/scene/document", parentData: data6, parentDataProperty: "document", rootData, dynamicAnchors }))) {
|
|
13574
|
+
vErrors = vErrors === null ? validate67.errors : vErrors.concat(validate67.errors);
|
|
13233
13575
|
errors = vErrors.length;
|
|
13234
13576
|
}
|
|
13235
13577
|
}
|
|
@@ -13281,8 +13623,8 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13281
13623
|
}
|
|
13282
13624
|
}
|
|
13283
13625
|
if (data.drawings !== undefined) {
|
|
13284
|
-
if (!(
|
|
13285
|
-
vErrors = vErrors === null ?
|
|
13626
|
+
if (!(validate81(data.drawings, { instancePath: instancePath + "/drawings", parentData: data, parentDataProperty: "drawings", rootData, dynamicAnchors }))) {
|
|
13627
|
+
vErrors = vErrors === null ? validate81.errors : vErrors.concat(validate81.errors);
|
|
13286
13628
|
errors = vErrors.length;
|
|
13287
13629
|
}
|
|
13288
13630
|
}
|
|
@@ -13389,7 +13731,7 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13389
13731
|
}
|
|
13390
13732
|
errors++;
|
|
13391
13733
|
}
|
|
13392
|
-
if (!
|
|
13734
|
+
if (!pattern6.test(data14)) {
|
|
13393
13735
|
const err38 = { instancePath: instancePath + "/binding/timezone", schemaPath: "https://baron.dev/kline-scene/drawing-document.schema.json#/$defs/timezone/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z_+-]+(?:/[A-Za-z0-9_+-]+)*$" }, message: "must match pattern \"" + "^[A-Za-z_+-]+(?:/[A-Za-z0-9_+-]+)*$" + "\"" };
|
|
13394
13736
|
if (vErrors === null) {
|
|
13395
13737
|
vErrors = [err38];
|
|
@@ -13412,8 +13754,8 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13412
13754
|
}
|
|
13413
13755
|
}
|
|
13414
13756
|
if (data12.valueAxes !== undefined) {
|
|
13415
|
-
if (!(
|
|
13416
|
-
vErrors = vErrors === null ?
|
|
13757
|
+
if (!(validate142(data12.valueAxes, { instancePath: instancePath + "/binding/valueAxes", parentData: data12, parentDataProperty: "valueAxes", rootData, dynamicAnchors }))) {
|
|
13758
|
+
vErrors = vErrors === null ? validate142.errors : vErrors.concat(validate142.errors);
|
|
13417
13759
|
errors = vErrors.length;
|
|
13418
13760
|
}
|
|
13419
13761
|
}
|
|
@@ -13430,8 +13772,8 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
13430
13772
|
}
|
|
13431
13773
|
}
|
|
13432
13774
|
if (data.metadata !== undefined) {
|
|
13433
|
-
if (!(
|
|
13434
|
-
vErrors = vErrors === null ?
|
|
13775
|
+
if (!(validate144(data.metadata, { instancePath: instancePath + "/metadata", parentData: data, parentDataProperty: "metadata", rootData, dynamicAnchors }))) {
|
|
13776
|
+
vErrors = vErrors === null ? validate144.errors : vErrors.concat(validate144.errors);
|
|
13435
13777
|
errors = vErrors.length;
|
|
13436
13778
|
}
|
|
13437
13779
|
}
|