From 1b27ad5304c7a395daac6b505e61c5dce9ca3840 Mon Sep 17 00:00:00 2001 From: "n.nakhostin" Date: Wed, 20 Aug 2025 12:32:34 +0330 Subject: [PATCH] Remove 'country' field from CompanyProfileResponse and update API documentation accordingly - Eliminated the 'country' field from the CompanyProfileResponse structure in the entity, Swagger JSON, YAML, and Go documentation. - This change streamlines the response format for company profiles, ensuring clarity and consistency in the API documentation. - Updated relevant documentation files to reflect the removal, enhancing the overall usability of the API. --- cmd/web/docs/docs.go | 3 --- cmd/web/docs/swagger.json | 3 --- cmd/web/docs/swagger.yaml | 2 -- internal/company/entity.go | 1 - 4 files changed, 9 deletions(-) diff --git a/cmd/web/docs/docs.go b/cmd/web/docs/docs.go index edb66a4..dac41e3 100644 --- a/cmd/web/docs/docs.go +++ b/cmd/web/docs/docs.go @@ -6568,9 +6568,6 @@ const docTemplate = `{ "company.CompanyProfileResponse": { "type": "object", "properties": { - "country": { - "type": "string" - }, "created_at": { "type": "integer" }, diff --git a/cmd/web/docs/swagger.json b/cmd/web/docs/swagger.json index 0ddbef9..1170b6f 100644 --- a/cmd/web/docs/swagger.json +++ b/cmd/web/docs/swagger.json @@ -6562,9 +6562,6 @@ "company.CompanyProfileResponse": { "type": "object", "properties": { - "country": { - "type": "string" - }, "created_at": { "type": "integer" }, diff --git a/cmd/web/docs/swagger.yaml b/cmd/web/docs/swagger.yaml index f832558..3b1d7b5 100644 --- a/cmd/web/docs/swagger.yaml +++ b/cmd/web/docs/swagger.yaml @@ -80,8 +80,6 @@ definitions: type: object company.CompanyProfileResponse: properties: - country: - type: string created_at: type: integer founded_year: diff --git a/internal/company/entity.go b/internal/company/entity.go index 60c904c..e521734 100644 --- a/internal/company/entity.go +++ b/internal/company/entity.go @@ -208,7 +208,6 @@ type CompanyProfileResponse struct { Name string `json:"name"` RegistrationNumber string `json:"registration_number"` Industry string `json:"industry"` - Country string `json:"country"` FoundedYear *int `json:"founded_year,omitempty"` CreatedAt int64 `json:"created_at"` }