{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://thesoftwarelens.com/saacip/0.1/schemas/approval-request.schema.json",
  "$comment": "SaaCIP 0.1 (https://thesoftwarelens.com/saacip/). Licensed under the Apache License 2.0.",
  "title": "SaaCIP 0.1 Resident binding: approval request",
  "description": "POST <base>/approvals/ (autonomy level 2 or above).",
  "type": "object",
  "required": [
    "action_id",
    "ref",
    "action"
  ],
  "properties": {
    "action_id": {
      "$ref": "common.schema.json#/$defs/ref"
    },
    "ref": {
      "$ref": "common.schema.json#/$defs/ref"
    },
    "action": {
      "type": "string",
      "minLength": 1,
      "description": "The id of a declared action."
    },
    "summary": {
      "type": "string",
      "maxLength": 500
    },
    "ext": {
      "$ref": "common.schema.json#/$defs/ext"
    }
  }
}
