diff --git a/clients/go/test/api_uploads_test.go b/clients/go/test/api_uploads_test.go index 9b8cf8329..8b59bf60f 100644 --- a/clients/go/test/api_uploads_test.go +++ b/clients/go/test/api_uploads_test.go @@ -46,9 +46,8 @@ func Test_phrase_UploadsApiService(t *testing.T) { apiClient := phrase.NewAPIClient(configuration) file, _ := os.Create("testfile.json") - fileFormat := optional.NewString("json") - fileObject := optional.NewInterface(file) - localeId := optional.NewString("99") + fileFormat := "json" + localeId := "99" // setting format_options formatOptions := make(map[string]interface{}) @@ -62,8 +61,8 @@ func Test_phrase_UploadsApiService(t *testing.T) { formatOptionsMap := optional.NewInterface(formatOptions) - localVarOptionals := phrase.UploadCreateOpts{FileFormat: fileFormat, File: fileObject, LocaleId: localeId, FormatOptions: formatOptionsMap} - resp, httpRes, err := apiClient.UploadsApi.UploadCreate(context.Background(), "project_id", &localVarOptionals) + localVarOptionals := phrase.UploadCreateOpts{FormatOptions: formatOptionsMap} + resp, httpRes, err := apiClient.UploadsApi.UploadCreate(context.Background(), "project_id", file, fileFormat, localeId, &localVarOptionals) requestUrl := httpRes.Request.URL require.Nil(t, err) diff --git a/clients/java/src/test/java/com/phrase/client/api/LocalesApiTest.java b/clients/java/src/test/java/com/phrase/client/api/LocalesApiTest.java index bab6b85d9..abd8e510e 100644 --- a/clients/java/src/test/java/com/phrase/client/api/LocalesApiTest.java +++ b/clients/java/src/test/java/com/phrase/client/api/LocalesApiTest.java @@ -19,6 +19,7 @@ import com.phrase.client.model.LocaleCreateParameters; import com.phrase.client.model.LocaleDetails; import com.phrase.client.model.LocalePreview1; +import com.phrase.client.model.LocaleDeleteParameters; import com.phrase.client.model.LocaleUpdateParameters; import com.phrase.client.ApiClient; @@ -114,7 +115,10 @@ public void localeDeleteTest() throws ApiException { String id = null; String xPhraseAppOTP = null; String branch = null; - api.localeDelete(projectId, id, xPhraseAppOTP, branch); + + LocaleDeleteParameters params = new LocaleDeleteParameters(); + params.setBranch(branch); + api.localeDelete(projectId, id, params, xPhraseAppOTP); // TODO: test validations } diff --git a/clients/java/src/test/java/com/phrase/client/api/UploadsApiTest.java b/clients/java/src/test/java/com/phrase/client/api/UploadsApiTest.java index 1e9864104..c85aebcf2 100644 --- a/clients/java/src/test/java/com/phrase/client/api/UploadsApiTest.java +++ b/clients/java/src/test/java/com/phrase/client/api/UploadsApiTest.java @@ -92,8 +92,8 @@ public void uploadCreateTest() throws ApiException, IOException, InterruptedExce String branch = "branch_example"; File file = File.createTempFile("test", "test"); file.deleteOnExit(); - String fileFormat = null; - String localeId = null; + String fileFormat = "simple_json"; + String localeId = "en"; String tags = null; Boolean updateTranslations = null; Boolean updateDescriptions = null; @@ -106,7 +106,7 @@ public void uploadCreateTest() throws ApiException, IOException, InterruptedExce Boolean autotranslate = null; Boolean markReviewed = null; Boolean tagOnlyAffectedKeys = null; - Upload response = api.uploadCreate(projectId, xPhraseAppOTP, branch, file, fileFormat, localeId, tags, updateTranslations, updateDescriptions, convertEmoji, skipUploadTags, skipUnverification, fileEncoding, localeMapping, formatOptions, autotranslate, markReviewed, tagOnlyAffectedKeys); + Upload response = api.uploadCreate(projectId, file, fileFormat, localeId, xPhraseAppOTP, branch, tags, updateTranslations, updateDescriptions, convertEmoji, skipUploadTags, skipUnverification, fileEncoding, localeMapping, formatOptions, autotranslate, markReviewed, tagOnlyAffectedKeys); Assert.assertEquals("valid id returned", "id_example", response.getId()); Assert.assertEquals("valid creation date returned", OffsetDateTime.parse("2015-01-28T09:52:53Z"), response.getCreatedAt()); diff --git a/clients/php/test/Api/UploadsApiTest.php b/clients/php/test/Api/UploadsApiTest.php index 3a4b89f41..4b6259d3a 100644 --- a/clients/php/test/Api/UploadsApiTest.php +++ b/clients/php/test/Api/UploadsApiTest.php @@ -107,7 +107,7 @@ public function testUploadCreate() $file = new \SplFileObject($fileName, 'w+'); $file->fwrite('test'); - $result = $this->apiInstance->uploadCreate($projectId, null, null, $file); + $result = $this->apiInstance->uploadCreate($projectId, $file, "yml", "en", null, null); $file = null; unlink($fileName); diff --git a/clients/python/test/test_uploads_api.py b/clients/python/test/test_uploads_api.py index d00816810..912895444 100644 --- a/clients/python/test/test_uploads_api.py +++ b/clients/python/test/test_uploads_api.py @@ -48,7 +48,8 @@ def test_upload_create(self, mock_post): api_response = api_instance.upload_create( project_id, file="./test/fixtures/en.json", - file_format="simple_json" + file_format="simple_json", + locale_id="en" ) self.assertEqual("https://api.phrase.com/v2/projects/project_id_example/uploads", mock_post.call_args_list[0].args[1]) diff --git a/clients/ruby/spec/api/uploads_api_spec.rb b/clients/ruby/spec/api/uploads_api_spec.rb index 82f4ce214..4940ef781 100644 --- a/clients/ruby/spec/api/uploads_api_spec.rb +++ b/clients/ruby/spec/api/uploads_api_spec.rb @@ -53,7 +53,7 @@ end it 'should work' do - @api_instance.upload_create('project_id', file: File.new('Gemfile')) + @api_instance.upload_create('project_id', File.new('Gemfile'), "yml", "en") expect(a_request(:post, 'https://api.phrase.com/v2/projects/project_id/uploads') .with { |req| diff --git a/clients/typescript/__tests__/BasicApiTest.ts b/clients/typescript/__tests__/BasicApiTest.ts index b76cb4c6e..2d7ef1625 100644 --- a/clients/typescript/__tests__/BasicApiTest.ts +++ b/clients/typescript/__tests__/BasicApiTest.ts @@ -89,8 +89,10 @@ describe('UploadsApi', () => { test('uploads a file', async () => { const projectId = 'my-project-id'; const file = fs.createReadStream('package.json'); + const fileFormat = 'json'; + const localeId = 'en'; - await api.uploadCreate({projectId, file}).then((response) => { + await api.uploadCreate({projectId, file, fileFormat, localeId}).then((response) => { expect(response.id).toBe('upload_id'); }); diff --git a/doc/compiled.json b/doc/compiled.json index 7c3df58e9..709575c33 100644 --- a/doc/compiled.json +++ b/doc/compiled.json @@ -4297,16 +4297,7 @@ }, "description": "The child translation keys linked to the parent." } - }, - "required": [ - "created_at", - "updated_at", - "created_by", - "updated_by", - "account", - "parent", - "children" - ] + } }, "repo_sync": { "type": "object", @@ -4894,8 +4885,8 @@ "paths": { "/icu/skeleton": { "post": { - "summary": "Build icu skeletons", - "description": "Returns icu skeletons for multiple locale codes based on a source content.", + "summary": "Build ICU skeletons", + "description": "Returns ICU skeletons for multiple locale codes based on a source content.", "operationId": "icu/skeleton", "tags": [ "ICU" @@ -5527,6 +5518,9 @@ "schema": { "type": "object", "title": "figma_attachment/create/parameters", + "required": [ + "url" + ], "properties": { "branch": { "description": "specify the branch to use", @@ -6021,6 +6015,9 @@ "schema": { "type": "object", "title": "styleguide/create/parameters", + "required": [ + "title" + ], "properties": { "title": { "description": "Style guide title", @@ -6943,6 +6940,10 @@ "schema": { "type": "object", "title": "invitation/create/parameters", + "required": [ + "email", + "role" + ], "properties": { "email": { "description": "The email of the invited user. The email can not be updated once created. Create a new invitation for each unique email.", @@ -7676,6 +7677,9 @@ "schema": { "type": "object", "title": "screenshot_marker/create/parameters", + "required": [ + "key_id" + ], "properties": { "branch": { "description": "specify the branch to use", @@ -8103,6 +8107,10 @@ "schema": { "type": "object", "title": "locale/create/parameters", + "required": [ + "name", + "code" + ], "properties": { "branch": { "description": "specify the branch to use", @@ -8794,6 +8802,9 @@ "schema": { "type": "object", "title": "distribution/create/parameters", + "required": [ + "name" + ], "properties": { "name": { "description": "Name of the distribution", @@ -9758,6 +9769,9 @@ "schema": { "type": "object", "title": "job/create/parameters", + "required": [ + "name" + ], "properties": { "branch": { "description": "specify the branch to use", @@ -11203,6 +11217,9 @@ "schema": { "type": "object", "title": "glossary/create/parameters", + "required": [ + "name" + ], "properties": { "name": { "description": "Name of the glossary", @@ -11570,6 +11587,9 @@ "schema": { "type": "object", "title": "authorization/create/parameters", + "required": [ + "note" + ], "properties": { "note": { "description": "A note to help you remember what the access is used for.", @@ -13701,6 +13721,9 @@ "schema": { "type": "object", "title": "webhook/create/parameters", + "required": [ + "callback_url" + ], "properties": { "callback_url": { "description": "Callback URL to send requests to", @@ -14075,6 +14098,11 @@ "schema": { "type": "object", "title": "upload/create/parameters", + "required": [ + "file", + "file_format", + "locale_id" + ], "properties": { "branch": { "description": "specify the branch to use", @@ -14134,7 +14162,7 @@ "example": null }, "locale_mapping": { - "description": "Optional, format specific mapping between locale names and the columns the translations to those locales are contained in.", + "description": "Mapping between locale names and translation columns. Required in some formats like CSV or XLSX.", "type": "object", "properties": {}, "example": "{\"en\": \"2\"}" @@ -15247,6 +15275,10 @@ "schema": { "type": "object", "title": "glossary_term_translation/create/parameters", + "required": [ + "locale_code", + "content" + ], "properties": { "locale_code": { "description": "Identifies the language for this translation", @@ -15566,6 +15598,9 @@ "schema": { "type": "object", "title": "project/create/parameters", + "required": [ + "name" + ], "properties": { "name": { "description": "Name of the project", @@ -17352,6 +17387,9 @@ "schema": { "type": "object", "title": "variable/create/parameters", + "required": [ + "name" + ], "properties": { "name": { "description": "Name of the variable", @@ -17703,6 +17741,9 @@ "schema": { "type": "object", "title": "branch/create/parameters", + "required": [ + "name" + ], "properties": { "name": { "description": "Name of the branch", @@ -19227,6 +19268,9 @@ "schema": { "type": "object", "title": "glossary_term/create/parameters", + "required": [ + "term" + ], "properties": { "term": { "description": "Glossary term", @@ -19616,6 +19660,9 @@ "schema": { "type": "object", "title": "tag/create/parameters", + "required": [ + "name" + ], "properties": { "branch": { "description": "specify the branch to use", @@ -19909,6 +19956,9 @@ "schema": { "type": "object", "title": "blacklisted_key/create/parameters", + "required": [ + "name" + ], "properties": { "name": { "description": "Blocked key name", @@ -20295,6 +20345,9 @@ "schema": { "type": "object", "title": "key/create/parameters", + "required": [ + "name" + ], "properties": { "branch": { "description": "specify the branch to use", @@ -21400,6 +21453,10 @@ "schema": { "type": "object", "title": "order/create/parameters", + "required": [ + "name", + "lsp" + ], "properties": { "branch": { "description": "specify the branch to use", @@ -22489,6 +22546,9 @@ "schema": { "type": "object", "title": "space/create/parameters", + "required": [ + "name" + ], "properties": { "name": { "description": "Name of the space", @@ -22829,6 +22889,9 @@ "schema": { "type": "object", "title": "spaces/projects/create/parameters", + "required": [ + "id" + ], "properties": { "id": { "description": "Project ID to add or to the Space", @@ -23031,6 +23094,9 @@ "schema": { "type": "object", "title": "team/create/parameters", + "required": [ + "name" + ], "properties": { "name": { "description": "Name of the team", @@ -23294,6 +23360,9 @@ "schema": { "type": "object", "title": "teams/projects/create/parameters", + "required": [ + "id" + ], "properties": { "id": { "description": "Project ID to add to the Team", @@ -23418,6 +23487,9 @@ "schema": { "type": "object", "title": "teams/spaces/create/parameters", + "required": [ + "id" + ], "properties": { "id": { "description": "Space ID to add to the Team", @@ -23542,6 +23614,9 @@ "schema": { "type": "object", "title": "teams/users/create/parameters", + "required": [ + "id" + ], "properties": { "id": { "description": "User ID to add to the Team", @@ -23793,7 +23868,7 @@ "example": "my-feature-branch" }, "locale_id": { - "description": "Locale. Can be the name or public id of the locale. Preferred is the public id.", + "description": "Locale. Can be the name or id of the locale. Preferred is the id", "type": "string", "example": "abcd1234cdef1234abcd1234cdef1234" }, @@ -27265,15 +27340,6 @@ }, { "$ref": "#/components/parameters/key_id_as_id" - }, - { - "in": "query", - "name": "unlink_parent", - "required": false, - "description": "Whether to unlink the parent key as well and unmark it as linked-key.", - "schema": { - "type": "boolean" - } } ], "requestBody": { @@ -27297,6 +27363,11 @@ "items": { "type": "string" } + }, + "unlink_parent": { + "description": "Whether to unlink the parent key as well and unmark it as linked-key.", + "type": "boolean", + "default": false } } } @@ -27313,7 +27384,7 @@ } }, "get": { - "summary": "Retrieve all child keys linked to a specific parent key", + "summary": "List child keys of a parent key", "description": "Returns detailed information about a parent key, including its linked child keys.", "operationId": "key_links/index", "tags": [ diff --git a/paths/authorizations/create.yaml b/paths/authorizations/create.yaml index f6da62d61..ca044d50c 100644 --- a/paths/authorizations/create.yaml +++ b/paths/authorizations/create.yaml @@ -45,6 +45,8 @@ requestBody: schema: type: object title: authorization/create/parameters + required: + - note properties: note: description: A note to help you remember what the access is used for. diff --git a/paths/blacklisted_keys/create.yaml b/paths/blacklisted_keys/create.yaml index 4ceb9e151..36dd6c762 100644 --- a/paths/blacklisted_keys/create.yaml +++ b/paths/blacklisted_keys/create.yaml @@ -48,6 +48,8 @@ requestBody: schema: type: object title: blacklisted_key/create/parameters + required: + - name properties: name: description: Blocked key name diff --git a/paths/branches/create.yaml b/paths/branches/create.yaml index aceca3d0d..849c0e520 100644 --- a/paths/branches/create.yaml +++ b/paths/branches/create.yaml @@ -48,6 +48,8 @@ requestBody: schema: type: object title: branch/create/parameters + required: + - name properties: name: description: Name of the branch diff --git a/paths/distributions/create.yaml b/paths/distributions/create.yaml index d033e0e39..07a18ea83 100644 --- a/paths/distributions/create.yaml +++ b/paths/distributions/create.yaml @@ -48,6 +48,8 @@ requestBody: schema: type: object title: distribution/create/parameters + required: + - name properties: name: description: Name of the distribution diff --git a/paths/figma_attachments/create.yaml b/paths/figma_attachments/create.yaml index 1bc372165..068ab18ff 100644 --- a/paths/figma_attachments/create.yaml +++ b/paths/figma_attachments/create.yaml @@ -54,6 +54,8 @@ requestBody: schema: type: object title: figma_attachment/create/parameters + required: + - url properties: branch: description: specify the branch to use diff --git a/paths/glossaries/create.yaml b/paths/glossaries/create.yaml index 76d4fd2d9..a6665413e 100644 --- a/paths/glossaries/create.yaml +++ b/paths/glossaries/create.yaml @@ -48,6 +48,8 @@ requestBody: schema: type: object title: glossary/create/parameters + required: + - name properties: name: description: Name of the glossary diff --git a/paths/glossary_term_translations/create.yaml b/paths/glossary_term_translations/create.yaml index 88a0c398e..368427fb4 100644 --- a/paths/glossary_term_translations/create.yaml +++ b/paths/glossary_term_translations/create.yaml @@ -52,6 +52,9 @@ requestBody: schema: type: object title: glossary_term_translation/create/parameters + required: + - locale_code + - content properties: locale_code: description: Identifies the language for this translation diff --git a/paths/glossary_terms/create.yaml b/paths/glossary_terms/create.yaml index 77fc6cac2..87a03c65b 100644 --- a/paths/glossary_terms/create.yaml +++ b/paths/glossary_terms/create.yaml @@ -50,6 +50,8 @@ requestBody: schema: type: object title: glossary_term/create/parameters + required: + - term properties: term: description: Glossary term diff --git a/paths/icu/skeleton.yaml b/paths/icu/skeleton.yaml index 2697fdf33..3886e3db7 100644 --- a/paths/icu/skeleton.yaml +++ b/paths/icu/skeleton.yaml @@ -1,6 +1,6 @@ --- -summary: Build icu skeletons -description: Returns icu skeletons for multiple locale codes based on a source content. +summary: Build ICU skeletons +description: Returns ICU skeletons for multiple locale codes based on a source content. operationId: icu/skeleton tags: - ICU diff --git a/paths/invitations/create.yaml b/paths/invitations/create.yaml index e6f3bed8f..0abedf3f0 100644 --- a/paths/invitations/create.yaml +++ b/paths/invitations/create.yaml @@ -54,6 +54,9 @@ requestBody: schema: type: object title: invitation/create/parameters + required: + - email + - role properties: email: description: The email of the invited user. The email can not be updated once created. Create a new invitation for each unique email. diff --git a/paths/jobs/create.yaml b/paths/jobs/create.yaml index 5dc2b1050..556d342fb 100644 --- a/paths/jobs/create.yaml +++ b/paths/jobs/create.yaml @@ -48,6 +48,8 @@ requestBody: schema: type: object title: job/create/parameters + required: + - name properties: branch: description: specify the branch to use diff --git a/paths/key_links/batch_destroy.yaml b/paths/key_links/batch_destroy.yaml index f68ec8f6b..4f5b7392e 100644 --- a/paths/key_links/batch_destroy.yaml +++ b/paths/key_links/batch_destroy.yaml @@ -7,12 +7,6 @@ parameters: - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP" - "$ref": "../../parameters.yaml#/project_id" - "$ref": "../../parameters.yaml#/key_id_as_id" -- in: query - name: unlink_parent - required: false - description: Whether to unlink the parent key as well and unmark it as linked-key. - schema: - type: boolean requestBody: required: true content: @@ -29,7 +23,10 @@ requestBody: example: ["child_key_id1", "child_key_id2"] items: type: string - + unlink_parent: + description: Whether to unlink the parent key as well and unmark it as linked-key. + type: boolean + default: false responses: '200': description: OK diff --git a/paths/key_links/index.yaml b/paths/key_links/index.yaml index 7ce181bd3..f23044eba 100644 --- a/paths/key_links/index.yaml +++ b/paths/key_links/index.yaml @@ -1,5 +1,5 @@ --- -summary: Retrieve all child keys linked to a specific parent key +summary: List child keys of a parent key description: Returns detailed information about a parent key, including its linked child keys. operationId: key_links/index tags: diff --git a/paths/keys/create.yaml b/paths/keys/create.yaml index f34057b14..75c73a8e1 100644 --- a/paths/keys/create.yaml +++ b/paths/keys/create.yaml @@ -55,6 +55,8 @@ requestBody: schema: type: object title: key/create/parameters + required: + - name properties: branch: description: specify the branch to use @@ -129,5 +131,5 @@ requestBody: example: fruit: Apple vegetable: Tomato - + x-cli-version: '2.5' diff --git a/paths/locales/create.yaml b/paths/locales/create.yaml index 40c7f42f1..3525b50de 100644 --- a/paths/locales/create.yaml +++ b/paths/locales/create.yaml @@ -48,6 +48,9 @@ requestBody: schema: type: object title: locale/create/parameters + required: + - name + - code properties: branch: description: specify the branch to use diff --git a/paths/orders/create.yaml b/paths/orders/create.yaml index 3d3478b28..9b118bc18 100644 --- a/paths/orders/create.yaml +++ b/paths/orders/create.yaml @@ -48,6 +48,9 @@ requestBody: schema: type: object title: order/create/parameters + required: + - name + - lsp properties: branch: description: specify the branch to use diff --git a/paths/projects/create.yaml b/paths/projects/create.yaml index 8dbee1653..945356d64 100644 --- a/paths/projects/create.yaml +++ b/paths/projects/create.yaml @@ -47,6 +47,8 @@ requestBody: schema: type: object title: project/create/parameters + required: + - name properties: name: description: Name of the project diff --git a/paths/screenshot_markers/create.yaml b/paths/screenshot_markers/create.yaml index 711b29e1f..6967a34fc 100644 --- a/paths/screenshot_markers/create.yaml +++ b/paths/screenshot_markers/create.yaml @@ -50,6 +50,8 @@ requestBody: schema: type: object title: screenshot_marker/create/parameters + required: + - key_id properties: branch: description: specify the branch to use diff --git a/paths/spaces/add_project.yaml b/paths/spaces/add_project.yaml index cdd65eb49..e6de9d465 100644 --- a/paths/spaces/add_project.yaml +++ b/paths/spaces/add_project.yaml @@ -46,6 +46,8 @@ requestBody: schema: type: object title: spaces/projects/create/parameters + required: + - id properties: id: description: Project ID to add or to the Space diff --git a/paths/spaces/create.yaml b/paths/spaces/create.yaml index 3dc8529ce..468b4833b 100644 --- a/paths/spaces/create.yaml +++ b/paths/spaces/create.yaml @@ -48,6 +48,8 @@ requestBody: schema: type: object title: space/create/parameters + required: + - name properties: name: description: Name of the space diff --git a/paths/styleguides/create.yaml b/paths/styleguides/create.yaml index f49f66226..3a575c25e 100644 --- a/paths/styleguides/create.yaml +++ b/paths/styleguides/create.yaml @@ -48,6 +48,8 @@ requestBody: schema: type: object title: styleguide/create/parameters + required: + - title properties: title: description: Style guide title diff --git a/paths/tags/create.yaml b/paths/tags/create.yaml index e0938ac75..0cc34b36a 100644 --- a/paths/tags/create.yaml +++ b/paths/tags/create.yaml @@ -48,6 +48,8 @@ requestBody: schema: type: object title: tag/create/parameters + required: + - name properties: branch: description: specify the branch to use diff --git a/paths/teams/add_project.yaml b/paths/teams/add_project.yaml index 5e10deb0d..8adfaacb2 100644 --- a/paths/teams/add_project.yaml +++ b/paths/teams/add_project.yaml @@ -46,6 +46,8 @@ requestBody: schema: type: object title: teams/projects/create/parameters + required: + - id properties: id: description: Project ID to add to the Team diff --git a/paths/teams/add_space.yaml b/paths/teams/add_space.yaml index 664d2ae34..3c5612cc8 100644 --- a/paths/teams/add_space.yaml +++ b/paths/teams/add_space.yaml @@ -46,6 +46,8 @@ requestBody: schema: type: object title: teams/spaces/create/parameters + required: + - id properties: id: description: Space ID to add to the Team diff --git a/paths/teams/add_user.yaml b/paths/teams/add_user.yaml index b8f03ef57..b41e8e683 100644 --- a/paths/teams/add_user.yaml +++ b/paths/teams/add_user.yaml @@ -46,6 +46,8 @@ requestBody: schema: type: object title: teams/users/create/parameters + required: + - id properties: id: description: User ID to add to the Team diff --git a/paths/teams/create.yaml b/paths/teams/create.yaml index 945f2aaba..c4f19e277 100644 --- a/paths/teams/create.yaml +++ b/paths/teams/create.yaml @@ -48,6 +48,8 @@ requestBody: schema: type: object title: team/create/parameters + required: + - name properties: name: description: Name of the team diff --git a/paths/translations/create.yaml b/paths/translations/create.yaml index ca8040679..50bdc3eed 100644 --- a/paths/translations/create.yaml +++ b/paths/translations/create.yaml @@ -54,7 +54,7 @@ requestBody: type: string example: my-feature-branch locale_id: - description: Locale. Can be the name or public id of the locale. Preferred is the public id. + description: Locale. Can be the name or id of the locale. Preferred is the id type: string example: abcd1234cdef1234abcd1234cdef1234 key_id: diff --git a/paths/uploads/create.yaml b/paths/uploads/create.yaml index 396e011df..057a5cf8d 100644 --- a/paths/uploads/create.yaml +++ b/paths/uploads/create.yaml @@ -59,6 +59,10 @@ requestBody: schema: type: object title: upload/create/parameters + required: + - file + - file_format + - locale_id properties: branch: description: specify the branch to use @@ -107,7 +111,7 @@ requestBody: type: string example: locale_mapping: - description: Optional, format specific mapping between locale names and the columns the translations to those locales are contained in. + description: Mapping between locale names and translation columns. Required in some formats like CSV or XLSX. type: object properties: {} example: '{"en": "2"}' diff --git a/paths/variables/create.yaml b/paths/variables/create.yaml index b70aca02a..6cdcbe2a8 100644 --- a/paths/variables/create.yaml +++ b/paths/variables/create.yaml @@ -48,6 +48,8 @@ requestBody: schema: type: object title: variable/create/parameters + required: + - name properties: name: description: Name of the variable diff --git a/paths/webhooks/create.yaml b/paths/webhooks/create.yaml index 55411295c..69ff4cb71 100644 --- a/paths/webhooks/create.yaml +++ b/paths/webhooks/create.yaml @@ -48,6 +48,8 @@ requestBody: schema: type: object title: webhook/create/parameters + required: + - callback_url properties: callback_url: description: Callback URL to send requests to diff --git a/schemas/key_link.yaml b/schemas/key_link.yaml index 33bee6e9a..8ec5a84f3 100644 --- a/schemas/key_link.yaml +++ b/schemas/key_link.yaml @@ -26,11 +26,3 @@ key_link: items: $ref: "./key_preview.yaml#/key_preview" description: The child translation keys linked to the parent. - required: - - created_at - - updated_at - - created_by - - updated_by - - account - - parent - - children