changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$id": "https://mizan.market/verdict/mizan-verdict-1.schema.json",
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "allOf": [
+ {
+ "if": {
+ "properties": {
+ "decision": {
+ "const": "ALLOW"
+ }
+ }
+ },
+ "then": {
+ "not": {
+ "anyOf": [
+ {
+ "required": [
+ "reason"
+ ]
+ },
+ {
+ "required": [
+ "next"
+ ]
+ }
+ ]
+ },
+ "required": [
+ "met",
+ "grade"
+ ]
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "decision": {
+ "const": "REFUSE"
+ }
+ }
+ },
+ "then": {
+ "not": {
+ "anyOf": [
+ {
+ "required": [
+ "met"
+ ]
+ },
+ {
+ "required": [
+ "grade"
+ ]
+ }
+ ]
+ },
+ "required": [
+ "reason",
+ "next"
+ ]
+ }
+ }
+ ],
+ "description": "One signed answer to: may I pay this party under this rule? Fields absent when unknown; never null.",
+ "properties": {
+ "as_of": {
+ "additionalProperties": false,
+ "properties": {
+ "head": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "ledger_size": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "ledger_size",
+ "head"
+ ],
+ "type": "object"
+ },
+ "bound_to": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "pattern": "^[0-9]+(\\.[0-9]+)? [A-Z0-9]{1,12}$",
+ "type": "string"
+ },
+ "payee": {
+ "type": "string"
+ },
+ "rule": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "payee",
+ "rule"
+ ],
+ "type": "object"
+ },
+ "decision": {
+ "enum": [
+ "ALLOW",
+ "REFUSE"
+ ]
+ },
+ "details": {
+ "format": "uri",
+ "type": "string"
+ },
+ "expires": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "grade": {
+ "description": "Present on ALLOW only; never higher than earned.",
+ "enum": [
+ "DECLARED",
+ "RECORDED",
+ "PROVEN"
+ ]
+ },
+ "issued": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "kid": {
+ "type": "string"
+ },
+ "measured": {
+ "additionalProperties": false,
+ "description": "Only earned fields; an unknown field is omitted, never zero.",
+ "properties": {
+ "counted_before_outcome": {
+ "type": "boolean"
+ },
+ "metric": {
+ "type": "string"
+ },
+ "tries": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "value": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "met": {
+ "description": "ALLOW only: the bar met, in plain words.",
+ "type": "string"
+ },
+ "next": {
+ "properties": {
+ "proof_request": {
+ "type": "object"
+ },
+ "what_would_pass": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "proof_request",
+ "what_would_pass"
+ ],
+ "type": "object"
+ },
+ "reason": {
+ "description": "REFUSE only: one stable reason code (see reason_codes), or a documented rule-specific code.",
+ "type": "string"
+ },
+ "record": {
+ "additionalProperties": false,
+ "properties": {
+ "entry": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "id": {
+ "type": "string"
+ },
+ "verify": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "entry",
+ "verify"
+ ],
+ "type": "object"
+ },
+ "request_id": {
+ "type": "string"
+ },
+ "rule": {
+ "additionalProperties": false,
+ "properties": {
+ "hash": {
+ "pattern": "^sha256:[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "type": "object"
+ },
+ "schema": {
+ "const": "mizan.verdict/1"
+ },
+ "status": {
+ "format": "uri",
+ "type": "string"
+ },
+ "subject": {
+ "description": "Canonical id: credential:…, ag:…, evm:…, dns:…, web:…; otherwise the subject as given.",
+ "type": "string"
+ },
+ "token": {
+ "pattern": "^mzv1\\.[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "schema",
+ "decision",
+ "subject",
+ "rule",
+ "issued",
+ "expires",
+ "as_of",
+ "request_id",
+ "token",
+ "kid",
+ "status",
+ "details"
+ ],
+ "title": "mizan.verdict/1",
+ "type": "object"
+}