{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.5/storeProtocol/refusal.schema.json",
  "$comment": "OpenEik 0.5: folded by tools/fold-schemas-0.5.mjs from the proposal storeProtocol, which 0.5 makes a rule (open questions, 28). Written by hand, not generated.",
  "title": "A refusal",
  "description": "Every refusal of the protocol, with a status of 400 or more (Part VI, 6.8.2): its code, a message for a person, and, where the store says more, its details.",
  "type": "object",
  "properties": {
    "ok": {
      "const": false,
      "description": "The call was refused."
    },
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "minLength": 1,
          "description": "What names the refusal (6.8.2, rule 1)."
        },
        "message": {
          "type": "string",
          "description": "The refusal, said to a person: text, never markup (6.8.2, rule 4)."
        },
        "details": {
          "type": "object",
          "description": "What more the store says: the assets a ref's move lacks, the format it does not read."
        }
      },
      "required": [
        "code",
        "message"
      ]
    }
  },
  "required": [
    "ok",
    "error"
  ]
}
