{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cloudflare-d1/main/json-schema/d1_api-response-common.json",
  "title": "D1 Api Response Common",
  "description": "Schema for d1_api-response-common",
  "properties": {
    "errors": {
      "$ref": "#/components/schemas/d1_messages"
    },
    "messages": {
      "$ref": "#/components/schemas/d1_messages"
    },
    "result": {
      "type": "object"
    },
    "success": {
      "description": "Whether the API call was successful",
      "enum": [
        true
      ],
      "example": true,
      "type": "boolean"
    }
  },
  "required": [
    "success",
    "errors",
    "messages",
    "result"
  ],
  "type": "object"
}