Skip to content

Commit 489f58a

Browse files
committed
Merge branch 'master' of https://github.com/vfrank66/openapi-generator into typescript-nextjs
2 parents 5f2ca61 + d661501 commit 489f58a

319 files changed

Lines changed: 3383 additions & 16320 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/.test/samples.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,6 +1244,30 @@
12441244
"Client: TypeScript"
12451245
]
12461246
},
1247+
{
1248+
"input": "typescript-nestjs-v6-petstore-not-provided-in-root-with-npm.sh",
1249+
"matches": [
1250+
"Client: TypeScript"
1251+
]
1252+
},
1253+
{
1254+
"input": "typescript-nestjs-v6-petstore-not-provided-in-root.sh",
1255+
"matches": [
1256+
"Client: TypeScript"
1257+
]
1258+
},
1259+
{
1260+
"input": "typescript-nestjs-v6-petstore-provided-in-root-with-npm.sh",
1261+
"matches": [
1262+
"Client: TypeScript"
1263+
]
1264+
},
1265+
{
1266+
"input": "typescript-nestjs-v6-petstore-provided-in-root.sh",
1267+
"matches": [
1268+
"Client: TypeScript"
1269+
]
1270+
},
12471271
{
12481272
"input": "typescript-node-petstore-with-npm.sh",
12491273
"matches": [

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ packages/
3131
.vscode/
3232
**/.vs
3333
.factorypath
34+
.metals/*
3435

3536
.settings
3637

bin/nestjs-client-petstore.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/sh
2+
3+
SCRIPT="$0"
4+
5+
while [ -h "$SCRIPT" ] ; do
6+
ls=$(ls -ld "$SCRIPT")
7+
link=$(expr "$ls" : '.*-> \(.*\)$')
8+
if expr "$link" : '/.*' > /dev/null; then
9+
SCRIPT="$link"
10+
else
11+
SCRIPT=$(dirname "$SCRIPT")/"$link"
12+
fi
13+
done
14+
15+
if [ ! -d "${APP_DIR}" ]; then
16+
APP_DIR=$(dirname "$SCRIPT")/..
17+
APP_DIR=$(cd "${APP_DIR}"; pwd)
18+
fi
19+
20+
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
21+
22+
if [ ! -f "$executable" ]
23+
then
24+
mvn clean package
25+
fi
26+
27+
# if you've executed sbt assembly previously it will use that instead.
28+
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
29+
ags="$@ generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g nestjs -o samples/client/petstore/nestjs"
30+
31+
java ${JAVA_OPTS} -jar ${executable} ${ags}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
./bin/typescript-nestjs-v6-petstore-not-provided-in-root.sh
4+
./bin/typescript-nestjs-v6-petstore-not-provided-in-root-with-npm.sh
5+
./bin/typescript-nestjs-v6-petstore-provided-in-root.sh
6+
./bin/typescript-nestjs-v6-petstore-provided-in-root-with-npm.sh
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"npmName": "@openapitools/typescript-nestjs-petstore",
3+
"npmVersion": "1.0.0",
4+
"stringEnums": true,
5+
"npmRepository": "https://skimdb.npmjs.com/registry",
6+
"snapshot": false
7+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/sh
2+
3+
SCRIPT="$0"
4+
echo "# START SCRIPT: $SCRIPT"
5+
6+
while [ -h "$SCRIPT" ] ; do
7+
ls=`ls -ld "$SCRIPT"`
8+
link=`expr "$ls" : '.*-> \(.*\)$'`
9+
if expr "$link" : '/.*' > /dev/null; then
10+
SCRIPT="$link"
11+
else
12+
SCRIPT=`dirname "$SCRIPT"`/"$link"
13+
fi
14+
done
15+
16+
if [ ! -d "${APP_DIR}" ]; then
17+
APP_DIR=`dirname "$SCRIPT"`/..
18+
APP_DIR=`cd "${APP_DIR}"; pwd`
19+
fi
20+
21+
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
22+
23+
if [ ! -f "$executable" ]
24+
then
25+
mvn -B clean package
26+
fi
27+
28+
# if you've executed sbt assembly previously it will use that instead.
29+
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
30+
ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g typescript-nestjs -c bin/typescript-nestjs-v6-petstore-not-provided-in-root-with-npm.json -o samples/client/petstore/typescript-nestjs-v6-not-provided-in-root/builds/with-npm --additional-properties nestVersion=6.0.0 $@"
31+
32+
java $JAVA_OPTS -jar $executable $ags
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/sh
2+
3+
SCRIPT="$0"
4+
echo "# START SCRIPT: $SCRIPT"
5+
6+
while [ -h "$SCRIPT" ] ; do
7+
ls=`ls -ld "$SCRIPT"`
8+
link=`expr "$ls" : '.*-> \(.*\)$'`
9+
if expr "$link" : '/.*' > /dev/null; then
10+
SCRIPT="$link"
11+
else
12+
SCRIPT=`dirname "$SCRIPT"`/"$link"
13+
fi
14+
done
15+
16+
if [ ! -d "${APP_DIR}" ]; then
17+
APP_DIR=`dirname "$SCRIPT"`/..
18+
APP_DIR=`cd "${APP_DIR}"; pwd`
19+
fi
20+
21+
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
22+
23+
if [ ! -f "$executable" ]
24+
then
25+
mvn -B clean package
26+
fi
27+
28+
# if you've executed sbt assembly previously it will use that instead.
29+
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
30+
ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g typescript-nestjs -o samples/client/petstore/typescript-nestjs-v6-not-provided-in-root/builds/default --additional-properties nestVersion=6.0.0 $@"
31+
32+
java $JAVA_OPTS -jar $executable $ags
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"npmName": "@openapitools/typescript-nestjs-petstore",
3+
"npmVersion": "1.0.0",
4+
"npmRepository" : "https://skimdb.npmjs.com/registry",
5+
"snapshot" : false
6+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/sh
2+
3+
SCRIPT="$0"
4+
echo "# START SCRIPT: $SCRIPT"
5+
6+
while [ -h "$SCRIPT" ] ; do
7+
ls=`ls -ld "$SCRIPT"`
8+
link=`expr "$ls" : '.*-> \(.*\)$'`
9+
if expr "$link" : '/.*' > /dev/null; then
10+
SCRIPT="$link"
11+
else
12+
SCRIPT=`dirname "$SCRIPT"`/"$link"
13+
fi
14+
done
15+
16+
if [ ! -d "${APP_DIR}" ]; then
17+
APP_DIR=`dirname "$SCRIPT"`/..
18+
APP_DIR=`cd "${APP_DIR}"; pwd`
19+
fi
20+
21+
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
22+
23+
if [ ! -f "$executable" ]
24+
then
25+
mvn -B clean package
26+
fi
27+
28+
# if you've executed sbt assembly previously it will use that instead.
29+
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
30+
ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g typescript-nestjs -c bin/typescript-nestjs-v6-petstore-provided-in-root-with-npm.json -o samples/client/petstore/typescript-nestjs-v6-provided-in-root/builds/with-npm --additional-properties nestVersion=6.0.0 $@"
31+
32+
java $JAVA_OPTS -jar $executable $ags
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/sh
2+
3+
SCRIPT="$0"
4+
echo "# START SCRIPT: $SCRIPT"
5+
6+
while [ -h "$SCRIPT" ] ; do
7+
ls=`ls -ld "$SCRIPT"`
8+
link=`expr "$ls" : '.*-> \(.*\)$'`
9+
if expr "$link" : '/.*' > /dev/null; then
10+
SCRIPT="$link"
11+
else
12+
SCRIPT=`dirname "$SCRIPT"`/"$link"
13+
fi
14+
done
15+
16+
if [ ! -d "${APP_DIR}" ]; then
17+
APP_DIR=`dirname "$SCRIPT"`/..
18+
APP_DIR=`cd "${APP_DIR}"; pwd`
19+
fi
20+
21+
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
22+
23+
if [ ! -f "$executable" ]
24+
then
25+
mvn -B clean package
26+
fi
27+
28+
# if you've executed sbt assembly previously it will use that instead.
29+
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
30+
ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g typescript-nestjs -o samples/client/petstore/typescript-nestjs-v6-provided-in-root/builds/default --additional-properties nestVersion=6.0.0 $@"
31+
32+
java $JAVA_OPTS -jar $executable $ags

0 commit comments

Comments
 (0)