{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/octoprint/json-schema/octoprint-post-api-util-test-response-schema.json",
  "title": "PostApiUtilTestResponse",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/octoprint-openapi-generated.yml#/components/schemas/PostApiUtilTestResponse",
  "type": "object",
  "properties": {
    "path": {
      "type": "string",
      "description": "The path that was tested (for path command)"
    },
    "exists": {
      "type": "boolean",
      "description": "true if the path exists, false otherwise (for path command)"
    },
    "typeok": {
      "type": "boolean",
      "description": "true if a type check was not requested or it passed, false otherwise (for path command)"
    },
    "access": {
      "type": "boolean",
      "description": "true if a permission check was not requested or it passed, false otherwise (for path command)"
    },
    "result": {
      "type": "boolean",
      "description": "true if the overall check passed, false otherwise"
    },
    "url": {
      "type": "string",
      "description": "The URL that was tested (for url command)"
    },
    "status": {
      "type": "integer",
      "description": "The status code returned by the URL, 0 in case of a timeout (for url command)"
    },
    "response": {
      "type": "string",
      "description": "The response body of the checked URL's response (for url command)"
    },
    "headers": {
      "type": "object",
      "description": "A dictionary with all headers of the checked URL's response (for url command)"
    },
    "host": {
      "type": "string",
      "description": "The host that was tested (for server command)"
    },
    "port": {
      "type": "integer",
      "description": "The port that was tested (for server command)"
    },
    "protocol": {
      "type": "string",
      "description": "The protocol that was tested, tcp or udp (for server command)"
    },
    "name": {
      "type": "string",
      "description": "The host name that was tested (for resolution command)"
    },
    "address": {
      "type": "string",
      "description": "The address that was tested (for address command)"
    },
    "is_lan_address": {
      "type": "boolean",
      "description": "true if the address is a LAN address, false otherwise (for address command)"
    },
    "subnet": {
      "type": "string",
      "description": "The detected subnet, if address is a LAN address (for address command)"
    }
  }
}