changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$defs": {
+ "BreachCounts": {
+ "additionalProperties": false,
+ "properties": {
+ "expected": {
+ "anyOf": [
+ {
+ "maximum": 1000000000000000,
+ "minimum": -1000000000000000,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ {
+ "maximum": 1000000000000000,
+ "minimum": -1000000000000000,
+ "type": "number"
+ }
+ ]
+ },
+ "observed": {
+ "maximum": 9223372036854776000,
+ "minimum": 0,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ "rate_observed": {
+ "anyOf": [
+ {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ ]
+ }
+ },
+ "required": [
+ "observed",
+ "expected",
+ "rate_observed"
+ ],
+ "type": "object"
+ },
+ "EqualPredictiveAbility": {
+ "additionalProperties": false,
+ "properties": {
+ "advisory_p_threshold": {
+ "anyOf": [
+ {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ ]
+ },
+ "dm_stat": {
+ "anyOf": [
+ {
+ "maximum": 1000000000000000,
+ "minimum": -1000000000000000,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ {
+ "maximum": 1000000000000000,
+ "minimum": -1000000000000000,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "hac_lags": {
+ "anyOf": [
+ {
+ "maximum": 9223372036854776000,
+ "minimum": 0,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "kill_p_threshold": {
+ "anyOf": [
+ {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ ]
+ },
+ "loss": {
+ "anyOf": [
+ {
+ "enum": [
+ "fz0",
+ "quantile_tick"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "mean_loss_benchmark": {
+ "anyOf": [
+ {
+ "maximum": 1000000000000000,
+ "minimum": -1000000000000000,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ {
+ "maximum": 1000000000000000,
+ "minimum": -1000000000000000,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "mean_loss_candidate": {
+ "anyOf": [
+ {
+ "maximum": 1000000000000000,
+ "minimum": -1000000000000000,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ {
+ "maximum": 1000000000000000,
+ "minimum": -1000000000000000,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "p_dominated": {
+ "anyOf": [
+ {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "supplied": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "supplied",
+ "loss",
+ "mean_loss_candidate",
+ "mean_loss_benchmark",
+ "dm_stat",
+ "p_dominated",
+ "hac_lags",
+ "kill_p_threshold",
+ "advisory_p_threshold"
+ ],
+ "type": "object"
+ },
+ "EsBacktestResult": {
+ "additionalProperties": false,
+ "properties": {
+ "e_advisory_threshold": {
+ "anyOf": [
+ {
+ "maximum": 1000000000000000,
+ "minimum": -1000000000000000,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ {
+ "maximum": 1000000000000000,
+ "minimum": -1000000000000000,
+ "type": "number"
+ }
+ ]
+ },
+ "e_kill_threshold": {
+ "anyOf": [
+ {
+ "maximum": 1000000000000000,
+ "minimum": -1000000000000000,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ {
+ "maximum": 1000000000000000,
+ "minimum": -1000000000000000,
+ "type": "number"
+ }
+ ]
+ },
+ "e_value": {
+ "anyOf": [
+ {
+ "maximum": 1000000000000000,
+ "minimum": -1000000000000000,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ {
+ "maximum": 1000000000000000,
+ "minimum": -1000000000000000,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "lambda_grid": {
+ "items": {
+ "anyOf": [
+ {
+ "maximum": 1000000000000000,
+ "minimum": -1000000000000000,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ {
+ "maximum": 1000000000000000,
+ "minimum": -1000000000000000,
+ "type": "number"
+ }
+ ]
+ },
+ "maxItems": 10000,
+ "type": "array"
+ },
+ "log10_e_value": {
+ "anyOf": [
+ {
+ "maximum": 1000000000000000,
+ "minimum": -1000000000000000,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ {
+ "maximum": 1000000000000000,
+ "minimum": -1000000000000000,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "supplied": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "supplied",
+ "lambda_grid",
+ "e_value",
+ "log10_e_value",
+ "e_kill_threshold",
+ "e_advisory_threshold"
+ ],
+ "type": "object"
+ },
+ "IndependenceResult": {
+ "additionalProperties": false,
+ "properties": {
+ "advisory_p_threshold": {
+ "anyOf": [
+ {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ ]
+ },
+ "lr": {
+ "anyOf": [
+ {
+ "maximum": 1000000000000000,
+ "minimum": -1000000000000000,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ {
+ "maximum": 1000000000000000,
+ "minimum": -1000000000000000,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "max_run": {
+ "maximum": 9223372036854776000,
+ "minimum": 0,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ "n00": {
+ "maximum": 9223372036854776000,
+ "minimum": 0,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ "n01": {
+ "maximum": 9223372036854776000,
+ "minimum": 0,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ "n10": {
+ "maximum": 9223372036854776000,
+ "minimum": 0,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ "n11": {
+ "maximum": 9223372036854776000,
+ "minimum": 0,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ "p": {
+ "anyOf": [
+ {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "n00",
+ "n01",
+ "n10",
+ "n11",
+ "lr",
+ "p",
+ "max_run",
+ "advisory_p_threshold"
+ ],
+ "type": "object"
+ },
+ "KupiecResult": {
+ "additionalProperties": false,
+ "properties": {
+ "lr": {
+ "anyOf": [
+ {
+ "maximum": 1000000000000000,
+ "minimum": -1000000000000000,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ {
+ "maximum": 1000000000000000,
+ "minimum": -1000000000000000,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "p": {
+ "anyOf": [
+ {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "lr",
+ "p"
+ ],
+ "type": "object"
+ },
+ "PublicMeta": {
+ "additionalProperties": false,
+ "properties": {
+ "api_version": {
+ "maxLength": 256,
+ "minLength": 1,
+ "pattern": "^\\S+$",
+ "type": "string"
+ },
+ "as_of": {
+ "format": "date-time",
+ "maxLength": 20,
+ "minLength": 20,
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$",
+ "type": "string"
+ },
+ "disclaimer": {
+ "maxLength": 2000,
+ "type": "string"
+ },
+ "engine_version": {
+ "maxLength": 256,
+ "minLength": 1,
+ "pattern": "^\\S+$",
+ "type": "string"
+ },
+ "input_digest": {
+ "pattern": "^sha256:[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "not_financial_advice": {
+ "const": true,
+ "type": "boolean"
+ },
+ "operation": {
+ "maxLength": 256,
+ "minLength": 1,
+ "pattern": "^\\S+$",
+ "type": "string"
+ },
+ "request_digest": {
+ "pattern": "^sha256:[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "request_id": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "source_identity_digest": {
+ "pattern": "^sha256:[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "statefulness": {
+ "enum": [
+ "pure",
+ "public_read",
+ "tenant_read",
+ "tenant_write"
+ ],
+ "type": "string"
+ },
+ "tenant_scope": {
+ "maxLength": 256,
+ "minLength": 1,
+ "pattern": "^\\S+$",
+ "type": "string"
+ },
+ "tenant_scope_version": {
+ "maxLength": 256,
+ "minLength": 1,
+ "pattern": "^\\S+$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "engine_version",
+ "api_version",
+ "as_of",
+ "input_digest",
+ "request_digest",
+ "tenant_scope",
+ "tenant_scope_version",
+ "request_id",
+ "source_identity_digest",
+ "operation",
+ "statefulness",
+ "not_financial_advice",
+ "disclaimer"
+ ],
+ "type": "object",
+ "x-relations": [
+ "as_of is a real UTC RFC3339 second"
+ ]
+ },
+ "TrafficLightZone": {
+ "additionalProperties": false,
+ "properties": {
+ "cumulative_prob": {
+ "anyOf": [
+ {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ ]
+ },
+ "zone": {
+ "enum": [
+ "green",
+ "yellow",
+ "red"
+ ],
+ "type": "string"
+ },
+ "zone_thresholds": {
+ "$ref": "#/$defs/ZoneThresholds"
+ }
+ },
+ "required": [
+ "zone",
+ "cumulative_prob",
+ "zone_thresholds"
+ ],
+ "type": "object"
+ },
+ "ZoneThresholds": {
+ "additionalProperties": false,
+ "properties": {
+ "red_at_cumulative_prob": {
+ "anyOf": [
+ {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ ]
+ },
+ "yellow_at_cumulative_prob": {
+ "anyOf": [
+ {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ ]
+ }
+ },
+ "required": [
+ "yellow_at_cumulative_prob",
+ "red_at_cumulative_prob"
+ ],
+ "type": "object"
+ }
+ },
+ "additionalProperties": false,
+ "properties": {
+ "result": {
+ "additionalProperties": false,
+ "allOf": [
+ {
+ "if": {
+ "properties": {
+ "status": {
+ "const": "computed"
+ }
+ },
+ "required": [
+ "status"
+ ]
+ },
+ "then": {
+ "properties": {
+ "basel": {
+ "not": {
+ "type": "null"
+ }
+ },
+ "breaches": {
+ "not": {
+ "type": "null"
+ }
+ },
+ "epa": {
+ "not": {
+ "type": "null"
+ }
+ },
+ "es": {
+ "not": {
+ "type": "null"
+ }
+ },
+ "independence": {
+ "not": {
+ "type": "null"
+ }
+ },
+ "interpretation": {
+ "not": {
+ "type": "null"
+ }
+ },
+ "kupiec": {
+ "not": {
+ "type": "null"
+ }
+ },
+ "n": {
+ "not": {
+ "type": "null"
+ }
+ },
+ "reason": {
+ "type": "null"
+ }
+ },
+ "required": [
+ "n",
+ "breaches",
+ "kupiec",
+ "independence",
+ "es",
+ "basel",
+ "epa",
+ "interpretation"
+ ]
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "status": {
+ "const": "blocked"
+ }
+ },
+ "required": [
+ "status"
+ ]
+ },
+ "then": {
+ "properties": {
+ "basel": {
+ "type": "null"
+ },
+ "breaches": {
+ "type": "null"
+ },
+ "epa": {
+ "type": "null"
+ },
+ "es": {
+ "type": "null"
+ },
+ "independence": {
+ "type": "null"
+ },
+ "interpretation": {
+ "type": "null"
+ },
+ "kupiec": {
+ "type": "null"
+ },
+ "reason": {
+ "not": {
+ "type": "null"
+ }
+ }
+ },
+ "required": [
+ "reason"
+ ]
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "status": {
+ "const": "computed"
+ }
+ },
+ "required": [
+ "status"
+ ]
+ },
+ "then": {
+ "properties": {
+ "n": {
+ "minimum": 1
+ }
+ }
+ }
+ }
+ ],
+ "properties": {
+ "_meta": {
+ "$ref": "#/$defs/PublicMeta"
+ },
+ "advisories": {
+ "items": {
+ "maxLength": 2000,
+ "type": "string"
+ },
+ "maxItems": 10000,
+ "type": "array"
+ },
+ "alpha": {
+ "anyOf": [
+ {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ ]
+ },
+ "basel": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/TrafficLightZone"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "breaches": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BreachCounts"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "died_at": {
+ "anyOf": [
+ {
+ "maxLength": 2000,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "died_at_plain": {
+ "anyOf": [
+ {
+ "maxLength": 2000,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "epa": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/EqualPredictiveAbility"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "es": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/EsBacktestResult"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "failure_codes": {
+ "items": {
+ "maxLength": 2000,
+ "type": "string"
+ },
+ "maxItems": 10000,
+ "type": "array"
+ },
+ "independence": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/IndependenceResult"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "interpretation": {
+ "anyOf": [
+ {
+ "maxLength": 2000,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "kupiec": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/KupiecResult"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "method": {
+ "const": "var_es_exceedance_backtest",
+ "type": "string"
+ },
+ "n": {
+ "anyOf": [
+ {
+ "maximum": 9223372036854776000,
+ "minimum": 0,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "reason": {
+ "anyOf": [
+ {
+ "maxLength": 2000,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "schema": {
+ "const": "var_es.v1",
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "blocked",
+ "computed"
+ ],
+ "type": "string"
+ },
+ "verdict": {
+ "enum": [
+ "pass",
+ "fail",
+ "insufficient_evidence"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "_meta",
+ "schema",
+ "method",
+ "status",
+ "verdict",
+ "n",
+ "alpha",
+ "died_at",
+ "died_at_plain",
+ "failure_codes",
+ "advisories"
+ ],
+ "type": "object",
+ "x-relations": [
+ "breaches.observed <= n when status == computed",
+ "breaches.rate_observed ~= breaches.observed / n when status == computed",
+ "independence.n00 + independence.n01 + independence.n10 + independence.n11 == n - 1 when status == computed"
+ ]
+ }
+ },
+ "required": [
+ "result"
+ ],
+ "type": "object"
+}