init
This commit is contained in:
parent
9c75a5cfb2
commit
b05f8449d1
@ -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)"
|
||||
|
Loading…
x
Reference in New Issue
Block a user