Skip to content

Commit

Permalink
fix: remove deprecated swagger-cli (#1080)
Browse files Browse the repository at this point in the history
* fix: remove deprecated swagger-cli

* fix: use node:18-alpine
  • Loading branch information
abelanger5 authored Dec 3, 2024
1 parent 92a96be commit f821379
Show file tree
Hide file tree
Showing 7 changed files with 1,001 additions and 979 deletions.
459 changes: 229 additions & 230 deletions api/v1/server/oas/gen/openapi.gen.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/v1/server/oas/transformers/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func ToWorkflowVersionConcurrency(concurrency *WorkflowConcurrency) *gen.Workflo

res := &gen.WorkflowConcurrency{
MaxRuns: concurrency.MaxRuns.Int32,
LimitStrategy: gen.WorkflowConcurrencyLimitStrategy(concurrency.LimitStrategy.ConcurrencyLimitStrategy),
LimitStrategy: gen.ConcurrencyLimitStrategy(concurrency.LimitStrategy.ConcurrencyLimitStrategy),
GetConcurrencyGroup: sqlchelpers.UUIDToStr(concurrency.GetConcurrencyGroupId),
}

Expand Down
6 changes: 3 additions & 3 deletions build/package/servers.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ RUN go generate ./...

# OpenAPI bundle environment
# -------------------------
FROM node:16-alpine as build-openapi
FROM node:18-alpine as build-openapi
WORKDIR /openapi

RUN npm install -g [email protected] @apidevtools/swagger-cli prisma
RUN npm install -g [email protected] @redocly/cli@latest prisma

COPY /api-contracts/openapi ./openapi

RUN swagger-cli bundle ./openapi/openapi.yaml --outfile ./bin/oas/openapi.yaml --type yaml
RUN npx @redocly/cli bundle ./openapi/openapi.yaml --output ./bin/oas/openapi.yaml --ext yaml

# Go build environment
# --------------------
Expand Down
18 changes: 9 additions & 9 deletions frontend/app/src/lib/api/generated/Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@
*/

import {
AcceptInviteRequest,
APIError,
APIErrors,
APIMeta,
AcceptInviteRequest,
BulkCreateEventRequest,
BulkCreateEventResponse,
CancelEventRequest,
CreateAPITokenRequest,
CreateAPITokenResponse,
Expand All @@ -36,10 +35,11 @@ import {
EventOrderByDirection,
EventOrderByField,
EventSearch,
Events,
ListAPIMetaIntegration,
ListAPITokensResponse,
ListSlackWebhooks,
ListSNSIntegrations,
ListSlackWebhooks,
LogLineLevelField,
LogLineList,
LogLineOrderByDirection,
Expand All @@ -53,12 +53,12 @@ import {
ReplayWorkflowRunsRequest,
ReplayWorkflowRunsResponse,
RerunStepRunRequest,
SNSIntegration,
ScheduleWorkflowRunRequest,
ScheduledRunStatus,
ScheduledWorkflows,
ScheduledWorkflowsList,
ScheduledWorkflowsOrderByField,
ScheduleWorkflowRunRequest,
SNSIntegration,
StepRun,
StepRunArchiveList,
StepRunEventList,
Expand All @@ -83,8 +83,8 @@ import {
UserLoginRequest,
UserRegisterRequest,
UserTenantMembershipsList,
WebhookWorkerCreated,
WebhookWorkerCreateRequest,
WebhookWorkerCreated,
WebhookWorkerListResponse,
WebhookWorkerRequestListResponse,
Worker,
Expand All @@ -98,11 +98,11 @@ import {
WorkflowRunList,
WorkflowRunOrderByDirection,
WorkflowRunOrderByField,
WorkflowRunsCancelRequest,
WorkflowRunShape,
WorkflowRunsMetrics,
WorkflowRunStatus,
WorkflowRunStatusList,
WorkflowRunsCancelRequest,
WorkflowRunsMetrics,
WorkflowUpdateRequest,
WorkflowVersion,
WorkflowWorkersCount,
Expand Down Expand Up @@ -931,7 +931,7 @@ export class Api<SecurityDataType = unknown> extends HttpClient<SecurityDataType
* @secure
*/
eventCreateBulk = (tenant: string, data: BulkCreateEventRequest, params: RequestParams = {}) =>
this.request<BulkCreateEventResponse, APIErrors>({
this.request<Events, APIErrors>({
path: `/api/v1/tenants/${tenant}/events/bulk`,
method: 'POST',
body: data,
Expand Down
Loading

0 comments on commit f821379

Please sign in to comment.