This commit is contained in:
병준 박 2025-04-25 21:57:31 +00:00
parent 9c75a5cfb2
commit b05f8449d1

View File

@ -27,11 +27,11 @@ spec:
# 배열 타입으로 변경 # 배열 타입으로 변경
- name: generatorOptions - name: generatorOptions
type: array type: string
description: | description: |
openapi-generator-cli options openapi-generator-cli options
ex) ['--additional-properties=key=value', '--enable-post-process-file'] ex) "--additional-properties=key=value --enable-post-process-file"
default: [] default: ""
workspaces: workspaces:
- name: base - name: base
@ -53,6 +53,9 @@ spec:
#!/usr/bin/env bash #!/usr/bin/env bash
set -e set -e
# 문자열을 배열로 변환
IFS=' ' read -ra GENERATOR_OPTIONS <<< "$(params.generatorOptions)"
OPENAPI_FILE="specs/$(params.specDomain)/openapi.yaml" OPENAPI_FILE="specs/$(params.specDomain)/openapi.yaml"
PACKAGE_NAME="$(params.packageNamePrefix)$(params.context)" 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)" OUTPUT="/workspace/base/$(params.context)/output/${PACKAGE_NAME}-$(date +%s)-$(head /dev/urandom | tr -dc a-z0-9 | head -c 6)"