From b05f8449d1f2f12b32250024c456611b76ceff00 Mon Sep 17 00:00:00 2001 From: BAK BYEONG JUN Date: Fri, 25 Apr 2025 21:57:31 +0000 Subject: [PATCH] init --- tasks/openapi-generate/task.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tasks/openapi-generate/task.yaml b/tasks/openapi-generate/task.yaml index dcbd3ad..c3a8377 100644 --- a/tasks/openapi-generate/task.yaml +++ b/tasks/openapi-generate/task.yaml @@ -27,11 +27,11 @@ spec: # 배열 타입으로 변경 - name: generatorOptions - type: array + type: string description: | openapi-generator-cli options - ex) ['--additional-properties=key=value', '--enable-post-process-file'] - default: [] + ex) "--additional-properties=key=value --enable-post-process-file" + default: "" workspaces: - name: base @@ -53,6 +53,9 @@ spec: #!/usr/bin/env bash set -e + # 문자열을 배열로 변환 + IFS=' ' read -ra GENERATOR_OPTIONS <<< "$(params.generatorOptions)" + OPENAPI_FILE="specs/$(params.specDomain)/openapi.yaml" PACKAGE_NAME="$(params.packageNamePrefix)$(params.context)" OUTPUT="/workspace/base/$(params.context)/output/${PACKAGE_NAME}-$(date +%s)-$(head /dev/urandom | tr -dc a-z0-9 | head -c 6)"