Variable CLASH_RUN_DOCUMENT_JSON_SCHEMAConst
CLASH_RUN_DOCUMENT_JSON_SCHEMA: {
$id: "https://ifclite.dev/schemas/clash-run/v1.json";
$schema: "https://json-schema.org/draft/2020-12/schema";
additionalProperties: false;
description: "Version 1 is closed: unknown properties are refused; a new field means a new version. Consistency between findings and the manifest (keys, rule revisions, unique ids) is checked by validateClashRunDocument.";
properties: {
createdAt: { format: "date-time"; type: "string" };
findings: {
items: {
additionalProperties: false;
properties: {
a: {
additionalProperties: false;
properties: {
ambiguous: { const: true };
globalId: { type: readonly ["string", "null"] };
key: { type: "string" };
name: { type: "string" };
slot: { type: "string" };
type: { type: "string" };
};
required: readonly ["slot", "key", "globalId", "type"];
type: "object";
};
b: {
additionalProperties: false;
properties: {
ambiguous: { const: true };
globalId: { type: readonly ["string", "null"] };
key: { type: "string" };
name: { type: "string" };
slot: { type: "string" };
type: { type: "string" };
};
required: readonly ["slot", "key", "globalId", "type"];
type: "object";
};
bbox: {
additionalProperties: false;
properties: {
max: {
items: { type: "number" };
maxItems: 3;
minItems: 3;
type: "array";
};
min: {
items: { type: "number" };
maxItems: 3;
minItems: 3;
type: "array";
};
};
required: readonly ["min", "max"];
type: "object";
};
distance: { type: "number" };
distanceKind: { enum: readonly ["mesh", "estimate", null] };
id: { type: "string" };
key: { type: readonly ["string", "null"] };
legacyKey: { type: "string" };
point: {
items: { type: "number" };
maxItems: 3;
minItems: 3;
type: "array";
};
review: {
additionalProperties: false;
properties: {
comment: { type: "string" };
status: { enum: readonly ["open", "resolved", "accepted"] };
updatedAt: { type: "number" };
};
required: readonly ["status"];
type: "object";
};
rule: { type: "string" };
ruleRevision: { type: "string" };
severity: { enum: readonly ["critical", "major", "minor", "info"] };
status: { enum: readonly ["hard", "clearance", "touch"] };
volume: { type: readonly ["number", "null"] };
};
required: readonly [
"id",
"key",
"legacyKey",
"rule",
"ruleRevision",
"status",
"severity",
"distance",
"distanceKind",
"volume",
"point",
"bbox",
"a",
"b",
];
type: "object";
};
type: "array";
};
labels: { items: { type: "string" }; type: "array" };
manifest: {
additionalProperties: false;
properties: {
ambiguousKeys: {
additionalProperties: { items: { type: "string" }; type: "array" };
type: "object";
};
coverage: {
items: {
additionalProperties: false;
properties: {
candidatesExamined: {
minimum: 0;
type: readonly ["integer", "null"];
};
examined: {
anyOf: readonly [
{ type: ... },
{
additionalProperties: ...;
properties: ...;
required: ...;
type: ...;
},
];
};
matchedA: { minimum: 0; type: "integer" };
matchedB: { minimum: 0; type: readonly ["integer", "null"] };
rule: { type: "string" };
};
required: readonly [
"rule",
"matchedA",
"matchedB",
"candidatesExamined",
"examined",
];
type: "object";
};
type: "array";
};
engine: {
additionalProperties: false;
properties: {
backend: { type: readonly ["string", "null"] };
build: { type: readonly ["string", "null"] };
name: { type: "string" };
version: { type: readonly ["string", "null"] };
};
required: readonly ["name", "version", "build", "backend"];
type: "object";
};
exclusionRules: {
items: {
oneOf: readonly [
{
additionalProperties: false;
properties: { kind: { const: ... }; type: { type: ... } };
required: readonly [(...), (...)];
type: "object";
},
{
additionalProperties: false;
properties: {
a: { type: ... };
b: { type: ... };
kind: { const: ... };
};
required: readonly [(...), (...), (...)];
type: "object";
},
{
additionalProperties: false;
properties: {
a: { type: ... };
b: { type: ... };
kind: { const: ... };
};
required: readonly [(...), (...), (...)];
type: "object";
},
];
};
type: readonly ["array", "null"];
};
exclusions: {
anyOf: readonly [
{ items: { type: "string" }; type: "array" },
{ type: "null" },
];
};
exclusionTypes: {
anyOf: readonly [
{ type: "null" },
{
additionalProperties: {
additionalProperties: { type: "string" };
type: "object";
};
type: "object";
},
];
};
rules: {
additionalProperties: false;
properties: {
items: {
items: {
additionalProperties: false;
properties: {
a: { type: "string" };
b: { type: readonly (...) };
clearance: { type: readonly (...) };
explicitMembers: {
additionalProperties: false;
properties: { a: ...; b: ... };
required: readonly (...);
type: "object";
};
id: { type: "string" };
mode: { enum: readonly (...) };
name: { type: "string" };
reportTouch: { type: "boolean" };
revision: { type: "string" };
tolerance: { type: "number" };
};
required: readonly [
"id",
"name",
"revision",
"a",
"b",
"mode",
"tolerance",
"clearance",
"reportTouch",
"explicitMembers",
];
type: "object";
};
type: "array";
};
revision: { type: "string" };
};
required: readonly ["revision", "items"];
type: "object";
};
settings: {
additionalProperties: false;
properties: {
excludeVoidsAndHosts: { type: "boolean" };
tolerance: { type: "number" };
};
required: readonly ["tolerance", "excludeVoidsAndHosts"];
type: "object";
};
slots: {
items: {
additionalProperties: false;
properties: {
label: { type: "string" };
name: { type: "string" };
sha256: {
pattern: "^[0-9a-f]{64}$";
type: readonly ["string", "null"];
};
slot: { type: "string" };
};
required: readonly ["slot", "sha256"];
type: "object";
};
type: "array";
};
truncated: {
anyOf: readonly [
{ type: "null" },
{
additionalProperties: false;
properties: {
droppedPairs: { minimum: 0; type: "integer" };
reason: { type: "string" };
};
required: readonly ["reason", "droppedPairs"];
type: "object";
},
];
};
};
required: readonly [
"slots",
"rules",
"engine",
"settings",
"coverage",
"ambiguousKeys",
"exclusions",
"exclusionRules",
"exclusionTypes",
"truncated",
];
type: "object";
};
runId: { type: readonly ["string", "null"] };
schema: { const: "https://ifclite.dev/schemas/clash-run/v1.json" };
version: { const: 1 };
};
required: readonly [
"schema",
"version",
"runId",
"createdAt",
"labels",
"manifest",
"findings",
];
title: "ifc-lite clash run";
type: "object";
}
Type Declaration
-
Readonly$id: "https://ifclite.dev/schemas/clash-run/v1.json"
-
Readonly$schema: "https://json-schema.org/draft/2020-12/schema"
-
ReadonlyadditionalProperties: false
-
Readonlydescription: "Version 1 is closed: unknown properties are refused; a new field means a new version. Consistency between findings and the manifest (keys, rule revisions, unique ids) is checked by validateClashRunDocument."
-
Readonlyproperties: {
createdAt: { format: "date-time"; type: "string" };
findings: {
items: {
additionalProperties: false;
properties: {
a: {
additionalProperties: false;
properties: {
ambiguous: { const: true };
globalId: { type: readonly ["string", "null"] };
key: { type: "string" };
name: { type: "string" };
slot: { type: "string" };
type: { type: "string" };
};
required: readonly ["slot", "key", "globalId", "type"];
type: "object";
};
b: {
additionalProperties: false;
properties: {
ambiguous: { const: true };
globalId: { type: readonly ["string", "null"] };
key: { type: "string" };
name: { type: "string" };
slot: { type: "string" };
type: { type: "string" };
};
required: readonly ["slot", "key", "globalId", "type"];
type: "object";
};
bbox: {
additionalProperties: false;
properties: {
max: {
items: { type: "number" };
maxItems: 3;
minItems: 3;
type: "array";
};
min: {
items: { type: "number" };
maxItems: 3;
minItems: 3;
type: "array";
};
};
required: readonly ["min", "max"];
type: "object";
};
distance: { type: "number" };
distanceKind: { enum: readonly ["mesh", "estimate", null] };
id: { type: "string" };
key: { type: readonly ["string", "null"] };
legacyKey: { type: "string" };
point: {
items: { type: "number" };
maxItems: 3;
minItems: 3;
type: "array";
};
review: {
additionalProperties: false;
properties: {
comment: { type: "string" };
status: { enum: readonly ["open", "resolved", "accepted"] };
updatedAt: { type: "number" };
};
required: readonly ["status"];
type: "object";
};
rule: { type: "string" };
ruleRevision: { type: "string" };
severity: { enum: readonly ["critical", "major", "minor", "info"] };
status: { enum: readonly ["hard", "clearance", "touch"] };
volume: { type: readonly ["number", "null"] };
};
required: readonly [
"id",
"key",
"legacyKey",
"rule",
"ruleRevision",
"status",
"severity",
"distance",
"distanceKind",
"volume",
"point",
"bbox",
"a",
"b",
];
type: "object";
};
type: "array";
};
labels: { items: { type: "string" }; type: "array" };
manifest: {
additionalProperties: false;
properties: {
ambiguousKeys: {
additionalProperties: { items: { type: "string" }; type: "array" };
type: "object";
};
coverage: {
items: {
additionalProperties: false;
properties: {
candidatesExamined: {
minimum: 0;
type: readonly ["integer", "null"];
};
examined: {
anyOf: readonly [
{ type: ... },
{
additionalProperties: ...;
properties: ...;
required: ...;
type: ...;
},
];
};
matchedA: { minimum: 0; type: "integer" };
matchedB: { minimum: 0; type: readonly ["integer", "null"] };
rule: { type: "string" };
};
required: readonly [
"rule",
"matchedA",
"matchedB",
"candidatesExamined",
"examined",
];
type: "object";
};
type: "array";
};
engine: {
additionalProperties: false;
properties: {
backend: { type: readonly ["string", "null"] };
build: { type: readonly ["string", "null"] };
name: { type: "string" };
version: { type: readonly ["string", "null"] };
};
required: readonly ["name", "version", "build", "backend"];
type: "object";
};
exclusionRules: {
items: {
oneOf: readonly [
{
additionalProperties: false;
properties: { kind: { const: ... }; type: { type: ... } };
required: readonly [(...), (...)];
type: "object";
},
{
additionalProperties: false;
properties: {
a: { type: ... };
b: { type: ... };
kind: { const: ... };
};
required: readonly [(...), (...), (...)];
type: "object";
},
{
additionalProperties: false;
properties: {
a: { type: ... };
b: { type: ... };
kind: { const: ... };
};
required: readonly [(...), (...), (...)];
type: "object";
},
];
};
type: readonly ["array", "null"];
};
exclusions: {
anyOf: readonly [
{ items: { type: "string" }; type: "array" },
{ type: "null" },
];
};
exclusionTypes: {
anyOf: readonly [
{ type: "null" },
{
additionalProperties: {
additionalProperties: { type: "string" };
type: "object";
};
type: "object";
},
];
};
rules: {
additionalProperties: false;
properties: {
items: {
items: {
additionalProperties: false;
properties: {
a: { type: "string" };
b: { type: readonly (...) };
clearance: { type: readonly (...) };
explicitMembers: {
additionalProperties: false;
properties: { a: ...; b: ... };
required: readonly (...);
type: "object";
};
id: { type: "string" };
mode: { enum: readonly (...) };
name: { type: "string" };
reportTouch: { type: "boolean" };
revision: { type: "string" };
tolerance: { type: "number" };
};
required: readonly [
"id",
"name",
"revision",
"a",
"b",
"mode",
"tolerance",
"clearance",
"reportTouch",
"explicitMembers",
];
type: "object";
};
type: "array";
};
revision: { type: "string" };
};
required: readonly ["revision", "items"];
type: "object";
};
settings: {
additionalProperties: false;
properties: {
excludeVoidsAndHosts: { type: "boolean" };
tolerance: { type: "number" };
};
required: readonly ["tolerance", "excludeVoidsAndHosts"];
type: "object";
};
slots: {
items: {
additionalProperties: false;
properties: {
label: { type: "string" };
name: { type: "string" };
sha256: {
pattern: "^[0-9a-f]{64}$";
type: readonly ["string", "null"];
};
slot: { type: "string" };
};
required: readonly ["slot", "sha256"];
type: "object";
};
type: "array";
};
truncated: {
anyOf: readonly [
{ type: "null" },
{
additionalProperties: false;
properties: {
droppedPairs: { minimum: 0; type: "integer" };
reason: { type: "string" };
};
required: readonly ["reason", "droppedPairs"];
type: "object";
},
];
};
};
required: readonly [
"slots",
"rules",
"engine",
"settings",
"coverage",
"ambiguousKeys",
"exclusions",
"exclusionRules",
"exclusionTypes",
"truncated",
];
type: "object";
};
runId: { type: readonly ["string", "null"] };
schema: { const: "https://ifclite.dev/schemas/clash-run/v1.json" };
version: { const: 1 };
}
-
Readonlyrequired: readonly [
"schema",
"version",
"runId",
"createdAt",
"labels",
"manifest",
"findings",
]
-
Readonlytitle: "ifc-lite clash run"
-
Readonlytype: "object"
The run document's JSON Schema.