shared: use one LocalizedText type everywhere
Some checks failed
CI/CD / Deploy binary to server (push) Has been cancelled
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled

auth, user, userbranch and org/branches each declared their own identical
{en, ru, tm} struct; they now use shared.LocalizedText. No JSON change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 14:19:59 +05:00
parent c6540a658b
commit 72a5ac52b0
8 changed files with 92 additions and 139 deletions

View File

@@ -8340,7 +8340,7 @@ const docTemplate = `{
"type": "boolean"
},
"address": {
"$ref": "#/definitions/branches.LocalizedText"
"$ref": "#/definitions/shared.LocalizedText"
},
"billingPassword": {
"type": "string"
@@ -8367,7 +8367,7 @@ const docTemplate = `{
"type": "string"
},
"name": {
"$ref": "#/definitions/branches.LocalizedText"
"$ref": "#/definitions/shared.LocalizedText"
},
"phoneNumbers": {
"type": "string"
@@ -8383,20 +8383,6 @@ const docTemplate = `{
}
}
},
"branches.LocalizedText": {
"type": "object",
"properties": {
"en": {
"type": "string"
},
"ru": {
"type": "string"
},
"tm": {
"type": "string"
}
}
},
"branches.UpdateBranchDTO": {
"type": "object",
"required": [
@@ -8409,7 +8395,7 @@ const docTemplate = `{
"type": "boolean"
},
"address": {
"$ref": "#/definitions/branches.LocalizedText"
"$ref": "#/definitions/shared.LocalizedText"
},
"billingPassword": {
"type": "string"
@@ -8436,7 +8422,7 @@ const docTemplate = `{
"type": "string"
},
"name": {
"$ref": "#/definitions/branches.LocalizedText"
"$ref": "#/definitions/shared.LocalizedText"
},
"phoneNumbers": {
"type": "string"

View File

@@ -8334,7 +8334,7 @@
"type": "boolean"
},
"address": {
"$ref": "#/definitions/branches.LocalizedText"
"$ref": "#/definitions/shared.LocalizedText"
},
"billingPassword": {
"type": "string"
@@ -8361,7 +8361,7 @@
"type": "string"
},
"name": {
"$ref": "#/definitions/branches.LocalizedText"
"$ref": "#/definitions/shared.LocalizedText"
},
"phoneNumbers": {
"type": "string"
@@ -8377,20 +8377,6 @@
}
}
},
"branches.LocalizedText": {
"type": "object",
"properties": {
"en": {
"type": "string"
},
"ru": {
"type": "string"
},
"tm": {
"type": "string"
}
}
},
"branches.UpdateBranchDTO": {
"type": "object",
"required": [
@@ -8403,7 +8389,7 @@
"type": "boolean"
},
"address": {
"$ref": "#/definitions/branches.LocalizedText"
"$ref": "#/definitions/shared.LocalizedText"
},
"billingPassword": {
"type": "string"
@@ -8430,7 +8416,7 @@
"type": "string"
},
"name": {
"$ref": "#/definitions/branches.LocalizedText"
"$ref": "#/definitions/shared.LocalizedText"
},
"phoneNumbers": {
"type": "string"

View File

@@ -112,7 +112,7 @@ definitions:
active:
type: boolean
address:
$ref: '#/definitions/branches.LocalizedText'
$ref: '#/definitions/shared.LocalizedText'
billingPassword:
type: string
billingSberPassword:
@@ -130,7 +130,7 @@ definitions:
billingVisaMasterUsername:
type: string
name:
$ref: '#/definitions/branches.LocalizedText'
$ref: '#/definitions/shared.LocalizedText'
phoneNumbers:
type: string
provinceId:
@@ -145,21 +145,12 @@ definitions:
- region
- uniqueCode
type: object
branches.LocalizedText:
properties:
en:
type: string
ru:
type: string
tm:
type: string
type: object
branches.UpdateBranchDTO:
properties:
active:
type: boolean
address:
$ref: '#/definitions/branches.LocalizedText'
$ref: '#/definitions/shared.LocalizedText'
billingPassword:
type: string
billingSberPassword:
@@ -177,7 +168,7 @@ definitions:
billingVisaMasterUsername:
type: string
name:
$ref: '#/definitions/branches.LocalizedText'
$ref: '#/definitions/shared.LocalizedText'
phoneNumbers:
type: string
provinceId: