diff --git a/.changeset/error-details-type.md b/.changeset/error-details-type.md new file mode 100644 index 0000000000..c9ee80212e --- /dev/null +++ b/.changeset/error-details-type.md @@ -0,0 +1,7 @@ +--- +"adcontextprotocol": patch +--- + +Add explicit type definition to error.json details property + +The `details` property in core/error.json now explicitly declares `"type": "object"` and `"additionalProperties": true`, consistent with other error details definitions in the codebase. This addresses issue #343 where the data type was unspecified. diff --git a/static/schemas/source/core/error.json b/static/schemas/source/core/error.json index c12cfd1675..efbe3abf0c 100644 --- a/static/schemas/source/core/error.json +++ b/static/schemas/source/core/error.json @@ -27,7 +27,9 @@ "minimum": 0 }, "details": { - "description": "Additional task-specific error details" + "type": "object", + "description": "Additional task-specific error details", + "additionalProperties": true } }, "required": ["code", "message"],