{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/confighub/json-schema/confighub-delete-response-schema.json",
  "title": "DeleteResponse",
  "description": "Response for successful delete operation",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/confighub-component-api-openapi.yml#/components/schemas/DeleteResponse",
  "type": "object",
  "properties": {
    "Error": {
      "allOf": [
        {
          "$ref": "#/$defs/ResponseError"
        }
      ],
      "description": "Error information if the delete operation failed."
    },
    "Message": {
      "type": "string",
      "description": "Response message.",
      "x-go-type-skip-optional-pointer": true
    }
  },
  "$defs": {
    "ErrorItem": {
      "type": "object",
      "properties": {
        "Description": {
          "type": "string",
          "description": "A clear explanation of what went wrong",
          "x-go-type-skip-optional-pointer": true
        },
        "Item": {
          "type": "string",
          "description": "The name of the field, resource, or entity that the error relates to",
          "x-go-type-skip-optional-pointer": true
        }
      }
    },
    "ErrorMetadata": {
      "type": "object",
      "properties": {
        "EntityID": {
          "type": "string",
          "description": "Optional ID of the entity this error relates to",
          "x-go-type-skip-optional-pointer": true
        },
        "EntitySlug": {
          "type": "string",
          "description": "Optional slug of the entity this error relates to",
          "x-go-type-skip-optional-pointer": true
        },
        "EntityType": {
          "type": "string",
          "description": "Optional type of the entity this error relates to",
          "x-go-type-skip-optional-pointer": true
        },
        "Items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ErrorItem"
          },
          "description": "Collection of error details",
          "x-go-type-skip-optional-pointer": true
        }
      }
    },
    "ResponseError": {
      "type": "object",
      "properties": {
        "Details": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Additional context messages",
          "x-go-type-skip-optional-pointer": true
        },
        "ErrorMetadata": {
          "allOf": [
            {
              "$ref": "#/$defs/ErrorMetadata"
            }
          ],
          "description": "Structured error details like field violations"
        },
        "Message": {
          "type": "string",
          "description": "The primary error message",
          "x-go-type-skip-optional-pointer": true
        },
        "Status": {
          "type": "integer",
          "description": "HTTP status code",
          "x-go-type-skip-optional-pointer": true
        },
        "Type": {
          "type": "string",
          "description": "The category of the error, as a code: UserInput, Validation, Data, Authentication, Permission, NotFound, Conflict, AlreadyExists, Unprocessable, Locked, PreconditionFailed, TooManyRequests, Unexpected, GatewayTimeout, or ServiceUnavailable",
          "x-go-type-skip-optional-pointer": true
        }
      }
    }
  }
}