Commits
79 79 | } |
80 80 | |
81 81 | echo "🔧 Checking if required tools are installed on this machine ..." |
82 82 | checkIfToolsAreInstalled |
83 83 | |
84 84 | read -r server_version<"./tools/models-version.config" |
85 85 | echo "🚀 Starting generation of OpenAPI models (version $server_version)..." |
86 86 | |
87 87 | backendSvnRepo="" |
88 88 | # <trunk> means that you are generating for models that are on the project environment. You should always stride to have defined build numbers |
89 - | if [ $server_version = "<trunk>" || true ]; then |
89 + | if [ $server_version = "<trunk>"]; then |
90 90 | backendSvnRepo="https://svn.nspop.dk/src/libraries/gm/api/trunk/apis/" |
91 91 | else |
92 92 | backendSvnRepo="https://svn.nspop.dk/src/libraries/gm/api/tags/gm-api-$server_version/apis" |
93 93 | fi |
94 94 | |
95 95 | declare -a Urls=( |
96 96 | "maternity-data/maternity-data-schema/src/main/resources/open-api/maternity-api.yaml" |
97 97 | "maternity-feedback/maternity-feedback-schema/src/main/resources/open-api/FeedbackApi.yaml" |
98 98 | "maternity-configuration/maternity-configuration-schema/src/main/resources/open-api/Configuration-api.yaml" |
99 99 | ) |