From 119a832ab058c7893064afe4c23143ddded5a16d Mon Sep 17 00:00:00 2001 From: Anirudh Jindal Date: Mon, 27 Oct 2025 12:33:57 +0530 Subject: [PATCH] Add optional id property to test schema (#698) - Added optional id property for test cases with detailed description - Added optional id property for individual tests in /test - Both id properties are optional for backward compatibility - IDs will be made required once all test files have them The id property enables stable tracking of test cases and tests across description changes and file reorganization. Refs #698 --- test-schema.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test-schema.json b/test-schema.json index 0087c5e3..24c3924f 100644 --- a/test-schema.json +++ b/test-schema.json @@ -11,6 +11,10 @@ "type": "object", "required": [ "description", "schema", "tests" ], "properties": { + "id": { + "description": "A stable, unique identifier for this test case. Must be unique within the version. Should never change even if the description or other properties change.", + "type": "string" + }, "description": { "description": "The test case description", "type": "string" @@ -102,6 +106,10 @@ "type": "object", "required": [ "description", "data", "valid" ], "properties": { + "id": { + "description": "A stable, unique identifier for this test. Must be unique within the test case. Should never change even if the description or other properties change.", + "type": "string" + }, "description": { "description": "The test description, briefly explaining which behavior it exercises", "type": "string" @@ -121,4 +129,4 @@ "additionalProperties": false } } -} +} \ No newline at end of file