Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Normalize cli kontrol api property names using camelCase #234

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading