changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$defs": {
+ "PreflightChecked": {
+ "additionalProperties": false,
+ "properties": {
+ "ohlcv_symbols": {
+ "items": {
+ "maxLength": 2000,
+ "type": "string"
+ },
+ "maxItems": 10000,
+ "type": "array"
+ },
+ "spec": {
+ "type": "boolean"
+ },
+ "trades_rows": {
+ "maximum": 9223372036854776000,
+ "minimum": 0,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ }
+ },
+ "required": [
+ "spec",
+ "ohlcv_symbols",
+ "trades_rows"
+ ],
+ "type": "object"
+ },
+ "PreflightFinding": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "dsl_invalid",
+ "timestamps_not_monotonic",
+ "ohlcv_non_finite_or_non_positive",
+ "ohlcv_series_misaligned",
+ "symbol_data_missing",
+ "trades_rows_invalid",
+ "sample_below_engine_floor"
+ ],
+ "type": "string"
+ },
+ "detail": {
+ "maxLength": 2000,
+ "type": "string"
+ },
+ "level": {
+ "enum": [
+ "error",
+ "warn"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "level",
+ "detail"
+ ],
+ "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"
+ ]
+ }
+ },
+ "additionalProperties": false,
+ "properties": {
+ "result": {
+ "additionalProperties": false,
+ "allOf": [
+ {
+ "else": {
+ "properties": {
+ "findings": {
+ "contains": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "detail": {
+ "type": "string"
+ },
+ "level": {
+ "const": "error"
+ }
+ },
+ "required": [
+ "level"
+ ],
+ "type": "object"
+ }
+ }
+ }
+ },
+ "if": {
+ "properties": {
+ "ok": {
+ "const": true
+ }
+ },
+ "required": [
+ "ok"
+ ]
+ },
+ "then": {
+ "properties": {
+ "findings": {
+ "not": {
+ "contains": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "detail": {
+ "type": "string"
+ },
+ "level": {
+ "const": "error"
+ }
+ },
+ "required": [
+ "level"
+ ],
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ }
+ ],
+ "properties": {
+ "_meta": {
+ "$ref": "#/$defs/PublicMeta"
+ },
+ "checked": {
+ "$ref": "#/$defs/PreflightChecked"
+ },
+ "findings": {
+ "items": {
+ "$ref": "#/$defs/PreflightFinding"
+ },
+ "maxItems": 10000,
+ "type": "array"
+ },
+ "note": {
+ "maxLength": 2000,
+ "type": "string"
+ },
+ "ok": {
+ "type": "boolean"
+ },
+ "price_usd": {
+ "anyOf": [
+ {
+ "maximum": 1000000000000000,
+ "minimum": 0,
+ "type": "integer",
+ "x-strictJsonInteger": true
+ },
+ {
+ "maximum": 1000000000000000,
+ "minimum": 0,
+ "type": "number"
+ }
+ ]
+ },
+ "schema": {
+ "const": "preflight.v1",
+ "type": "string"
+ }
+ },
+ "required": [
+ "_meta",
+ "schema",
+ "ok",
+ "findings",
+ "checked",
+ "price_usd",
+ "note"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "result"
+ ],
+ "type": "object"
+}