From 886b689f957e89e9097f4516d3ed18a012cfb3f5 Mon Sep 17 00:00:00 2001 From: Junior Dev Agent <288084488+junior-ai-bot[bot]@users.noreply.github.com> Date: Thu, 24 Sep 2026 06:34:52 +0000 Subject: [PATCH 1/2] STRINGS-3517 - document that locale code is not unique per project on POST /projects/{project_id}/locales The Strings model validates name uniqueness per project but does not scope code uniqueness at all, so a second locale with a duplicate code under a different name is created silently instead of erroring. Add a note to the code and name field descriptions in paths/locales/create.yaml so API integrators aren't surprised by this. Co-Authored-By: Claude Sonnet 5 --- paths/locales/create.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paths/locales/create.yaml b/paths/locales/create.yaml index 9ed88450d..0f52ebec7 100644 --- a/paths/locales/create.yaml +++ b/paths/locales/create.yaml @@ -64,11 +64,11 @@ requestBody: type: string example: my-feature-branch name: - description: Locale name + description: Locale name. Must be unique per project. type: string example: de code: - description: Locale ISO code + description: Locale ISO code. Unlike `name`, `code` is not required to be unique per project - creating a locale whose `code` duplicates an existing locale's `code` in the same project will succeed rather than error, resulting in two locales that share the same code. type: string example: de-DE default: From 674ca16acf8cf340be97e5d17075b9eb7efc361b Mon Sep 17 00:00:00 2001 From: Junior Dev Agent <288084488+junior-ai-bot[bot]@users.noreply.github.com> Date: Thu, 24 Sep 2026 06:40:17 +0000 Subject: [PATCH 2/2] fix: regenerate compiled.json for locale code description update The compare-output CI check bundles main.yaml and diffs it against the committed doc/compiled.json. The previous commit updated the code/name descriptions in paths/locales/create.yaml but didn't regenerate this bundled artifact, causing the diff check to fail. Co-Authored-By: Claude Sonnet 5 --- doc/compiled.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/compiled.json b/doc/compiled.json index 08a4b448f..abff93837 100644 --- a/doc/compiled.json +++ b/doc/compiled.json @@ -9655,12 +9655,12 @@ "example": "my-feature-branch" }, "name": { - "description": "Locale name", + "description": "Locale name. Must be unique per project.", "type": "string", "example": "de" }, "code": { - "description": "Locale ISO code", + "description": "Locale ISO code. Unlike `name`, `code` is not required to be unique per project - creating a locale whose `code` duplicates an existing locale's `code` in the same project will succeed rather than error, resulting in two locales that share the same code.", "type": "string", "example": "de-DE" },