local typedefs = require "kong.db.schema.typedefs"


return {
  name = "short-circuit",
  fields = {
    {
      protocols = typedefs.protocols { default = { "http", "https", "tcp", "tls" } },
    },
    {
      config = {
        type = "record",
        fields = {
          { status  = { type = "integer", default = 503 } },
          { message = { type = "string", default = "short-circuited" } },
        },
      },
    },
  },
}
