{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "/schemas/3.0.6/error-details/conflict.json",
  "title": "Conflict Details",
  "description": "Recommended details shape for CONFLICT errors. Provides version information so agents can re-read the resource and retry.",
  "type": "object",
  "properties": {
    "resource_id": {
      "type": "string",
      "description": "Identifier of the conflicting resource"
    },
    "expected_version": {
      "type": ["number", "string"],
      "description": "Version or ETag the client was operating against"
    },
    "current_version": {
      "type": ["number", "string"],
      "description": "Current version or ETag on the server"
    }
  },
  "additionalProperties": true
}
