Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
Normlalize cli kontrol api properties names using camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentluce committed Sep 18, 2024
1 parent 167a050 commit a8a4845
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 106 deletions.
4 changes: 2 additions & 2 deletions kardinal-cli/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -816,8 +816,8 @@ func createDevFlow(tenantUuid api_types.Uuid, pairsMap map[string]string, templa
devSpec := api_types.FlowSpec{}
for serviceName, imageLocator := range pairsMap {
devSpec = append(devSpec, struct {
ImageLocator string `json:"image-locator"`
ServiceName string `json:"service-name"`
ImageLocator string `json:"imageLocator"`
ServiceName string `json:"serviceName"`
}{
ImageLocator: imageLocator,
ServiceName: serviceName,
Expand Down
4 changes: 2 additions & 2 deletions libs/cli-kontrol-api/api/golang/client/client.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

84 changes: 42 additions & 42 deletions libs/cli-kontrol-api/api/golang/server/server.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 14 additions & 14 deletions libs/cli-kontrol-api/api/golang/types/types.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 18 additions & 18 deletions libs/cli-kontrol-api/api/typescript/client/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export interface paths {
requestBody: {
content: {
"application/json": {
flow_spec: components["schemas"]["FlowSpec"];
template_spec?: components["schemas"]["TemplateSpec"];
flowSpec: components["schemas"]["FlowSpec"];
templateSpec?: components["schemas"]["TemplateSpec"];
};
};
};
Expand Down Expand Up @@ -65,12 +65,12 @@ export interface paths {
};
};
};
"/tenant/{uuid}/flow/{flow-id}": {
"/tenant/{uuid}/flow/{flowId}": {
delete: {
parameters: {
path: {
uuid: components["parameters"]["uuid"];
"flow-id": components["parameters"]["flow-id"];
flowId: components["parameters"]["flowId"];
};
};
responses: {
Expand Down Expand Up @@ -171,12 +171,12 @@ export interface paths {
};
};
};
"/tenant/{uuid}/templates/{template-name}": {
"/tenant/{uuid}/templates/{templateName}": {
delete: {
parameters: {
path: {
uuid: components["parameters"]["uuid"];
"template-name": components["parameters"]["template-name"];
templateName: components["parameters"]["templateName"];
};
};
responses: {
Expand Down Expand Up @@ -219,24 +219,24 @@ export type webhooks = Record<string, never>;
export interface components {
schemas: {
MainClusterConfig: {
"service-configs"?: components["schemas"]["ServiceConfig"][];
"ingress-configs"?: components["schemas"]["IngressConfig"][];
serviceConfigs?: components["schemas"]["ServiceConfig"][];
ingressConfigs?: components["schemas"]["IngressConfig"][];
namespace?: string;
};
Flow: {
"flow-id": string;
"flow-urls": string[];
"is-baseline"?: boolean;
flowId: string;
flowUrls: string[];
isBaseline?: boolean;
};
FlowSpec: {
/** @example backend-a:latest */
"image-locator": string;
imageLocator: string;
/** @example backend-service-a */
"service-name": string;
serviceName: string;
}[];
TemplateSpec: {
/** @description name of the template */
template_name: string;
templateName: string;
arguments?: {
[key: string]: unknown;
};
Expand Down Expand Up @@ -283,7 +283,7 @@ export interface components {
description?: string;
};
Template: {
"template-id": string;
templateId: string;
name: string;
description?: string;
};
Expand All @@ -308,7 +308,7 @@ export interface components {
content: {
"application/json": {
/** @description Resource type */
"resource-type": string;
resourceType: string;
/** @description Resource ID */
id: string;
};
Expand All @@ -319,9 +319,9 @@ export interface components {
/** @description UUID of the resource */
uuid: string;
/** @description Flow identifier */
"flow-id": string;
flowId: string;
/** @description name of the template */
"template-name": string;
templateName: string;
};
requestBodies: never;
headers: never;
Expand Down
Loading

0 comments on commit a8a4845

Please sign in to comment.