This repository was archived by the owner on Nov 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ GENERATOR=$1
4+ if [ -z " $GENERATOR " ]; then
5+ GENERATOR=openapi-generator.jar
6+ fi
7+ if [ ! -f $GENERATOR ]; then
8+ >&2 echo " Generator jar not found." ; exit 1
9+ fi
10+
11+ INPUT=$2
12+ if [ -z " $INPUT " ]; then
13+ INPUT=swagger.json
14+ fi
15+ if [ ! -f $INPUT ]; then
16+ >&2 echo " Swagger file not found." ; exit 1
17+ fi
18+
19+ VERSION=$3
20+ if [ -z " $VERSION " ]; then
21+ VERSION=0.0.1
22+ fi
23+
24+ OUTPUT=./
25+
26+ rm -rf $OUTPUT /docs $OUTPUT /src/api $OUTPUT /src/models $OUTPUT /test
27+
28+ # See https://openapi-generator.tech/docs/generators/typescript-fetch
29+ # for a list of available additional properties.
30+ java \
31+ -jar $GENERATOR generate \
32+ -g javascript \
33+ -i $INPUT \
34+ -o $OUTPUT \
35+ --additional-properties \
36+ allowUnicodeIdentifiers=true,\
37+ projectName=@bimdata/bimdata-api-client,\
38+ usePromises=true,\
39+ moduleName=bimdata,\
40+ licenseName=MIT,\
41+ projectVersion=0.0.0,\
42+ packageName=bimdata_api_client
43+
44+ exit 0
You can’t perform that action at this time.
0 commit comments