Skip to content

Commit 1b53654

Browse files
committed
style: run go fmt on catalog types
1 parent 67afe0e commit 1b53654

1 file changed

Lines changed: 32 additions & 32 deletions

File tree

internal/catalog/types.go

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -60,40 +60,40 @@ type Owner struct {
6060

6161
// EndpointDetails represents the full response from GET /endpoints/{uuid}.
6262
type EndpointDetails struct {
63-
UUID string `json:"uuid"`
64-
Path string `json:"path"`
65-
Location string `json:"location"`
66-
Discoverable bool `json:"discoverable"`
67-
Validated bool `json:"validated"`
68-
SecurityClassification string `json:"securityClassification"`
69-
Connections int `json:"connections"`
70-
LastUpdated string `json:"lastUpdated"`
71-
ServiceVersion ServiceVersion `json:"serviceVersion"`
72-
Environment EnvironmentWithApp `json:"environment"`
63+
UUID string `json:"uuid"`
64+
Path string `json:"path"`
65+
Location string `json:"location"`
66+
Discoverable bool `json:"discoverable"`
67+
Validated bool `json:"validated"`
68+
SecurityClassification string `json:"securityClassification"`
69+
Connections int `json:"connections"`
70+
LastUpdated string `json:"lastUpdated"`
71+
ServiceVersion ServiceVersion `json:"serviceVersion"`
72+
Environment EnvironmentWithApp `json:"environment"`
7373
}
7474

7575
// EnvironmentWithApp extends Environment with nested Application (used in endpoint details).
7676
type EnvironmentWithApp struct {
77-
Name string `json:"name"`
78-
Location string `json:"location"`
79-
Type string `json:"type"`
80-
UUID string `json:"uuid"`
77+
Name string `json:"name"`
78+
Location string `json:"location"`
79+
Type string `json:"type"`
80+
UUID string `json:"uuid"`
8181
Application Application `json:"application"`
8282
}
8383

8484
// ServiceVersion contains version-specific metadata and contract.
8585
type ServiceVersion struct {
86-
Version string `json:"version"`
87-
Description string `json:"description"`
88-
UUID string `json:"uuid"`
89-
PublishDate string `json:"publishDate"`
90-
Type string `json:"type"` // "OData", "REST", "SOAP"
91-
Contracts []Contract `json:"contracts"`
92-
SecurityScheme *SecurityScheme `json:"securityScheme,omitempty"`
93-
TotalEntities int `json:"totalEntities"`
94-
Entities []Entity `json:"entities"`
95-
TotalActions int `json:"totalActions"`
96-
Actions []Action `json:"actions"`
86+
Version string `json:"version"`
87+
Description string `json:"description"`
88+
UUID string `json:"uuid"`
89+
PublishDate string `json:"publishDate"`
90+
Type string `json:"type"` // "OData", "REST", "SOAP"
91+
Contracts []Contract `json:"contracts"`
92+
SecurityScheme *SecurityScheme `json:"securityScheme,omitempty"`
93+
TotalEntities int `json:"totalEntities"`
94+
Entities []Entity `json:"entities"`
95+
TotalActions int `json:"totalActions"`
96+
Actions []Action `json:"actions"`
9797
}
9898

9999
// Contract represents an API contract (metadata, OpenAPI, WSDL, etc).
@@ -168,13 +168,13 @@ type Association struct {
168168

169169
// Action represents an OData action or function.
170170
type Action struct {
171-
Name string `json:"name"`
172-
FullyQualifiedName string `json:"fullyQualifiedName"`
173-
Summary string `json:"summary"`
174-
Description string `json:"description"`
175-
TotalParameters int `json:"totalParameters"`
176-
Parameters []Parameter `json:"parameters"`
177-
ReturnType *ReturnType `json:"returnType,omitempty"`
171+
Name string `json:"name"`
172+
FullyQualifiedName string `json:"fullyQualifiedName"`
173+
Summary string `json:"summary"`
174+
Description string `json:"description"`
175+
TotalParameters int `json:"totalParameters"`
176+
Parameters []Parameter `json:"parameters"`
177+
ReturnType *ReturnType `json:"returnType,omitempty"`
178178
}
179179

180180
// Parameter represents an action/function parameter.

0 commit comments

Comments
 (0)