{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dotsy-ai/json-schema/dotsy-ai-apply-changeset-response-schema.json",
  "title": "ApplyChangesetResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dotsy-ai-content-api-openapi.yml#/components/schemas/ApplyChangesetResponse",
  "type": "object",
  "properties": {
    "staged": {
      "type": "object",
      "properties": {
        "created": {
          "type": "integer"
        },
        "updated": {
          "type": "integer"
        },
        "reverted": {
          "type": "integer",
          "description": "Writes that put a key back to its live version."
        },
        "deleted": {
          "type": "integer"
        },
        "unchanged": {
          "type": "integer",
          "description": "Writes whose body already matched."
        }
      },
      "required": [
        "created",
        "updated",
        "reverted",
        "deleted",
        "unchanged"
      ]
    },
    "conflicts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          }
        },
        "required": [
          "key"
        ]
      },
      "description": "Writes that were not applied because their `ifMatch` no longer matched. The status is still 200, so check this list."
    },
    "publishable": {
      "type": "boolean",
      "description": "True when the draft has anything to publish."
    },
    "version": {
      "type": "integer",
      "description": "The site's published version counter."
    },
    "skippedDeletes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Deletes that were ignored because the key is protected."
    },
    "skipped": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "reason": {
            "type": "string",
            "enum": [
              "reserved_key"
            ]
          }
        },
        "required": [
          "key",
          "reason"
        ]
      },
      "description": "Keys left out and not written: site custom code (`_site/code-*.html`) is set with PUT /custom-code."
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Non-blocking notes about tags that will not compose, one per problem, each as `<key>: <code> — <what to change>`. Codes: `fragment_unclosed`, `fragment_bad_name`, `fragment_full_document`, `fragment_self_reference`, `fragment_attr_hyphen`, `legacy_paige_tag`, `layout_missing_content`, `unknown_dotsy_syntax`. The write still happened. At most 50 are listed."
    },
    "published": {
      "type": "boolean",
      "enum": [
        false
      ],
      "description": "Always false: the change is staged in the draft until you publish."
    },
    "hint": {
      "type": "string",
      "description": "Reminder that the change is staged and how to make it live."
    }
  },
  "required": [
    "staged",
    "conflicts",
    "publishable",
    "version",
    "published",
    "hint"
  ]
}