changedOutput schema / oneOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "age_buckets": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "max_days": {
- "type": [
- "integer",
- "null"
- ]
- },
- "min_days": {
- "minimum": 0,
- "type": "integer"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "min_days",
- "max_days"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "as_of": {
- "type": "string"
- },
- "bpc_valuation": {
- "additionalProperties": false,
- "properties": {
- "asof": {
- "type": [
- "string",
- "null"
- ]
- },
- "cost_basis_total_usd": {
- "type": [
- "number",
- "null"
- ]
- },
- "lots": {
- "items": {
- "additionalProperties": true,
- "type": "object"
- },
- "type": "array"
- },
- "market_ask_median_total_usd": {
- "type": [
- "number",
- "null"
- ]
- },
- "market_bid_total_usd": {
- "type": [
- "number",
- "null"
- ]
- },
- "melt_total_usd": {
- "type": "number"
- },
- "partial_buyback_bid_total_usd": {
- "type": [
- "number",
- "null"
- ]
- },
- "unrealized_vs_melt_total_usd": {
- "type": [
- "number",
- "null"
- ]
- }
- },
- "type": "object"
- },
- "buckets": {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- "carry_annual_rate": {
- "additionalProperties": false,
- "properties": {
- "exact": {
- "type": "string"
- }
- },
- "required": [
- "exact"
- ],
- "type": "object"
- },
- "customization": {
- "type": "string"
- },
- "data_as_of": {
- "type": [
- "string",
- "null"
- ]
- },
- "data_sources": {
- "additionalProperties": true,
- "type": "object"
- },
- "day_count": {
- "const": "actual_365"
- },
- "day_count_note": {
- "type": "string"
- },
- "disclaimer": {
- "type": "string"
- },
- "execution_mode": {
- "enum": [
- "caller_supplied_stateless",
- "bpc_live_and_caller"
- ]
- },
- "freshness": {
- "required": [
- "stale"
- ],
- "type": "object"
- },
- "metal_note": {
- "type": "string"
- },
- "no_accuracy_guarantee": {
- "type": "string"
- },
- "ok": {
- "const": true
- },
- "positions": {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- "schema_version": {
- "const": "1.0.0"
- },
- "sensitivity": {
- "additionalProperties": false,
- "properties": {
- "carry_rates": {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- "note": {
- "type": "string"
- },
- "spot_shocks": {
- "items": {
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "note",
- "carry_rates",
- "spot_shocks"
- ],
- "type": "object"
- },
- "tool": {
- "const": "inventory_aging_exposure"
- },
- "totals": {
- "additionalProperties": false,
- "properties": {
- "by_currency": {
- "items": {
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "by_currency"
- ],
- "type": "object"
- }
- },
- "required": [
- "ok",
- "tool",
- "schema_version",
- "execution_mode",
- "as_of",
- "disclaimer",
- "no_accuracy_guarantee",
- "day_count",
- "day_count_note",
- "carry_annual_rate",
- "age_buckets",
- "metal_note",
- "positions",
- "buckets",
- "totals",
- "sensitivity"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "customization": {
- "type": "string"
- },
- "data_as_of": {
- "type": [
- "string",
- "null"
- ]
- },
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "const": "INVALID_INPUT"
- },
- "diagnostics": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "blocks_eligibility": {
- "type": "boolean"
- },
- "blocks_validity": {
- "type": "boolean"
- },
- "code": {
- "type": "string"
- },
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "severity": {
- "enum": [
- "error",
- "warning",
- "info"
- ]
- }
- },
- "required": [
- "code",
- "severity",
- "field",
- "message",
- "blocks_validity",
- "blocks_eligibility"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "diagnostics"
- ],
- "type": "object"
- },
- "execution_mode": {
- "const": "caller_supplied_stateless"
- },
- "ok": {
- "const": false
- },
- "schema_version": {
- "const": "1.0.0"
- },
- "tool": {
- "const": "inventory_aging_exposure"
- }
- },
- "required": [
- "ok",
- "tool",
- "schema_version",
- "execution_mode",
- "error"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "age_buckets": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "max_days": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "min_days": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "min_days",
+ "max_days"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "as_of": {
+ "type": "string"
+ },
+ "attribution_credit": {
+ "type": "object"
+ },
+ "bpc_valuation": {
+ "additionalProperties": false,
+ "properties": {
+ "asof": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "cost_basis_total_usd": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "lots": {
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "market_ask_median_total_usd": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "market_bid_total_usd": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "melt_total_usd": {
+ "type": "number"
+ },
+ "partial_buyback_bid_total_usd": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "unrealized_vs_melt_total_usd": {
+ "type": [
+ "number",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "buckets": {
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "carry_annual_rate": {
+ "additionalProperties": false,
+ "properties": {
+ "exact": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "exact"
+ ],
+ "type": "object"
+ },
+ "customization": {
+ "type": "string"
+ },
+ "data_as_of": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "data_sources": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "day_count": {
+ "const": "actual_365"
+ },
+ "day_count_note": {
+ "type": "string"
+ },
+ "disclaimer": {
+ "type": "string"
+ },
+ "execution_mode": {
+ "enum": [
+ "caller_supplied_stateless",
+ "bpc_live_and_caller"
+ ]
+ },
+ "freshness": {
+ "required": [
+ "stale"
+ ],
+ "type": "object"
+ },
+ "metal_note": {
+ "type": "string"
+ },
+ "no_accuracy_guarantee": {
+ "type": "string"
+ },
+ "ok": {
+ "const": true
+ },
+ "positions": {
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "schema_version": {
+ "const": "1.0.0"
+ },
+ "sensitivity": {
+ "additionalProperties": false,
+ "properties": {
+ "carry_rates": {
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "note": {
+ "type": "string"
+ },
+ "spot_shocks": {
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "note",
+ "carry_rates",
+ "spot_shocks"
+ ],
+ "type": "object"
+ },
+ "tool": {
+ "const": "inventory_aging_exposure"
+ },
+ "totals": {
+ "additionalProperties": false,
+ "properties": {
+ "by_currency": {
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "by_currency"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "ok",
+ "tool",
+ "schema_version",
+ "execution_mode",
+ "as_of",
+ "disclaimer",
+ "no_accuracy_guarantee",
+ "day_count",
+ "day_count_note",
+ "carry_annual_rate",
+ "age_buckets",
+ "metal_note",
+ "positions",
+ "buckets",
+ "totals",
+ "sensitivity"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "customization": {
+ "type": "string"
+ },
+ "data_as_of": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "const": "INVALID_INPUT"
+ },
+ "diagnostics": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "blocks_eligibility": {
+ "type": "boolean"
+ },
+ "blocks_validity": {
+ "type": "boolean"
+ },
+ "code": {
+ "type": "string"
+ },
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "severity": {
+ "enum": [
+ "error",
+ "warning",
+ "info"
+ ]
+ }
+ },
+ "required": [
+ "code",
+ "severity",
+ "field",
+ "message",
+ "blocks_validity",
+ "blocks_eligibility"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "diagnostics"
+ ],
+ "type": "object"
+ },
+ "execution_mode": {
+ "const": "caller_supplied_stateless"
+ },
+ "ok": {
+ "const": false
+ },
+ "schema_version": {
+ "const": "1.0.0"
+ },
+ "tool": {
+ "const": "inventory_aging_exposure"
+ }
+ },
+ "required": [
+ "ok",
+ "tool",
+ "schema_version",
+ "execution_mode",
+ "error"
+ ],
+ "type": "object"
+ }
+]