diff --git a/checker/check-added-required-request-body.go b/checker/check-added-required-request-body.go index 7f44fe2c..734b0d5f 100644 --- a/checker/check-added-required-request-body.go +++ b/checker/check-added-required-request-body.go @@ -6,8 +6,8 @@ import ( ) const ( - AddedRequiredRequestBodyId = "added-required-request-body" - AddedOptionalRequestBodyId = "added-optional-request-body" + AddedRequiredRequestBodyId = "request-body-added-required" + AddedOptionalRequestBodyId = "request-body-added-optional" ) func AddedRequestBodyCheck(diffReport *diff.Diff, operationsSources *diff.OperationsSourcesMap, config *Config) Changes { diff --git a/checker/localizations/localizations.go b/checker/localizations/localizations.go index 24406919..d601bdd3 100644 --- a/checker/localizations/localizations.go +++ b/checker/localizations/localizations.go @@ -1,6 +1,6 @@ // Code generated by go-localize; DO NOT EDIT. // This file was generated by robots at -// 2024-04-24 18:43:43.939071 +0300 IDT m=+0.005875554 +// 2024-04-24 22:39:25.948724 +0300 IDT m=+0.007644159 package localizations @@ -12,9 +12,6 @@ import ( ) var localizations = map[string]string{ - "en.messages.added-optional-request-body": "added optional request body", - "en.messages.added-required-request-body": "added required request body", - "en.messages.added-required-request-body-description": "required request body added", "en.messages.api-deprecated-sunset-parse": "api sunset date %s can't be parsed for deprecated API: %v", "en.messages.api-deprecated-sunset-parse-description": "endpoint deprecated with invalid or missing sunset date", "en.messages.api-global-security-added": "the security scheme %s was added to the API", @@ -102,6 +99,10 @@ var localizations = map[string]string{ "en.messages.optional-response-header-removed-description": "optional response header deleted", "en.messages.parsing-error-description": "invalid stability level", "en.messages.pattern-changed-warn-comment": "This is a warning because it is difficult to automatically analyze if the new pattern is a superset of the previous pattern (e.g. changed from '[0-9]+' to '[0-9]*')", + "en.messages.request-body-added-optional": "added optional request body", + "en.messages.request-body-added-optional-description": "optional request body added", + "en.messages.request-body-added-required": "added required request body", + "en.messages.request-body-added-required-description": "required request body added", "en.messages.request-body-all-of-added": "added %s to the request body 'allOf' list", "en.messages.request-body-all-of-added-description": "sub-schema added to allOf in request body", "en.messages.request-body-all-of-removed": "removed %s from the request body 'allOf' list", @@ -528,8 +529,6 @@ var localizations = map[string]string{ "en.messages.unparseable-parameter-to-x-extensible-enum-description": "unparseable x-extensible-enum in revised request parameter", "en.messages.unparseable-property-from-x-extensible-enum-description": "unparseable x-extensible-enum in original request property", "en.messages.unparseable-property-to-x-extensible-enum-description": "unparseable x-extensible-enum in revised request property", - "ru.messages.added-optional-request-body": "добавлено необязательное тело запроса", - "ru.messages.added-required-request-body": "добавлено обязательное тело запроса", "ru.messages.api-deprecated-sunset-parse": "API deprecated без валидно парсящейся %s даты sunset: %v", "ru.messages.api-global-security-added": "схема безопасности %s была добавлена к API", "ru.messages.api-global-security-removed": "схема безопасности %s была удалена из API", @@ -574,6 +573,8 @@ var localizations = map[string]string{ "ru.messages.new-required-request-property": "добавлено новое обязательное поле запроса %s", "ru.messages.optional-response-header-removed": "удалён ранее необязательный заголовок ответа %s для ответа со статусом %s", "ru.messages.pattern-changed-warn-comment": "Это предупреждение, потому что сложно автоматически проанализировать, является ли новый шаблон надмножеством предыдущего шаблона (например, изменен с '[0-9]+' на '[0-9]*').", + "ru.messages.request-body-added-optional": "добавлено необязательное тело запроса", + "ru.messages.request-body-added-required": "добавлено обязательное тело запроса", "ru.messages.request-body-all-of-added": "добавлено %s в список 'allOf' тела запроса", "ru.messages.request-body-all-of-removed": "удалён %s из списка 'allOf' тела запроса", "ru.messages.request-body-any-of-added": "добавлено %s в список 'anyOf' тела запроса", diff --git a/checker/localizations_src/en/messages.yaml b/checker/localizations_src/en/messages.yaml index 31f4daa8..4f90f4de 100644 --- a/checker/localizations_src/en/messages.yaml +++ b/checker/localizations_src/en/messages.yaml @@ -1,7 +1,7 @@ at: at in: in -added-required-request-body: added required request body -added-optional-request-body: added optional request body +request-body-added-required: added required request body +request-body-added-optional: added optional request body request-parameter-removed: deleted the %s request parameter %s total-errors: "%d breaking changes: %d %s, %d %s\\n" total-changes: "%d changes: %d %s, %d %s, %d %s\\n" @@ -266,7 +266,8 @@ request-required-property-became-not-write-only: the request required property % new-required-request-default-parameter-to-existing-path: added the new required %s request parameter %s to all path's operations new-optional-request-default-parameter-to-existing-path: added the new optional %s request parameter %s to all path's operations # descriptions -added-required-request-body-description: required request body added +request-body-added-required-description: required request body added +request-body-added-optional-description: optional request body added api-deprecated-sunset-parse-description: endpoint deprecated with invalid or missing sunset date endpoint-added-description: endpoint added api-global-security-added-description: security scheme added in security diff --git a/checker/localizations_src/ru/messages.yaml b/checker/localizations_src/ru/messages.yaml index 5da76ac2..3164e8a8 100644 --- a/checker/localizations_src/ru/messages.yaml +++ b/checker/localizations_src/ru/messages.yaml @@ -1,7 +1,7 @@ at: в in: в -added-required-request-body: добавлено обязательное тело запроса -added-optional-request-body: добавлено необязательное тело запроса +request-body-added-required: добавлено обязательное тело запроса +request-body-added-optional: добавлено необязательное тело запроса request-parameter-removed: удалён %s параметр запроса %s total-errors: "%s критические изменения: %s %s, %s %s\\n" total-changes: "%s изменений: %s %s, %s %s, %s %s\\n"