Cloudflare D1 · Schema

D1 Api Response Common Failure

Schema for d1_api-response-common-failure

DatabaseSQLiteServerlessEdge ComputingSQLCloudflareWorkers

Properties

Name Type Description
errors object
messages object
result object
success boolean Whether the API call was successful
View JSON Schema on GitHub

JSON Schema

d1_api-response-common-failure.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cloudflare-d1/main/json-schema/d1_api-response-common-failure.json",
  "title": "D1 Api Response Common Failure",
  "description": "Schema for d1_api-response-common-failure",
  "properties": {
    "errors": {
      "allOf": [
        {
          "$ref": "#/components/schemas/d1_messages"
        }
      ],
      "example": [
        {
          "code": 7003,
          "message": "No route for the URI"
        }
      ],
      "minLength": 1
    },
    "messages": {
      "allOf": [
        {
          "$ref": "#/components/schemas/d1_messages"
        }
      ],
      "example": []
    },
    "result": {
      "enum": [
        null
      ],
      "nullable": true,
      "type": "object"
    },
    "success": {
      "description": "Whether the API call was successful",
      "enum": [
        false
      ],
      "example": false,
      "type": "boolean"
    }
  },
  "required": [
    "success",
    "errors",
    "messages",
    "result"
  ],
  "type": "object"
}