@motir/cli 0.13.0 → 0.13.1
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/index.js +394 -270
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ var __export = (target, all) => {
|
|
|
9
9
|
import { Command as Command2, Option } from "commander";
|
|
10
10
|
|
|
11
11
|
// package.json
|
|
12
|
-
var version = "0.13.
|
|
12
|
+
var version = "0.13.1";
|
|
13
13
|
|
|
14
14
|
// src/version.ts
|
|
15
15
|
var CLI_VERSION = version;
|
|
@@ -824,7 +824,7 @@ function displayTokenPrefix(token) {
|
|
|
824
824
|
|
|
825
825
|
// src/api/operations.ts
|
|
826
826
|
var API_MAJOR = 1;
|
|
827
|
-
var GENERATED_AGAINST = "1.
|
|
827
|
+
var GENERATED_AGAINST = "1.71.0";
|
|
828
828
|
var V1_OPERATIONS = {
|
|
829
829
|
"appendDispatchRunEvents": {
|
|
830
830
|
method: "POST",
|
|
@@ -35174,7 +35174,7 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
35174
35174
|
}
|
|
35175
35175
|
validate60.evaluated = { "props": { "verdict": true, "designCardKey": true, "designCardTitle": true, "design": true, "reason": true }, "dynamicProps": false, "dynamicItems": false };
|
|
35176
35176
|
var operation_getWorkItemDispatchPrompt = validate61;
|
|
35177
|
-
var schema101 = { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[A-Z][A-Z0-9]*-\\d+$" }, "prompt": { "type": "string" }, "parentKey": { "anyOf": [{ "type": "string", "pattern": "^[A-Z][A-Z0-9]*-\\d+$" }, { "type": "null" }] }, "targetRepo": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, "targetRepoCloneUrl": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, "targetRepoDefaultBranch": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, "targetRepos": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "cloneUrl": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, "defaultBranch": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, "delivery": { "anyOf": [{ "type": "string", "enum": ["delivered", "awaiting", "unknown", "unestablished", "excluded", "delivered_without_change_request"] }, { "type": "null" }] } }, "required": ["name", "cloneUrl", "defaultBranch", "delivery"] } }, "workflowMode": { "type": "string", "enum": ["per_item_pr", "session_lineage"] }, "sessionBranch": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, "workBranch": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, "branch": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, "advisories": { "type": "array", "items": { "anyOf": [{ "type": "object", "properties": { "kind": { "type": "string", "const": "shape" }, "item": { "type": "string", "pattern": "^[A-Z][A-Z0-9]*-\\d+$" }, "severity": { "type": "string" }, "criterionIndex": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "phrase": { "type": "string" }, "path": { "type": "string" }, "repo": { "type": "string" }, "reason": { "type": "string" } }, "required": ["kind", "item", "severity", "criterionIndex"] }, { "type": "object", "properties": { "kind": { "type": "string", "const": "shape" }, "item": { "type": "string", "pattern": "^[A-Z][A-Z0-9]*-\\d+$" }, "severity": { "type": "string" }, "threshold": { "type": "string" }, "storyPoints": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, "estimateMinutes": { "anyOf": [{ "type": "number" }, { "type": "null" }] } }, "required": ["kind", "item", "severity", "threshold", "storyPoints", "estimateMinutes"] }, { "type": "object", "properties": { "kind": { "type": "string", "const": "shape" }, "item": { "type": "string", "pattern": "^[A-Z][A-Z0-9]*-\\d+$" }, "severity": { "type": "string" }, "designCriterionIndex": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "surfaceCriterionIndex": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "required": ["kind", "item", "severity", "designCriterionIndex", "surfaceCriterionIndex"] }, { "type": "object", "properties": { "kind": { "type": "string", "const": "shape" }, "item": { "type": "string", "pattern": "^[A-Z][A-Z0-9]*-\\d+$" }, "severity": { "type": "string" }, "bodyEdit": { "type": "object", "properties": { "at": { "type": "string" }, "fields": { "type": "array", "items": { "type": "string" } } }, "required": ["at", "fields"] }, "fieldMove": { "type": "object", "properties": { "at": { "type": "string" }, "fields": { "type": "array", "items": { "type": "string" } } }, "required": ["at", "fields"] } }, "required": ["kind", "item", "severity", "bodyEdit", "fieldMove"] }, { "type": "object", "properties": { "kind": { "type": "string", "const": "shape" }, "item": { "type": "string", "pattern": "^[A-Z][A-Z0-9]*-\\d+$" }, "severity": { "type": "string" }, "claim": { "type": "string" }, "claimedCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "blockerCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": ["kind", "item", "severity", "claim", "claimedCount", "blockerCount"] }, { "anyOf": [{ "type": "object", "properties": { "kind": { "type": "string", "const": "subsumption" }, "item": { "type": "string", "pattern": "^[A-Z][A-Z0-9]*-\\d+$" }, "severity": { "type": "string" }, "path": { "type": "string" }, "pullRequest": { "type": "string" }, "pullRequestTitle": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, "state": { "type": "string", "const": "merged" }, "mergedAt": { "type": "string" } }, "required": ["kind", "item", "severity", "path", "pullRequest", "pullRequestTitle", "state", "mergedAt"] }, { "type": "object", "properties": { "kind": { "type": "string", "const": "subsumption" }, "item": { "type": "string", "pattern": "^[A-Z][A-Z0-9]*-\\d+$" }, "severity": { "type": "string" }, "path": { "type": "string" }, "pullRequest": { "type": "string" }, "pullRequestTitle": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, "state": { "type": "string", "const": "open" }, "mergedAt": { "type": "null" } }, "required": ["kind", "item", "severity", "path", "pullRequest", "pullRequestTitle", "state", "mergedAt"] }] }, { "type": "object", "properties": { "kind": { "type": "string", "const": "reference" }, "item": { "type": "string", "pattern": "^[A-Z][A-Z0-9]*-\\d+$" }, "referenced": { "type": "string" }, "referencedStatus": { "type": "string" }, "severity": { "type": "string" } }, "required": ["item", "referenced", "referencedStatus", "severity"] }] } } }, "required": ["key", "prompt", "parentKey", "targetRepo", "targetRepoCloneUrl", "targetRepoDefaultBranch", "targetRepos", "workflowMode", "sessionBranch", "advisories"], "$id": "motir://v1/components/DispatchPrompt" };
|
|
35177
|
+
var schema101 = { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[A-Z][A-Z0-9]*-\\d+$" }, "prompt": { "type": "string" }, "parentKey": { "anyOf": [{ "type": "string", "pattern": "^[A-Z][A-Z0-9]*-\\d+$" }, { "type": "null" }] }, "targetRepo": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, "targetRepoCloneUrl": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, "targetRepoDefaultBranch": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, "targetRepos": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "cloneUrl": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, "defaultBranch": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, "delivery": { "anyOf": [{ "type": "string", "enum": ["delivered", "awaiting", "unknown", "unestablished", "excluded", "delivered_without_change_request"] }, { "type": "null" }] } }, "required": ["name", "cloneUrl", "defaultBranch", "delivery"] } }, "workflowMode": { "type": "string", "enum": ["per_item_pr", "session_lineage"] }, "sessionBranch": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, "workBranch": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, "branch": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, "advisories": { "type": "array", "items": { "anyOf": [{ "type": "object", "properties": { "kind": { "type": "string", "const": "shape" }, "item": { "type": "string", "pattern": "^[A-Z][A-Z0-9]*-\\d+$" }, "severity": { "type": "string" }, "criterionIndex": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "phrase": { "type": "string" }, "path": { "type": "string" }, "repo": { "type": "string" }, "reason": { "type": "string" } }, "required": ["kind", "item", "severity", "criterionIndex"] }, { "type": "object", "properties": { "kind": { "type": "string", "const": "shape" }, "item": { "type": "string", "pattern": "^[A-Z][A-Z0-9]*-\\d+$" }, "severity": { "type": "string" }, "threshold": { "type": "string" }, "storyPoints": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, "estimateMinutes": { "anyOf": [{ "type": "number" }, { "type": "null" }] } }, "required": ["kind", "item", "severity", "threshold", "storyPoints", "estimateMinutes"] }, { "type": "object", "properties": { "kind": { "type": "string", "const": "shape" }, "item": { "type": "string", "pattern": "^[A-Z][A-Z0-9]*-\\d+$" }, "severity": { "type": "string" }, "designCriterionIndex": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "surfaceCriterionIndex": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "required": ["kind", "item", "severity", "designCriterionIndex", "surfaceCriterionIndex"] }, { "type": "object", "properties": { "kind": { "type": "string", "const": "shape" }, "item": { "type": "string", "pattern": "^[A-Z][A-Z0-9]*-\\d+$" }, "severity": { "type": "string" }, "bodyEdit": { "type": "object", "properties": { "at": { "type": "string" }, "fields": { "type": "array", "items": { "type": "string" } } }, "required": ["at", "fields"] }, "fieldMove": { "type": "object", "properties": { "at": { "type": "string" }, "fields": { "type": "array", "items": { "type": "string" } } }, "required": ["at", "fields"] } }, "required": ["kind", "item", "severity", "bodyEdit", "fieldMove"] }, { "type": "object", "properties": { "kind": { "type": "string", "const": "shape" }, "item": { "type": "string", "pattern": "^[A-Z][A-Z0-9]*-\\d+$" }, "severity": { "type": "string" }, "claim": { "type": "string" }, "claimedCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "blockerCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": ["kind", "item", "severity", "claim", "claimedCount", "blockerCount"] }, { "type": "object", "properties": { "kind": { "type": "string", "const": "shape" }, "item": { "type": "string", "pattern": "^[A-Z][A-Z0-9]*-\\d+$" }, "severity": { "type": "string" }, "criteria": { "type": "string" } }, "required": ["kind", "item", "severity", "criteria"] }, { "anyOf": [{ "type": "object", "properties": { "kind": { "type": "string", "const": "subsumption" }, "item": { "type": "string", "pattern": "^[A-Z][A-Z0-9]*-\\d+$" }, "severity": { "type": "string" }, "path": { "type": "string" }, "pullRequest": { "type": "string" }, "pullRequestTitle": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, "state": { "type": "string", "const": "merged" }, "mergedAt": { "type": "string" } }, "required": ["kind", "item", "severity", "path", "pullRequest", "pullRequestTitle", "state", "mergedAt"] }, { "type": "object", "properties": { "kind": { "type": "string", "const": "subsumption" }, "item": { "type": "string", "pattern": "^[A-Z][A-Z0-9]*-\\d+$" }, "severity": { "type": "string" }, "path": { "type": "string" }, "pullRequest": { "type": "string" }, "pullRequestTitle": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, "state": { "type": "string", "const": "open" }, "mergedAt": { "type": "null" } }, "required": ["kind", "item", "severity", "path", "pullRequest", "pullRequestTitle", "state", "mergedAt"] }] }, { "type": "object", "properties": { "kind": { "type": "string", "const": "reference" }, "item": { "type": "string", "pattern": "^[A-Z][A-Z0-9]*-\\d+$" }, "referenced": { "type": "string" }, "referencedStatus": { "type": "string" }, "severity": { "type": "string" } }, "required": ["item", "referenced", "referencedStatus", "severity"] }] } } }, "required": ["key", "prompt", "parentKey", "targetRepo", "targetRepoCloneUrl", "targetRepoDefaultBranch", "targetRepos", "workflowMode", "sessionBranch", "advisories"], "$id": "motir://v1/components/DispatchPrompt" };
|
|
35178
35178
|
function validate61(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
35179
35179
|
;
|
|
35180
35180
|
let vErrors = null;
|
|
@@ -36993,14 +36993,11 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
36993
36993
|
}
|
|
36994
36994
|
}
|
|
36995
36995
|
const _errs168 = errors;
|
|
36996
|
-
|
|
36997
|
-
let valid27 = false;
|
|
36998
|
-
const _errs170 = errors;
|
|
36999
|
-
if (errors === _errs170) {
|
|
36996
|
+
if (errors === _errs168) {
|
|
37000
36997
|
if (data17 && typeof data17 == "object" && !Array.isArray(data17)) {
|
|
37001
36998
|
let missing9;
|
|
37002
|
-
if (data17.kind === void 0 && (missing9 = "kind") || data17.item === void 0 && (missing9 = "item") || data17.severity === void 0 && (missing9 = "severity") || data17.
|
|
37003
|
-
const err104 = { instancePath: instancePath + "/advisories/" + i1, schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/5/
|
|
36999
|
+
if (data17.kind === void 0 && (missing9 = "kind") || data17.item === void 0 && (missing9 = "item") || data17.severity === void 0 && (missing9 = "severity") || data17.criteria === void 0 && (missing9 = "criteria")) {
|
|
37000
|
+
const err104 = { instancePath: instancePath + "/advisories/" + i1, schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/5/required", keyword: "required", params: { missingProperty: missing9 }, message: "must have required property '" + missing9 + "'" };
|
|
37004
37001
|
if (vErrors === null) {
|
|
37005
37002
|
vErrors = [err104];
|
|
37006
37003
|
} else {
|
|
@@ -37010,9 +37007,9 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
37010
37007
|
} else {
|
|
37011
37008
|
if (data17.kind !== void 0) {
|
|
37012
37009
|
let data54 = data17.kind;
|
|
37013
|
-
const
|
|
37010
|
+
const _errs170 = errors;
|
|
37014
37011
|
if (typeof data54 !== "string") {
|
|
37015
|
-
const err105 = { instancePath: instancePath + "/advisories/" + i1 + "/kind", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/5/
|
|
37012
|
+
const err105 = { instancePath: instancePath + "/advisories/" + i1 + "/kind", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/5/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
37016
37013
|
if (vErrors === null) {
|
|
37017
37014
|
vErrors = [err105];
|
|
37018
37015
|
} else {
|
|
@@ -37020,8 +37017,8 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
37020
37017
|
}
|
|
37021
37018
|
errors++;
|
|
37022
37019
|
}
|
|
37023
|
-
if ("
|
|
37024
|
-
const err106 = { instancePath: instancePath + "/advisories/" + i1 + "/kind", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/5/
|
|
37020
|
+
if ("shape" !== data54) {
|
|
37021
|
+
const err106 = { instancePath: instancePath + "/advisories/" + i1 + "/kind", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/5/properties/kind/const", keyword: "const", params: { allowedValue: "shape" }, message: "must be equal to constant" };
|
|
37025
37022
|
if (vErrors === null) {
|
|
37026
37023
|
vErrors = [err106];
|
|
37027
37024
|
} else {
|
|
@@ -37029,18 +37026,18 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
37029
37026
|
}
|
|
37030
37027
|
errors++;
|
|
37031
37028
|
}
|
|
37032
|
-
var
|
|
37029
|
+
var valid27 = _errs170 === errors;
|
|
37033
37030
|
} else {
|
|
37034
|
-
var
|
|
37031
|
+
var valid27 = true;
|
|
37035
37032
|
}
|
|
37036
|
-
if (
|
|
37033
|
+
if (valid27) {
|
|
37037
37034
|
if (data17.item !== void 0) {
|
|
37038
37035
|
let data55 = data17.item;
|
|
37039
|
-
const
|
|
37040
|
-
if (errors ===
|
|
37036
|
+
const _errs172 = errors;
|
|
37037
|
+
if (errors === _errs172) {
|
|
37041
37038
|
if (typeof data55 === "string") {
|
|
37042
37039
|
if (!pattern4.test(data55)) {
|
|
37043
|
-
const err107 = { instancePath: instancePath + "/advisories/" + i1 + "/item", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/5/
|
|
37040
|
+
const err107 = { instancePath: instancePath + "/advisories/" + i1 + "/item", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/5/properties/item/pattern", keyword: "pattern", params: { pattern: "^[A-Z][A-Z0-9]*-\\d+$" }, message: 'must match pattern "^[A-Z][A-Z0-9]*-\\d+$"' };
|
|
37044
37041
|
if (vErrors === null) {
|
|
37045
37042
|
vErrors = [err107];
|
|
37046
37043
|
} else {
|
|
@@ -37049,7 +37046,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
37049
37046
|
errors++;
|
|
37050
37047
|
}
|
|
37051
37048
|
} else {
|
|
37052
|
-
const err108 = { instancePath: instancePath + "/advisories/" + i1 + "/item", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/5/
|
|
37049
|
+
const err108 = { instancePath: instancePath + "/advisories/" + i1 + "/item", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/5/properties/item/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
37053
37050
|
if (vErrors === null) {
|
|
37054
37051
|
vErrors = [err108];
|
|
37055
37052
|
} else {
|
|
@@ -37058,15 +37055,15 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
37058
37055
|
errors++;
|
|
37059
37056
|
}
|
|
37060
37057
|
}
|
|
37061
|
-
var
|
|
37058
|
+
var valid27 = _errs172 === errors;
|
|
37062
37059
|
} else {
|
|
37063
|
-
var
|
|
37060
|
+
var valid27 = true;
|
|
37064
37061
|
}
|
|
37065
|
-
if (
|
|
37062
|
+
if (valid27) {
|
|
37066
37063
|
if (data17.severity !== void 0) {
|
|
37067
|
-
const
|
|
37064
|
+
const _errs174 = errors;
|
|
37068
37065
|
if (typeof data17.severity !== "string") {
|
|
37069
|
-
const err109 = { instancePath: instancePath + "/advisories/" + i1 + "/severity", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/5/
|
|
37066
|
+
const err109 = { instancePath: instancePath + "/advisories/" + i1 + "/severity", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/5/properties/severity/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
37070
37067
|
if (vErrors === null) {
|
|
37071
37068
|
vErrors = [err109];
|
|
37072
37069
|
} else {
|
|
@@ -37074,15 +37071,15 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
37074
37071
|
}
|
|
37075
37072
|
errors++;
|
|
37076
37073
|
}
|
|
37077
|
-
var
|
|
37074
|
+
var valid27 = _errs174 === errors;
|
|
37078
37075
|
} else {
|
|
37079
|
-
var
|
|
37076
|
+
var valid27 = true;
|
|
37080
37077
|
}
|
|
37081
|
-
if (
|
|
37082
|
-
if (data17.
|
|
37083
|
-
const
|
|
37084
|
-
if (typeof data17.
|
|
37085
|
-
const err110 = { instancePath: instancePath + "/advisories/" + i1 + "/
|
|
37078
|
+
if (valid27) {
|
|
37079
|
+
if (data17.criteria !== void 0) {
|
|
37080
|
+
const _errs176 = errors;
|
|
37081
|
+
if (typeof data17.criteria !== "string") {
|
|
37082
|
+
const err110 = { instancePath: instancePath + "/advisories/" + i1 + "/criteria", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/5/properties/criteria/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
37086
37083
|
if (vErrors === null) {
|
|
37087
37084
|
vErrors = [err110];
|
|
37088
37085
|
} else {
|
|
@@ -37090,119 +37087,246 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
37090
37087
|
}
|
|
37091
37088
|
errors++;
|
|
37092
37089
|
}
|
|
37093
|
-
var
|
|
37090
|
+
var valid27 = _errs176 === errors;
|
|
37094
37091
|
} else {
|
|
37095
|
-
var
|
|
37092
|
+
var valid27 = true;
|
|
37096
37093
|
}
|
|
37097
|
-
|
|
37094
|
+
}
|
|
37095
|
+
}
|
|
37096
|
+
}
|
|
37097
|
+
}
|
|
37098
|
+
} else {
|
|
37099
|
+
const err111 = { instancePath: instancePath + "/advisories/" + i1, schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/5/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
37100
|
+
if (vErrors === null) {
|
|
37101
|
+
vErrors = [err111];
|
|
37102
|
+
} else {
|
|
37103
|
+
vErrors.push(err111);
|
|
37104
|
+
}
|
|
37105
|
+
errors++;
|
|
37106
|
+
}
|
|
37107
|
+
}
|
|
37108
|
+
var _valid10 = _errs168 === errors;
|
|
37109
|
+
valid15 = valid15 || _valid10;
|
|
37110
|
+
if (_valid10) {
|
|
37111
|
+
if (props0 !== true) {
|
|
37112
|
+
props0 = props0 || {};
|
|
37113
|
+
props0.kind = true;
|
|
37114
|
+
props0.item = true;
|
|
37115
|
+
props0.severity = true;
|
|
37116
|
+
props0.criteria = true;
|
|
37117
|
+
}
|
|
37118
|
+
}
|
|
37119
|
+
const _errs178 = errors;
|
|
37120
|
+
const _errs179 = errors;
|
|
37121
|
+
let valid28 = false;
|
|
37122
|
+
const _errs180 = errors;
|
|
37123
|
+
if (errors === _errs180) {
|
|
37124
|
+
if (data17 && typeof data17 == "object" && !Array.isArray(data17)) {
|
|
37125
|
+
let missing10;
|
|
37126
|
+
if (data17.kind === void 0 && (missing10 = "kind") || data17.item === void 0 && (missing10 = "item") || data17.severity === void 0 && (missing10 = "severity") || data17.path === void 0 && (missing10 = "path") || data17.pullRequest === void 0 && (missing10 = "pullRequest") || data17.pullRequestTitle === void 0 && (missing10 = "pullRequestTitle") || data17.state === void 0 && (missing10 = "state") || data17.mergedAt === void 0 && (missing10 = "mergedAt")) {
|
|
37127
|
+
const err112 = { instancePath: instancePath + "/advisories/" + i1, schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/0/required", keyword: "required", params: { missingProperty: missing10 }, message: "must have required property '" + missing10 + "'" };
|
|
37128
|
+
if (vErrors === null) {
|
|
37129
|
+
vErrors = [err112];
|
|
37130
|
+
} else {
|
|
37131
|
+
vErrors.push(err112);
|
|
37132
|
+
}
|
|
37133
|
+
errors++;
|
|
37134
|
+
} else {
|
|
37135
|
+
if (data17.kind !== void 0) {
|
|
37136
|
+
let data58 = data17.kind;
|
|
37137
|
+
const _errs182 = errors;
|
|
37138
|
+
if (typeof data58 !== "string") {
|
|
37139
|
+
const err113 = { instancePath: instancePath + "/advisories/" + i1 + "/kind", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/0/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
37140
|
+
if (vErrors === null) {
|
|
37141
|
+
vErrors = [err113];
|
|
37142
|
+
} else {
|
|
37143
|
+
vErrors.push(err113);
|
|
37144
|
+
}
|
|
37145
|
+
errors++;
|
|
37146
|
+
}
|
|
37147
|
+
if ("subsumption" !== data58) {
|
|
37148
|
+
const err114 = { instancePath: instancePath + "/advisories/" + i1 + "/kind", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/0/properties/kind/const", keyword: "const", params: { allowedValue: "subsumption" }, message: "must be equal to constant" };
|
|
37149
|
+
if (vErrors === null) {
|
|
37150
|
+
vErrors = [err114];
|
|
37151
|
+
} else {
|
|
37152
|
+
vErrors.push(err114);
|
|
37153
|
+
}
|
|
37154
|
+
errors++;
|
|
37155
|
+
}
|
|
37156
|
+
var valid29 = _errs182 === errors;
|
|
37157
|
+
} else {
|
|
37158
|
+
var valid29 = true;
|
|
37159
|
+
}
|
|
37160
|
+
if (valid29) {
|
|
37161
|
+
if (data17.item !== void 0) {
|
|
37162
|
+
let data59 = data17.item;
|
|
37163
|
+
const _errs184 = errors;
|
|
37164
|
+
if (errors === _errs184) {
|
|
37165
|
+
if (typeof data59 === "string") {
|
|
37166
|
+
if (!pattern4.test(data59)) {
|
|
37167
|
+
const err115 = { instancePath: instancePath + "/advisories/" + i1 + "/item", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/0/properties/item/pattern", keyword: "pattern", params: { pattern: "^[A-Z][A-Z0-9]*-\\d+$" }, message: 'must match pattern "^[A-Z][A-Z0-9]*-\\d+$"' };
|
|
37168
|
+
if (vErrors === null) {
|
|
37169
|
+
vErrors = [err115];
|
|
37170
|
+
} else {
|
|
37171
|
+
vErrors.push(err115);
|
|
37172
|
+
}
|
|
37173
|
+
errors++;
|
|
37174
|
+
}
|
|
37175
|
+
} else {
|
|
37176
|
+
const err116 = { instancePath: instancePath + "/advisories/" + i1 + "/item", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/0/properties/item/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
37177
|
+
if (vErrors === null) {
|
|
37178
|
+
vErrors = [err116];
|
|
37179
|
+
} else {
|
|
37180
|
+
vErrors.push(err116);
|
|
37181
|
+
}
|
|
37182
|
+
errors++;
|
|
37183
|
+
}
|
|
37184
|
+
}
|
|
37185
|
+
var valid29 = _errs184 === errors;
|
|
37186
|
+
} else {
|
|
37187
|
+
var valid29 = true;
|
|
37188
|
+
}
|
|
37189
|
+
if (valid29) {
|
|
37190
|
+
if (data17.severity !== void 0) {
|
|
37191
|
+
const _errs186 = errors;
|
|
37192
|
+
if (typeof data17.severity !== "string") {
|
|
37193
|
+
const err117 = { instancePath: instancePath + "/advisories/" + i1 + "/severity", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/0/properties/severity/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
37194
|
+
if (vErrors === null) {
|
|
37195
|
+
vErrors = [err117];
|
|
37196
|
+
} else {
|
|
37197
|
+
vErrors.push(err117);
|
|
37198
|
+
}
|
|
37199
|
+
errors++;
|
|
37200
|
+
}
|
|
37201
|
+
var valid29 = _errs186 === errors;
|
|
37202
|
+
} else {
|
|
37203
|
+
var valid29 = true;
|
|
37204
|
+
}
|
|
37205
|
+
if (valid29) {
|
|
37206
|
+
if (data17.path !== void 0) {
|
|
37207
|
+
const _errs188 = errors;
|
|
37208
|
+
if (typeof data17.path !== "string") {
|
|
37209
|
+
const err118 = { instancePath: instancePath + "/advisories/" + i1 + "/path", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/0/properties/path/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
37210
|
+
if (vErrors === null) {
|
|
37211
|
+
vErrors = [err118];
|
|
37212
|
+
} else {
|
|
37213
|
+
vErrors.push(err118);
|
|
37214
|
+
}
|
|
37215
|
+
errors++;
|
|
37216
|
+
}
|
|
37217
|
+
var valid29 = _errs188 === errors;
|
|
37218
|
+
} else {
|
|
37219
|
+
var valid29 = true;
|
|
37220
|
+
}
|
|
37221
|
+
if (valid29) {
|
|
37098
37222
|
if (data17.pullRequest !== void 0) {
|
|
37099
|
-
const
|
|
37223
|
+
const _errs190 = errors;
|
|
37100
37224
|
if (typeof data17.pullRequest !== "string") {
|
|
37101
|
-
const
|
|
37225
|
+
const err119 = { instancePath: instancePath + "/advisories/" + i1 + "/pullRequest", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/0/properties/pullRequest/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
37102
37226
|
if (vErrors === null) {
|
|
37103
|
-
vErrors = [
|
|
37227
|
+
vErrors = [err119];
|
|
37104
37228
|
} else {
|
|
37105
|
-
vErrors.push(
|
|
37229
|
+
vErrors.push(err119);
|
|
37106
37230
|
}
|
|
37107
37231
|
errors++;
|
|
37108
37232
|
}
|
|
37109
|
-
var
|
|
37233
|
+
var valid29 = _errs190 === errors;
|
|
37110
37234
|
} else {
|
|
37111
|
-
var
|
|
37235
|
+
var valid29 = true;
|
|
37112
37236
|
}
|
|
37113
|
-
if (
|
|
37237
|
+
if (valid29) {
|
|
37114
37238
|
if (data17.pullRequestTitle !== void 0) {
|
|
37115
|
-
let
|
|
37116
|
-
const
|
|
37117
|
-
const
|
|
37118
|
-
let
|
|
37119
|
-
const
|
|
37120
|
-
if (typeof
|
|
37121
|
-
const
|
|
37239
|
+
let data63 = data17.pullRequestTitle;
|
|
37240
|
+
const _errs192 = errors;
|
|
37241
|
+
const _errs193 = errors;
|
|
37242
|
+
let valid30 = false;
|
|
37243
|
+
const _errs194 = errors;
|
|
37244
|
+
if (typeof data63 !== "string") {
|
|
37245
|
+
const err120 = { instancePath: instancePath + "/advisories/" + i1 + "/pullRequestTitle", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/0/properties/pullRequestTitle/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
37122
37246
|
if (vErrors === null) {
|
|
37123
|
-
vErrors = [
|
|
37247
|
+
vErrors = [err120];
|
|
37124
37248
|
} else {
|
|
37125
|
-
vErrors.push(
|
|
37249
|
+
vErrors.push(err120);
|
|
37126
37250
|
}
|
|
37127
37251
|
errors++;
|
|
37128
37252
|
}
|
|
37129
|
-
var _valid14 =
|
|
37130
|
-
|
|
37131
|
-
const
|
|
37132
|
-
if (
|
|
37133
|
-
const
|
|
37253
|
+
var _valid14 = _errs194 === errors;
|
|
37254
|
+
valid30 = valid30 || _valid14;
|
|
37255
|
+
const _errs196 = errors;
|
|
37256
|
+
if (data63 !== null) {
|
|
37257
|
+
const err121 = { instancePath: instancePath + "/advisories/" + i1 + "/pullRequestTitle", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/0/properties/pullRequestTitle/anyOf/1/type", keyword: "type", params: { type: "null" }, message: "must be null" };
|
|
37134
37258
|
if (vErrors === null) {
|
|
37135
|
-
vErrors = [
|
|
37259
|
+
vErrors = [err121];
|
|
37136
37260
|
} else {
|
|
37137
|
-
vErrors.push(
|
|
37261
|
+
vErrors.push(err121);
|
|
37138
37262
|
}
|
|
37139
37263
|
errors++;
|
|
37140
37264
|
}
|
|
37141
|
-
var _valid14 =
|
|
37142
|
-
|
|
37143
|
-
if (!
|
|
37144
|
-
const
|
|
37265
|
+
var _valid14 = _errs196 === errors;
|
|
37266
|
+
valid30 = valid30 || _valid14;
|
|
37267
|
+
if (!valid30) {
|
|
37268
|
+
const err122 = { instancePath: instancePath + "/advisories/" + i1 + "/pullRequestTitle", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/0/properties/pullRequestTitle/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
37145
37269
|
if (vErrors === null) {
|
|
37146
|
-
vErrors = [
|
|
37270
|
+
vErrors = [err122];
|
|
37147
37271
|
} else {
|
|
37148
|
-
vErrors.push(
|
|
37272
|
+
vErrors.push(err122);
|
|
37149
37273
|
}
|
|
37150
37274
|
errors++;
|
|
37151
37275
|
} else {
|
|
37152
|
-
errors =
|
|
37276
|
+
errors = _errs193;
|
|
37153
37277
|
if (vErrors !== null) {
|
|
37154
|
-
if (
|
|
37155
|
-
vErrors.length =
|
|
37278
|
+
if (_errs193) {
|
|
37279
|
+
vErrors.length = _errs193;
|
|
37156
37280
|
} else {
|
|
37157
37281
|
vErrors = null;
|
|
37158
37282
|
}
|
|
37159
37283
|
}
|
|
37160
37284
|
}
|
|
37161
|
-
var
|
|
37285
|
+
var valid29 = _errs192 === errors;
|
|
37162
37286
|
} else {
|
|
37163
|
-
var
|
|
37287
|
+
var valid29 = true;
|
|
37164
37288
|
}
|
|
37165
|
-
if (
|
|
37289
|
+
if (valid29) {
|
|
37166
37290
|
if (data17.state !== void 0) {
|
|
37167
|
-
let
|
|
37168
|
-
const
|
|
37169
|
-
if (typeof
|
|
37170
|
-
const
|
|
37291
|
+
let data64 = data17.state;
|
|
37292
|
+
const _errs198 = errors;
|
|
37293
|
+
if (typeof data64 !== "string") {
|
|
37294
|
+
const err123 = { instancePath: instancePath + "/advisories/" + i1 + "/state", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/0/properties/state/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
37171
37295
|
if (vErrors === null) {
|
|
37172
|
-
vErrors = [
|
|
37296
|
+
vErrors = [err123];
|
|
37173
37297
|
} else {
|
|
37174
|
-
vErrors.push(
|
|
37298
|
+
vErrors.push(err123);
|
|
37175
37299
|
}
|
|
37176
37300
|
errors++;
|
|
37177
37301
|
}
|
|
37178
|
-
if ("merged" !==
|
|
37179
|
-
const
|
|
37302
|
+
if ("merged" !== data64) {
|
|
37303
|
+
const err124 = { instancePath: instancePath + "/advisories/" + i1 + "/state", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/0/properties/state/const", keyword: "const", params: { allowedValue: "merged" }, message: "must be equal to constant" };
|
|
37180
37304
|
if (vErrors === null) {
|
|
37181
|
-
vErrors = [
|
|
37305
|
+
vErrors = [err124];
|
|
37182
37306
|
} else {
|
|
37183
|
-
vErrors.push(
|
|
37307
|
+
vErrors.push(err124);
|
|
37184
37308
|
}
|
|
37185
37309
|
errors++;
|
|
37186
37310
|
}
|
|
37187
|
-
var
|
|
37311
|
+
var valid29 = _errs198 === errors;
|
|
37188
37312
|
} else {
|
|
37189
|
-
var
|
|
37313
|
+
var valid29 = true;
|
|
37190
37314
|
}
|
|
37191
|
-
if (
|
|
37315
|
+
if (valid29) {
|
|
37192
37316
|
if (data17.mergedAt !== void 0) {
|
|
37193
|
-
const
|
|
37317
|
+
const _errs200 = errors;
|
|
37194
37318
|
if (typeof data17.mergedAt !== "string") {
|
|
37195
|
-
const
|
|
37319
|
+
const err125 = { instancePath: instancePath + "/advisories/" + i1 + "/mergedAt", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/0/properties/mergedAt/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
37196
37320
|
if (vErrors === null) {
|
|
37197
|
-
vErrors = [
|
|
37321
|
+
vErrors = [err125];
|
|
37198
37322
|
} else {
|
|
37199
|
-
vErrors.push(
|
|
37323
|
+
vErrors.push(err125);
|
|
37200
37324
|
}
|
|
37201
37325
|
errors++;
|
|
37202
37326
|
}
|
|
37203
|
-
var
|
|
37327
|
+
var valid29 = _errs200 === errors;
|
|
37204
37328
|
} else {
|
|
37205
|
-
var
|
|
37329
|
+
var valid29 = true;
|
|
37206
37330
|
}
|
|
37207
37331
|
}
|
|
37208
37332
|
}
|
|
@@ -37213,17 +37337,17 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
37213
37337
|
}
|
|
37214
37338
|
}
|
|
37215
37339
|
} else {
|
|
37216
|
-
const
|
|
37340
|
+
const err126 = { instancePath: instancePath + "/advisories/" + i1, schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
37217
37341
|
if (vErrors === null) {
|
|
37218
|
-
vErrors = [
|
|
37342
|
+
vErrors = [err126];
|
|
37219
37343
|
} else {
|
|
37220
|
-
vErrors.push(
|
|
37344
|
+
vErrors.push(err126);
|
|
37221
37345
|
}
|
|
37222
37346
|
errors++;
|
|
37223
37347
|
}
|
|
37224
37348
|
}
|
|
37225
|
-
var _valid13 =
|
|
37226
|
-
|
|
37349
|
+
var _valid13 = _errs180 === errors;
|
|
37350
|
+
valid28 = valid28 || _valid13;
|
|
37227
37351
|
if (_valid13) {
|
|
37228
37352
|
var props1 = {};
|
|
37229
37353
|
props1.kind = true;
|
|
@@ -37235,214 +37359,214 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
37235
37359
|
props1.state = true;
|
|
37236
37360
|
props1.mergedAt = true;
|
|
37237
37361
|
}
|
|
37238
|
-
const
|
|
37239
|
-
if (errors ===
|
|
37362
|
+
const _errs202 = errors;
|
|
37363
|
+
if (errors === _errs202) {
|
|
37240
37364
|
if (data17 && typeof data17 == "object" && !Array.isArray(data17)) {
|
|
37241
|
-
let
|
|
37242
|
-
if (data17.kind === void 0 && (
|
|
37243
|
-
const
|
|
37365
|
+
let missing11;
|
|
37366
|
+
if (data17.kind === void 0 && (missing11 = "kind") || data17.item === void 0 && (missing11 = "item") || data17.severity === void 0 && (missing11 = "severity") || data17.path === void 0 && (missing11 = "path") || data17.pullRequest === void 0 && (missing11 = "pullRequest") || data17.pullRequestTitle === void 0 && (missing11 = "pullRequestTitle") || data17.state === void 0 && (missing11 = "state") || data17.mergedAt === void 0 && (missing11 = "mergedAt")) {
|
|
37367
|
+
const err127 = { instancePath: instancePath + "/advisories/" + i1, schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/1/required", keyword: "required", params: { missingProperty: missing11 }, message: "must have required property '" + missing11 + "'" };
|
|
37244
37368
|
if (vErrors === null) {
|
|
37245
|
-
vErrors = [
|
|
37369
|
+
vErrors = [err127];
|
|
37246
37370
|
} else {
|
|
37247
|
-
vErrors.push(
|
|
37371
|
+
vErrors.push(err127);
|
|
37248
37372
|
}
|
|
37249
37373
|
errors++;
|
|
37250
37374
|
} else {
|
|
37251
37375
|
if (data17.kind !== void 0) {
|
|
37252
|
-
let
|
|
37253
|
-
const
|
|
37254
|
-
if (typeof
|
|
37255
|
-
const
|
|
37376
|
+
let data66 = data17.kind;
|
|
37377
|
+
const _errs204 = errors;
|
|
37378
|
+
if (typeof data66 !== "string") {
|
|
37379
|
+
const err128 = { instancePath: instancePath + "/advisories/" + i1 + "/kind", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/1/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
37256
37380
|
if (vErrors === null) {
|
|
37257
|
-
vErrors = [
|
|
37381
|
+
vErrors = [err128];
|
|
37258
37382
|
} else {
|
|
37259
|
-
vErrors.push(
|
|
37383
|
+
vErrors.push(err128);
|
|
37260
37384
|
}
|
|
37261
37385
|
errors++;
|
|
37262
37386
|
}
|
|
37263
|
-
if ("subsumption" !==
|
|
37264
|
-
const
|
|
37387
|
+
if ("subsumption" !== data66) {
|
|
37388
|
+
const err129 = { instancePath: instancePath + "/advisories/" + i1 + "/kind", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/1/properties/kind/const", keyword: "const", params: { allowedValue: "subsumption" }, message: "must be equal to constant" };
|
|
37265
37389
|
if (vErrors === null) {
|
|
37266
|
-
vErrors = [
|
|
37390
|
+
vErrors = [err129];
|
|
37267
37391
|
} else {
|
|
37268
|
-
vErrors.push(
|
|
37392
|
+
vErrors.push(err129);
|
|
37269
37393
|
}
|
|
37270
37394
|
errors++;
|
|
37271
37395
|
}
|
|
37272
|
-
var
|
|
37396
|
+
var valid31 = _errs204 === errors;
|
|
37273
37397
|
} else {
|
|
37274
|
-
var
|
|
37398
|
+
var valid31 = true;
|
|
37275
37399
|
}
|
|
37276
|
-
if (
|
|
37400
|
+
if (valid31) {
|
|
37277
37401
|
if (data17.item !== void 0) {
|
|
37278
|
-
let
|
|
37279
|
-
const
|
|
37280
|
-
if (errors ===
|
|
37281
|
-
if (typeof
|
|
37282
|
-
if (!pattern4.test(
|
|
37283
|
-
const
|
|
37402
|
+
let data67 = data17.item;
|
|
37403
|
+
const _errs206 = errors;
|
|
37404
|
+
if (errors === _errs206) {
|
|
37405
|
+
if (typeof data67 === "string") {
|
|
37406
|
+
if (!pattern4.test(data67)) {
|
|
37407
|
+
const err130 = { instancePath: instancePath + "/advisories/" + i1 + "/item", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/1/properties/item/pattern", keyword: "pattern", params: { pattern: "^[A-Z][A-Z0-9]*-\\d+$" }, message: 'must match pattern "^[A-Z][A-Z0-9]*-\\d+$"' };
|
|
37284
37408
|
if (vErrors === null) {
|
|
37285
|
-
vErrors = [
|
|
37409
|
+
vErrors = [err130];
|
|
37286
37410
|
} else {
|
|
37287
|
-
vErrors.push(
|
|
37411
|
+
vErrors.push(err130);
|
|
37288
37412
|
}
|
|
37289
37413
|
errors++;
|
|
37290
37414
|
}
|
|
37291
37415
|
} else {
|
|
37292
|
-
const
|
|
37416
|
+
const err131 = { instancePath: instancePath + "/advisories/" + i1 + "/item", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/1/properties/item/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
37293
37417
|
if (vErrors === null) {
|
|
37294
|
-
vErrors = [
|
|
37418
|
+
vErrors = [err131];
|
|
37295
37419
|
} else {
|
|
37296
|
-
vErrors.push(
|
|
37420
|
+
vErrors.push(err131);
|
|
37297
37421
|
}
|
|
37298
37422
|
errors++;
|
|
37299
37423
|
}
|
|
37300
37424
|
}
|
|
37301
|
-
var
|
|
37425
|
+
var valid31 = _errs206 === errors;
|
|
37302
37426
|
} else {
|
|
37303
|
-
var
|
|
37427
|
+
var valid31 = true;
|
|
37304
37428
|
}
|
|
37305
|
-
if (
|
|
37429
|
+
if (valid31) {
|
|
37306
37430
|
if (data17.severity !== void 0) {
|
|
37307
|
-
const
|
|
37431
|
+
const _errs208 = errors;
|
|
37308
37432
|
if (typeof data17.severity !== "string") {
|
|
37309
|
-
const
|
|
37433
|
+
const err132 = { instancePath: instancePath + "/advisories/" + i1 + "/severity", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/1/properties/severity/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
37310
37434
|
if (vErrors === null) {
|
|
37311
|
-
vErrors = [
|
|
37435
|
+
vErrors = [err132];
|
|
37312
37436
|
} else {
|
|
37313
|
-
vErrors.push(
|
|
37437
|
+
vErrors.push(err132);
|
|
37314
37438
|
}
|
|
37315
37439
|
errors++;
|
|
37316
37440
|
}
|
|
37317
|
-
var
|
|
37441
|
+
var valid31 = _errs208 === errors;
|
|
37318
37442
|
} else {
|
|
37319
|
-
var
|
|
37443
|
+
var valid31 = true;
|
|
37320
37444
|
}
|
|
37321
|
-
if (
|
|
37445
|
+
if (valid31) {
|
|
37322
37446
|
if (data17.path !== void 0) {
|
|
37323
|
-
const
|
|
37447
|
+
const _errs210 = errors;
|
|
37324
37448
|
if (typeof data17.path !== "string") {
|
|
37325
|
-
const
|
|
37449
|
+
const err133 = { instancePath: instancePath + "/advisories/" + i1 + "/path", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/1/properties/path/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
37326
37450
|
if (vErrors === null) {
|
|
37327
|
-
vErrors = [
|
|
37451
|
+
vErrors = [err133];
|
|
37328
37452
|
} else {
|
|
37329
|
-
vErrors.push(
|
|
37453
|
+
vErrors.push(err133);
|
|
37330
37454
|
}
|
|
37331
37455
|
errors++;
|
|
37332
37456
|
}
|
|
37333
|
-
var
|
|
37457
|
+
var valid31 = _errs210 === errors;
|
|
37334
37458
|
} else {
|
|
37335
|
-
var
|
|
37459
|
+
var valid31 = true;
|
|
37336
37460
|
}
|
|
37337
|
-
if (
|
|
37461
|
+
if (valid31) {
|
|
37338
37462
|
if (data17.pullRequest !== void 0) {
|
|
37339
|
-
const
|
|
37463
|
+
const _errs212 = errors;
|
|
37340
37464
|
if (typeof data17.pullRequest !== "string") {
|
|
37341
|
-
const
|
|
37465
|
+
const err134 = { instancePath: instancePath + "/advisories/" + i1 + "/pullRequest", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/1/properties/pullRequest/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
37342
37466
|
if (vErrors === null) {
|
|
37343
|
-
vErrors = [
|
|
37467
|
+
vErrors = [err134];
|
|
37344
37468
|
} else {
|
|
37345
|
-
vErrors.push(
|
|
37469
|
+
vErrors.push(err134);
|
|
37346
37470
|
}
|
|
37347
37471
|
errors++;
|
|
37348
37472
|
}
|
|
37349
|
-
var
|
|
37473
|
+
var valid31 = _errs212 === errors;
|
|
37350
37474
|
} else {
|
|
37351
|
-
var
|
|
37475
|
+
var valid31 = true;
|
|
37352
37476
|
}
|
|
37353
|
-
if (
|
|
37477
|
+
if (valid31) {
|
|
37354
37478
|
if (data17.pullRequestTitle !== void 0) {
|
|
37355
|
-
let
|
|
37356
|
-
const
|
|
37357
|
-
const
|
|
37358
|
-
let
|
|
37359
|
-
const
|
|
37360
|
-
if (typeof
|
|
37361
|
-
const
|
|
37479
|
+
let data71 = data17.pullRequestTitle;
|
|
37480
|
+
const _errs214 = errors;
|
|
37481
|
+
const _errs215 = errors;
|
|
37482
|
+
let valid32 = false;
|
|
37483
|
+
const _errs216 = errors;
|
|
37484
|
+
if (typeof data71 !== "string") {
|
|
37485
|
+
const err135 = { instancePath: instancePath + "/advisories/" + i1 + "/pullRequestTitle", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/1/properties/pullRequestTitle/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
37362
37486
|
if (vErrors === null) {
|
|
37363
|
-
vErrors = [
|
|
37487
|
+
vErrors = [err135];
|
|
37364
37488
|
} else {
|
|
37365
|
-
vErrors.push(
|
|
37489
|
+
vErrors.push(err135);
|
|
37366
37490
|
}
|
|
37367
37491
|
errors++;
|
|
37368
37492
|
}
|
|
37369
|
-
var _valid15 =
|
|
37370
|
-
|
|
37371
|
-
const
|
|
37372
|
-
if (
|
|
37373
|
-
const
|
|
37493
|
+
var _valid15 = _errs216 === errors;
|
|
37494
|
+
valid32 = valid32 || _valid15;
|
|
37495
|
+
const _errs218 = errors;
|
|
37496
|
+
if (data71 !== null) {
|
|
37497
|
+
const err136 = { instancePath: instancePath + "/advisories/" + i1 + "/pullRequestTitle", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/1/properties/pullRequestTitle/anyOf/1/type", keyword: "type", params: { type: "null" }, message: "must be null" };
|
|
37374
37498
|
if (vErrors === null) {
|
|
37375
|
-
vErrors = [
|
|
37499
|
+
vErrors = [err136];
|
|
37376
37500
|
} else {
|
|
37377
|
-
vErrors.push(
|
|
37501
|
+
vErrors.push(err136);
|
|
37378
37502
|
}
|
|
37379
37503
|
errors++;
|
|
37380
37504
|
}
|
|
37381
|
-
var _valid15 =
|
|
37382
|
-
|
|
37383
|
-
if (!
|
|
37384
|
-
const
|
|
37505
|
+
var _valid15 = _errs218 === errors;
|
|
37506
|
+
valid32 = valid32 || _valid15;
|
|
37507
|
+
if (!valid32) {
|
|
37508
|
+
const err137 = { instancePath: instancePath + "/advisories/" + i1 + "/pullRequestTitle", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/1/properties/pullRequestTitle/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
37385
37509
|
if (vErrors === null) {
|
|
37386
|
-
vErrors = [
|
|
37510
|
+
vErrors = [err137];
|
|
37387
37511
|
} else {
|
|
37388
|
-
vErrors.push(
|
|
37512
|
+
vErrors.push(err137);
|
|
37389
37513
|
}
|
|
37390
37514
|
errors++;
|
|
37391
37515
|
} else {
|
|
37392
|
-
errors =
|
|
37516
|
+
errors = _errs215;
|
|
37393
37517
|
if (vErrors !== null) {
|
|
37394
|
-
if (
|
|
37395
|
-
vErrors.length =
|
|
37518
|
+
if (_errs215) {
|
|
37519
|
+
vErrors.length = _errs215;
|
|
37396
37520
|
} else {
|
|
37397
37521
|
vErrors = null;
|
|
37398
37522
|
}
|
|
37399
37523
|
}
|
|
37400
37524
|
}
|
|
37401
|
-
var
|
|
37525
|
+
var valid31 = _errs214 === errors;
|
|
37402
37526
|
} else {
|
|
37403
|
-
var
|
|
37527
|
+
var valid31 = true;
|
|
37404
37528
|
}
|
|
37405
|
-
if (
|
|
37529
|
+
if (valid31) {
|
|
37406
37530
|
if (data17.state !== void 0) {
|
|
37407
|
-
let
|
|
37408
|
-
const
|
|
37409
|
-
if (typeof
|
|
37410
|
-
const
|
|
37531
|
+
let data72 = data17.state;
|
|
37532
|
+
const _errs220 = errors;
|
|
37533
|
+
if (typeof data72 !== "string") {
|
|
37534
|
+
const err138 = { instancePath: instancePath + "/advisories/" + i1 + "/state", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/1/properties/state/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
37411
37535
|
if (vErrors === null) {
|
|
37412
|
-
vErrors = [
|
|
37536
|
+
vErrors = [err138];
|
|
37413
37537
|
} else {
|
|
37414
|
-
vErrors.push(
|
|
37538
|
+
vErrors.push(err138);
|
|
37415
37539
|
}
|
|
37416
37540
|
errors++;
|
|
37417
37541
|
}
|
|
37418
|
-
if ("open" !==
|
|
37419
|
-
const
|
|
37542
|
+
if ("open" !== data72) {
|
|
37543
|
+
const err139 = { instancePath: instancePath + "/advisories/" + i1 + "/state", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/1/properties/state/const", keyword: "const", params: { allowedValue: "open" }, message: "must be equal to constant" };
|
|
37420
37544
|
if (vErrors === null) {
|
|
37421
|
-
vErrors = [
|
|
37545
|
+
vErrors = [err139];
|
|
37422
37546
|
} else {
|
|
37423
|
-
vErrors.push(
|
|
37547
|
+
vErrors.push(err139);
|
|
37424
37548
|
}
|
|
37425
37549
|
errors++;
|
|
37426
37550
|
}
|
|
37427
|
-
var
|
|
37551
|
+
var valid31 = _errs220 === errors;
|
|
37428
37552
|
} else {
|
|
37429
|
-
var
|
|
37553
|
+
var valid31 = true;
|
|
37430
37554
|
}
|
|
37431
|
-
if (
|
|
37555
|
+
if (valid31) {
|
|
37432
37556
|
if (data17.mergedAt !== void 0) {
|
|
37433
|
-
const
|
|
37557
|
+
const _errs222 = errors;
|
|
37434
37558
|
if (data17.mergedAt !== null) {
|
|
37435
|
-
const
|
|
37559
|
+
const err140 = { instancePath: instancePath + "/advisories/" + i1 + "/mergedAt", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/1/properties/mergedAt/type", keyword: "type", params: { type: "null" }, message: "must be null" };
|
|
37436
37560
|
if (vErrors === null) {
|
|
37437
|
-
vErrors = [
|
|
37561
|
+
vErrors = [err140];
|
|
37438
37562
|
} else {
|
|
37439
|
-
vErrors.push(
|
|
37563
|
+
vErrors.push(err140);
|
|
37440
37564
|
}
|
|
37441
37565
|
errors++;
|
|
37442
37566
|
}
|
|
37443
|
-
var
|
|
37567
|
+
var valid31 = _errs222 === errors;
|
|
37444
37568
|
} else {
|
|
37445
|
-
var
|
|
37569
|
+
var valid31 = true;
|
|
37446
37570
|
}
|
|
37447
37571
|
}
|
|
37448
37572
|
}
|
|
@@ -37453,17 +37577,17 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
37453
37577
|
}
|
|
37454
37578
|
}
|
|
37455
37579
|
} else {
|
|
37456
|
-
const
|
|
37580
|
+
const err141 = { instancePath: instancePath + "/advisories/" + i1, schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
37457
37581
|
if (vErrors === null) {
|
|
37458
|
-
vErrors = [
|
|
37582
|
+
vErrors = [err141];
|
|
37459
37583
|
} else {
|
|
37460
|
-
vErrors.push(
|
|
37584
|
+
vErrors.push(err141);
|
|
37461
37585
|
}
|
|
37462
37586
|
errors++;
|
|
37463
37587
|
}
|
|
37464
37588
|
}
|
|
37465
|
-
var _valid13 =
|
|
37466
|
-
|
|
37589
|
+
var _valid13 = _errs202 === errors;
|
|
37590
|
+
valid28 = valid28 || _valid13;
|
|
37467
37591
|
if (_valid13) {
|
|
37468
37592
|
if (props1 !== true) {
|
|
37469
37593
|
props1 = props1 || {};
|
|
@@ -37477,25 +37601,25 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
37477
37601
|
props1.mergedAt = true;
|
|
37478
37602
|
}
|
|
37479
37603
|
}
|
|
37480
|
-
if (!
|
|
37481
|
-
const
|
|
37604
|
+
if (!valid28) {
|
|
37605
|
+
const err142 = { instancePath: instancePath + "/advisories/" + i1, schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/6/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
37482
37606
|
if (vErrors === null) {
|
|
37483
|
-
vErrors = [
|
|
37607
|
+
vErrors = [err142];
|
|
37484
37608
|
} else {
|
|
37485
|
-
vErrors.push(
|
|
37609
|
+
vErrors.push(err142);
|
|
37486
37610
|
}
|
|
37487
37611
|
errors++;
|
|
37488
37612
|
} else {
|
|
37489
|
-
errors =
|
|
37613
|
+
errors = _errs179;
|
|
37490
37614
|
if (vErrors !== null) {
|
|
37491
|
-
if (
|
|
37492
|
-
vErrors.length =
|
|
37615
|
+
if (_errs179) {
|
|
37616
|
+
vErrors.length = _errs179;
|
|
37493
37617
|
} else {
|
|
37494
37618
|
vErrors = null;
|
|
37495
37619
|
}
|
|
37496
37620
|
}
|
|
37497
37621
|
}
|
|
37498
|
-
var _valid10 =
|
|
37622
|
+
var _valid10 = _errs178 === errors;
|
|
37499
37623
|
valid15 = valid15 || _valid10;
|
|
37500
37624
|
if (_valid10) {
|
|
37501
37625
|
if (props0 !== true && props1 !== void 0) {
|
|
@@ -37507,120 +37631,120 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
37507
37631
|
}
|
|
37508
37632
|
}
|
|
37509
37633
|
}
|
|
37510
|
-
const
|
|
37511
|
-
if (errors ===
|
|
37634
|
+
const _errs224 = errors;
|
|
37635
|
+
if (errors === _errs224) {
|
|
37512
37636
|
if (data17 && typeof data17 == "object" && !Array.isArray(data17)) {
|
|
37513
|
-
let
|
|
37514
|
-
if (data17.item === void 0 && (
|
|
37515
|
-
const
|
|
37637
|
+
let missing12;
|
|
37638
|
+
if (data17.item === void 0 && (missing12 = "item") || data17.referenced === void 0 && (missing12 = "referenced") || data17.referencedStatus === void 0 && (missing12 = "referencedStatus") || data17.severity === void 0 && (missing12 = "severity")) {
|
|
37639
|
+
const err143 = { instancePath: instancePath + "/advisories/" + i1, schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/7/required", keyword: "required", params: { missingProperty: missing12 }, message: "must have required property '" + missing12 + "'" };
|
|
37516
37640
|
if (vErrors === null) {
|
|
37517
|
-
vErrors = [
|
|
37641
|
+
vErrors = [err143];
|
|
37518
37642
|
} else {
|
|
37519
|
-
vErrors.push(
|
|
37643
|
+
vErrors.push(err143);
|
|
37520
37644
|
}
|
|
37521
37645
|
errors++;
|
|
37522
37646
|
} else {
|
|
37523
37647
|
if (data17.kind !== void 0) {
|
|
37524
|
-
let
|
|
37525
|
-
const
|
|
37526
|
-
if (typeof
|
|
37527
|
-
const
|
|
37648
|
+
let data74 = data17.kind;
|
|
37649
|
+
const _errs226 = errors;
|
|
37650
|
+
if (typeof data74 !== "string") {
|
|
37651
|
+
const err144 = { instancePath: instancePath + "/advisories/" + i1 + "/kind", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/7/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
37528
37652
|
if (vErrors === null) {
|
|
37529
|
-
vErrors = [
|
|
37653
|
+
vErrors = [err144];
|
|
37530
37654
|
} else {
|
|
37531
|
-
vErrors.push(
|
|
37655
|
+
vErrors.push(err144);
|
|
37532
37656
|
}
|
|
37533
37657
|
errors++;
|
|
37534
37658
|
}
|
|
37535
|
-
if ("reference" !==
|
|
37536
|
-
const
|
|
37659
|
+
if ("reference" !== data74) {
|
|
37660
|
+
const err145 = { instancePath: instancePath + "/advisories/" + i1 + "/kind", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/7/properties/kind/const", keyword: "const", params: { allowedValue: "reference" }, message: "must be equal to constant" };
|
|
37537
37661
|
if (vErrors === null) {
|
|
37538
|
-
vErrors = [
|
|
37662
|
+
vErrors = [err145];
|
|
37539
37663
|
} else {
|
|
37540
|
-
vErrors.push(
|
|
37664
|
+
vErrors.push(err145);
|
|
37541
37665
|
}
|
|
37542
37666
|
errors++;
|
|
37543
37667
|
}
|
|
37544
|
-
var
|
|
37668
|
+
var valid33 = _errs226 === errors;
|
|
37545
37669
|
} else {
|
|
37546
|
-
var
|
|
37670
|
+
var valid33 = true;
|
|
37547
37671
|
}
|
|
37548
|
-
if (
|
|
37672
|
+
if (valid33) {
|
|
37549
37673
|
if (data17.item !== void 0) {
|
|
37550
|
-
let
|
|
37551
|
-
const
|
|
37552
|
-
if (errors ===
|
|
37553
|
-
if (typeof
|
|
37554
|
-
if (!pattern4.test(
|
|
37555
|
-
const
|
|
37674
|
+
let data75 = data17.item;
|
|
37675
|
+
const _errs228 = errors;
|
|
37676
|
+
if (errors === _errs228) {
|
|
37677
|
+
if (typeof data75 === "string") {
|
|
37678
|
+
if (!pattern4.test(data75)) {
|
|
37679
|
+
const err146 = { instancePath: instancePath + "/advisories/" + i1 + "/item", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/7/properties/item/pattern", keyword: "pattern", params: { pattern: "^[A-Z][A-Z0-9]*-\\d+$" }, message: 'must match pattern "^[A-Z][A-Z0-9]*-\\d+$"' };
|
|
37556
37680
|
if (vErrors === null) {
|
|
37557
|
-
vErrors = [
|
|
37681
|
+
vErrors = [err146];
|
|
37558
37682
|
} else {
|
|
37559
|
-
vErrors.push(
|
|
37683
|
+
vErrors.push(err146);
|
|
37560
37684
|
}
|
|
37561
37685
|
errors++;
|
|
37562
37686
|
}
|
|
37563
37687
|
} else {
|
|
37564
|
-
const
|
|
37688
|
+
const err147 = { instancePath: instancePath + "/advisories/" + i1 + "/item", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/7/properties/item/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
37565
37689
|
if (vErrors === null) {
|
|
37566
|
-
vErrors = [
|
|
37690
|
+
vErrors = [err147];
|
|
37567
37691
|
} else {
|
|
37568
|
-
vErrors.push(
|
|
37692
|
+
vErrors.push(err147);
|
|
37569
37693
|
}
|
|
37570
37694
|
errors++;
|
|
37571
37695
|
}
|
|
37572
37696
|
}
|
|
37573
|
-
var
|
|
37697
|
+
var valid33 = _errs228 === errors;
|
|
37574
37698
|
} else {
|
|
37575
|
-
var
|
|
37699
|
+
var valid33 = true;
|
|
37576
37700
|
}
|
|
37577
|
-
if (
|
|
37701
|
+
if (valid33) {
|
|
37578
37702
|
if (data17.referenced !== void 0) {
|
|
37579
|
-
const
|
|
37703
|
+
const _errs230 = errors;
|
|
37580
37704
|
if (typeof data17.referenced !== "string") {
|
|
37581
|
-
const
|
|
37705
|
+
const err148 = { instancePath: instancePath + "/advisories/" + i1 + "/referenced", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/7/properties/referenced/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
37582
37706
|
if (vErrors === null) {
|
|
37583
|
-
vErrors = [
|
|
37707
|
+
vErrors = [err148];
|
|
37584
37708
|
} else {
|
|
37585
|
-
vErrors.push(
|
|
37709
|
+
vErrors.push(err148);
|
|
37586
37710
|
}
|
|
37587
37711
|
errors++;
|
|
37588
37712
|
}
|
|
37589
|
-
var
|
|
37713
|
+
var valid33 = _errs230 === errors;
|
|
37590
37714
|
} else {
|
|
37591
|
-
var
|
|
37715
|
+
var valid33 = true;
|
|
37592
37716
|
}
|
|
37593
|
-
if (
|
|
37717
|
+
if (valid33) {
|
|
37594
37718
|
if (data17.referencedStatus !== void 0) {
|
|
37595
|
-
const
|
|
37719
|
+
const _errs232 = errors;
|
|
37596
37720
|
if (typeof data17.referencedStatus !== "string") {
|
|
37597
|
-
const
|
|
37721
|
+
const err149 = { instancePath: instancePath + "/advisories/" + i1 + "/referencedStatus", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/7/properties/referencedStatus/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
37598
37722
|
if (vErrors === null) {
|
|
37599
|
-
vErrors = [
|
|
37723
|
+
vErrors = [err149];
|
|
37600
37724
|
} else {
|
|
37601
|
-
vErrors.push(
|
|
37725
|
+
vErrors.push(err149);
|
|
37602
37726
|
}
|
|
37603
37727
|
errors++;
|
|
37604
37728
|
}
|
|
37605
|
-
var
|
|
37729
|
+
var valid33 = _errs232 === errors;
|
|
37606
37730
|
} else {
|
|
37607
|
-
var
|
|
37731
|
+
var valid33 = true;
|
|
37608
37732
|
}
|
|
37609
|
-
if (
|
|
37733
|
+
if (valid33) {
|
|
37610
37734
|
if (data17.severity !== void 0) {
|
|
37611
|
-
const
|
|
37735
|
+
const _errs234 = errors;
|
|
37612
37736
|
if (typeof data17.severity !== "string") {
|
|
37613
|
-
const
|
|
37737
|
+
const err150 = { instancePath: instancePath + "/advisories/" + i1 + "/severity", schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/7/properties/severity/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
37614
37738
|
if (vErrors === null) {
|
|
37615
|
-
vErrors = [
|
|
37739
|
+
vErrors = [err150];
|
|
37616
37740
|
} else {
|
|
37617
|
-
vErrors.push(
|
|
37741
|
+
vErrors.push(err150);
|
|
37618
37742
|
}
|
|
37619
37743
|
errors++;
|
|
37620
37744
|
}
|
|
37621
|
-
var
|
|
37745
|
+
var valid33 = _errs234 === errors;
|
|
37622
37746
|
} else {
|
|
37623
|
-
var
|
|
37747
|
+
var valid33 = true;
|
|
37624
37748
|
}
|
|
37625
37749
|
}
|
|
37626
37750
|
}
|
|
@@ -37628,16 +37752,16 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
37628
37752
|
}
|
|
37629
37753
|
}
|
|
37630
37754
|
} else {
|
|
37631
|
-
const
|
|
37755
|
+
const err151 = { instancePath: instancePath + "/advisories/" + i1, schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf/7/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
37632
37756
|
if (vErrors === null) {
|
|
37633
|
-
vErrors = [
|
|
37757
|
+
vErrors = [err151];
|
|
37634
37758
|
} else {
|
|
37635
|
-
vErrors.push(
|
|
37759
|
+
vErrors.push(err151);
|
|
37636
37760
|
}
|
|
37637
37761
|
errors++;
|
|
37638
37762
|
}
|
|
37639
37763
|
}
|
|
37640
|
-
var _valid10 =
|
|
37764
|
+
var _valid10 = _errs224 === errors;
|
|
37641
37765
|
valid15 = valid15 || _valid10;
|
|
37642
37766
|
if (_valid10) {
|
|
37643
37767
|
if (props0 !== true) {
|
|
@@ -37650,11 +37774,11 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
37650
37774
|
}
|
|
37651
37775
|
}
|
|
37652
37776
|
if (!valid15) {
|
|
37653
|
-
const
|
|
37777
|
+
const err152 = { instancePath: instancePath + "/advisories/" + i1, schemaPath: "motir://v1/components/DispatchPrompt/properties/advisories/items/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
37654
37778
|
if (vErrors === null) {
|
|
37655
|
-
vErrors = [
|
|
37779
|
+
vErrors = [err152];
|
|
37656
37780
|
} else {
|
|
37657
|
-
vErrors.push(
|
|
37781
|
+
vErrors.push(err152);
|
|
37658
37782
|
}
|
|
37659
37783
|
errors++;
|
|
37660
37784
|
validate61.errors = vErrors;
|