Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphql #1451

Closed
wants to merge 10,000 commits into from
Closed

Graphql #1451

Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
10000 commits
Select commit Hold shift + click to select a range
13329eb
Better code format for Java (okhttp-gson) client (#971)
wing328 Sep 6, 2018
f464fac
Add perltidy to format Perl code (#970)
wing328 Sep 6, 2018
40ed0ad
Added pry-byebug to debug Ruby client (#979)
ndbroadbent Sep 6, 2018
3e300cd
[Typescript] add missing type mapping (#973)
macjohnny Sep 6, 2018
b74a3a1
[PHP] Upgrade php-cs-fixer to 2.12, enables PHP >= 7.2 support (#769)
mattmelling Sep 6, 2018
27261ea
[PHP] Fix deserialize ApiException as a Model (#757)
ymilin Sep 6, 2018
4f521fa
Set swagger-parser and swagger-core to version 2.0.4 (#787)
jmini Sep 6, 2018
02ae367
Ignore modules/openapi-generator-gradle-plugin/bin/ (#983)
ndbroadbent Sep 7, 2018
45ac934
[PHP]Generated lumen code can contain dots in routes (#985)
ackintosh Sep 7, 2018
3f6c98b
[PHP] Drop support for PHP5.5 on php-client (#993)
ackintosh Sep 7, 2018
3923160
Add js-beautify support to JS generator (#961)
wing328 Sep 8, 2018
0e2e4ed
[Spring] Fix reactive + delegatePattern option (#978)
cbornet Sep 8, 2018
b424646
[Java][Feign] Add support for Feign 10 (#977) (#988)
ihrankouski Sep 9, 2018
2101882
fix circular import issue in python flask (#946)
wheelsandmetal Sep 9, 2018
8c1a6b3
[Swift4] Fix default value for enums (#652) (#656)
grEvenX Sep 9, 2018
6b8b2bd
fix[dart2]: improved error reporting (#1006)
Sep 10, 2018
b77a83f
[C++] [cpp-rest-sdk] Check for null values (#990)
whoan Sep 10, 2018
6fe6ec2
[KOTLIN] [SPRING] Minor bug fixes to generator (#1001)
dr4ke616 Sep 12, 2018
f37ac8d
Improvements for qt5 server (#942)
etherealjoy Sep 12, 2018
634defb
[c++ pistache server] Support basic query handling (#943)
etherealjoy Sep 12, 2018
7de0bf0
Update the Asp.Net core server generator to support Asp.net Core 2.1 …
SeanFarrow Sep 12, 2018
88b2ce1
[C++][Restbed] Fix default values for Restbed Server generator (#761)
stkrwork Sep 12, 2018
685d931
[gradle plugin] Support Gradle 4.10 (#1011)
jimschubert Sep 12, 2018
e3aeab1
Revert "[C++][Restbed] Fix default values for Restbed Server generato…
wing328 Sep 13, 2018
d7d7226
Add option to set Feign version (#1005)
wing328 Sep 13, 2018
8f2aa46
Add a CLI option to control logging level (#1000)
ackintosh Sep 13, 2018
639681a
Dart (Jaguar) client generator (#998)
wing328 Sep 13, 2018
706cdfc
Avod use of an empty key value (#991)
whoan Sep 13, 2018
6df5309
Add option to enable scalafmt for code formatting (#1032)
wing328 Sep 14, 2018
a9956cb
[DART2] Maps could not be deserialized in dart 2 (#1007)
Sep 14, 2018
4102fd1
update dart tech committe and template creator (#1038)
wing328 Sep 14, 2018
e789d2b
[JaxRS-Spec] Fixes in generated pom (#1035)
jmini Sep 14, 2018
46fb1b6
fix postProcessFile log message (#1028)
wing328 Sep 15, 2018
fca984c
[Java][Retrofit2] The part name is not added to the annotation (#1029)
cheparinV Sep 16, 2018
9af9971
[all] Add leading slash in path if missing (#1034)
jmini Sep 16, 2018
ff92b0e
[Java][Jersey] add @Valid when bean validation is enabled (#1019)
fujigon Sep 16, 2018
b835eaa
[Swift4] Use CodeableHelper's dateformatter in encode() if configured…
manhhavu Sep 17, 2018
f8016c7
Minor improvement to Dart generators (#1042)
wing328 Sep 17, 2018
e347db4
feature: add scaffold for typescript axios template (#892)
nicokoenig Sep 18, 2018
39127be
Add nicokoenig to template creator list and TS tech committee (#1056)
wing328 Sep 18, 2018
d822631
Issue 1025: Kotlin generator doesn't support inheritance (#1026)
irishshagua Sep 19, 2018
b69a3e0
PR: Fix error when giving an array as parameter to an endpoint body r…
thomasphansen Sep 19, 2018
4f76d28
Add file post-processing to Swift 3.x, 4.x generators (#1069)
wing328 Sep 20, 2018
d1f8b05
Fix alias to map response (#1067)
wing328 Sep 20, 2018
b7ccc12
[okhttp-gson] Add support for OAuth access token retry (#1058)
Kiran-Sivakumar Sep 20, 2018
fad0ab5
#1043 - [Ada] Operation security scopes are ignored when generating t…
stcarrez Sep 20, 2018
718b744
Add file post processing to Ruby generators (#1062)
wing328 Sep 20, 2018
74cfa3c
add nullable to Ruby client (#1059)
wing328 Sep 20, 2018
afde026
Trim trailing '/' from basePathWithoutHost (#967)
bjgill Sep 20, 2018
60d0a97
Fix flask connexion support (#1066)
cbornet Sep 20, 2018
7687f43
Update Usage instructions in README (#1071)
intelliot Sep 21, 2018
21a0e7a
add logic to handle uuid in elm generator (#1075)
wing328 Sep 21, 2018
47a49bf
Kotlin spring server codegen improvements (#1070)
herojan Sep 21, 2018
495c963
[Go] Add a generator for the gin framework (#1048)
kemokemo Sep 21, 2018
0adf06e
Add post processing to files generated by Python generators (#1072)
wing328 Sep 22, 2018
25736ea
Rename Env variable for Elm post process file (#1094)
wing328 Sep 25, 2018
823a95b
fix model generator for snake case open api definition (#1076)
jaumard Sep 25, 2018
7277aa8
rename dart env variable for post processing file (#1101)
wing328 Sep 25, 2018
6c25285
Add myworkout to the company list (#1111)
wing328 Sep 26, 2018
3670101
update dependency (#1116)
wing328 Sep 26, 2018
47d0478
Fix for optional and default types (#1107)
dr4ke616 Sep 26, 2018
c23175f
Add a link to an article about openap-generator (#1121)
wing328 Sep 26, 2018
3453cb9
fix top-level enum class checking (#1120)
phstudy Sep 28, 2018
0701920
Add post processing to files generated by TS generators (#1063)
wing328 Sep 29, 2018
cae72d0
comment out ts node test (#1142)
wing328 Sep 29, 2018
131cd9b
fix optional import (#1083)
anandshah05 Sep 29, 2018
f40023b
Add nullable support to Python client (#1073)
wing328 Sep 29, 2018
4afd8eb
Add post processing to files generated by Haskell generators (#968)
wing328 Sep 29, 2018
760fa01
[elm] Major refactoring; add discriminator support (#1104)
eriktim Sep 29, 2018
43311db
[Scala-Akka] Generate default values for optional model fields (#1119)
antbell Sep 29, 2018
364538f
rename scala post proessing env variable (#1143)
wing328 Sep 29, 2018
ce2be88
[Golang][go-gin-server] Fixed issue 1122 with workaround (#1141)
kemokemo Oct 1, 2018
1024fc6
Better handling of different types in Elm generator (#1100)
wing328 Oct 1, 2018
0aded20
MySQL Schema Generator #955 (#1055)
ybelenko Oct 1, 2018
3867e9b
Minor enhancements to the MySQL generator (#1148)
wing328 Oct 1, 2018
8394b51
[elm] Fix Byte encoder/decoder names (#1151)
eriktim Oct 1, 2018
4123612
Rename environment variable for Go to post-process file (#1091)
wing328 Oct 1, 2018
f600bc1
3.3.0 release (#1153)
wing328 Oct 1, 2018
51e1d09
Prepare 3.3.1-SNAPSHOT (#1154)
wing328 Oct 2, 2018
b5c02fb
Fix: allow colons in TS interface property names (#1152)
smasala Oct 3, 2018
e3794d8
Update README with 3.4.x (#1162)
wing328 Oct 3, 2018
1a4f6c6
FIX: remove special quotation marks from filename generation. (#1157)
smasala Oct 4, 2018
c797c9b
Better format for Ruby tests (#1166)
wing328 Oct 4, 2018
4735da9
rename perl environment variable (#1172)
wing328 Oct 4, 2018
59774f1
update outdated Vagrantfile. (#1156)
mknoszlig Oct 5, 2018
b3f240a
JAVA Spring <async>false</async> Pushing the improved fix (#1179)
raghuraman1 Oct 5, 2018
b8178ec
improve go code format without gofmt (#1173)
wing328 Oct 5, 2018
8676061
Improve "allOf" support (#1169)
ackintosh Oct 5, 2018
01398b9
Refactor default and example values in Java generators (#1045)
wing328 Oct 6, 2018
53eaf6e
Update maven plugin version (#1184)
wing328 Oct 7, 2018
ef34801
[C++][Restbed] Fix default value for Restbed (#1186)
stkrwork Oct 7, 2018
8aab647
[Java][okhttp-gson] Fix bug when specifying grant-type (flow) for OAu…
Kiran-Sivakumar Oct 8, 2018
67fd3cc
fix enum value, update dart petstore samples (#1193)
wing328 Oct 8, 2018
dfe3cfc
[Flask] Upgrade to flask connexion 2.0.0rc3 (#1192)
cbornet Oct 8, 2018
0babc5d
Allow specifying/overriding the parent in the pom file for Java and S…
mwoodland Oct 9, 2018
3f890ea
Add JDK 9 support (#1188)
wing328 Oct 9, 2018
a9188b8
Re-enabling typescript node test (#1190)
osharav Oct 9, 2018
5a684b1
[Spring] Fix character conversion error (#1195)
ackintosh Oct 9, 2018
6bba79b
x-www-form-urlencoded-body-fix (#1187)
beardeddragon5 Oct 10, 2018
562a626
[C#] Fix issue #1088 with generation of enum classes referenced from …
rubms Oct 11, 2018
65ef6a8
Verify updatePetWithForm in Go client (#1212)
wing328 Oct 11, 2018
2ae9b7a
Various improvements (#1213)
wing328 Oct 11, 2018
56ede3a
Revert "Various improvements (#1213)" (#1220)
wing328 Oct 11, 2018
be46dd6
Add x-go-custom-tag to go-server generator (#1146)
andrewkav Oct 12, 2018
a0b39a8
rename JS environment variable (#1214)
wing328 Oct 12, 2018
c17e585
fix: python/asyncio no-ssl-verify affects verification of server cert…
tomplus Oct 12, 2018
b0d7bca
fix: fix return type for api interface (#1218)
nicokoenig Oct 12, 2018
22dbf94
Ctor without parameters
Rizzen Oct 13, 2018
1f404d6
Update spring-cloud generator to use openfeign (#1191)
cbornet Oct 14, 2018
5386cb4
fix export_generator shell script (#1223)
fujigon Oct 14, 2018
d0bdbf7
fix gradle build error on java9+ (#1240)
fujigon Oct 15, 2018
c7f3855
[C#] Fixed issue #1126 with invalid generation of C# children models …
rubms Oct 15, 2018
cef7330
Add an option to enable file post-processing (#1241)
wing328 Oct 15, 2018
215a06c
[cli] config-help writes doc-compat output (#1239)
jimschubert Oct 15, 2018
e925ac8
add file post processing to csharp generator (#1238)
wing328 Oct 15, 2018
1ded9c5
Prepare 3.3.1 patch release (#1247)
wing328 Oct 15, 2018
fd848f8
Prepare 3.3.2 snapshot version (#1249)
wing328 Oct 16, 2018
5b147ff
update gradle download link (#1254)
wing328 Oct 16, 2018
619dc9b
Update generator option (#1236)
wing328 Oct 16, 2018
7931eac
Add "tomplus" to Python technical committee (#1264)
wing328 Oct 18, 2018
39a5858
Fix jackson-databind security issue (#1259)
wing328 Oct 18, 2018
c793b37
Consider callbacks in unused schemas (#1232)
jmini Oct 18, 2018
6c00782
minor doc revision (#1242)
wing328 Oct 18, 2018
91a59dc
update spring core version (#1265)
wing328 Oct 18, 2018
7db61a7
[CLI] Fix help command (#1279)
ackintosh Oct 20, 2018
343e120
Allow all apis under a single endpoint to be hosted in one server (#1…
etherealjoy Oct 20, 2018
aad23e6
Add ref support inside fromProperty (#1235)
etherealjoy Oct 20, 2018
438aa52
Remove outdated comment (#1268)
wing328 Oct 21, 2018
d273c82
Don't generate unused ApiException class for java/webclient. (#1165)
moreginger Oct 21, 2018
a9f052c
Boolean conversion for maven plugin (#1252)
raghuraman1 Oct 21, 2018
a6641da
Add "servers" support to Ruby API client (#1280)
wing328 Oct 22, 2018
4afcdf7
Update migrated generators in the migration guide (#1283)
wing328 Oct 22, 2018
23dc418
update scala akka dependencies (#1294)
wing328 Oct 23, 2018
145f046
[TypeScript] typescript-axios: Added possibility to add custom axios …
Oct 23, 2018
4fd7e51
[General] fix InlineModelResolver's logic and use openapi-generator's…
fujigon Oct 23, 2018
6288436
Set isModel property (#1275)
Oct 23, 2018
8302c2d
[elm] Add support for `additionalProperties` (#1262)
eriktim Oct 23, 2018
62ccfd8
Add file post-processing support for Java generators (#1052)
wing328 Oct 23, 2018
18401dc
update petstore samples
wing328 Oct 23, 2018
fabefbb
Merge branch 'ctor-without-parameters' of https://github.com/Rizzen/o…
wing328 Oct 23, 2018
63757d7
Merge branch 'Rizzen-ctor-without-parameters'
wing328 Oct 23, 2018
dc5ebf4
Add support for using Spring HATEOAS to add links in the spring gener…
mwoodland Oct 23, 2018
732f905
[Java][jaxrs-resteasy] add @Valid when bean validation is enabled (#1…
Zomzog Oct 23, 2018
ad76488
fix #1276 by adding colon (#1301)
ndjensen Oct 24, 2018
15d1e28
update samples and reenable ensure-up-to-date (#1304)
wing328 Oct 24, 2018
daec2fa
Update test spec to use "localhost" instead (#1300)
wing328 Oct 24, 2018
ade757c
For erlang-server. add two options: packageName and openAPISpecName …
feihongmeilian Oct 24, 2018
b7bfbdd
update python samples and comment out flake test (#1308)
wing328 Oct 24, 2018
f3fda86
[Java][Spring] Add bean vaildation for email datatype (#1115)
phstudy Oct 25, 2018
19adaa6
update documentation
wing328 Oct 25, 2018
b82042a
[Rust] Client library choice between hyper and reqwest (#1258)
bcourtine Oct 26, 2018
def61a2
[Golang][client] fix response decode error handling (#1291)
grokify Oct 26, 2018
23d2176
[elm] Add flag to prefix custom type variants (#1288)
eriktim Oct 26, 2018
0ead284
fix duplicate call in JS (#1270)
wing328 Oct 26, 2018
695203b
update documentation
wing328 Oct 26, 2018
947b0d9
Fix angular 7 compile problem (#1297)
topce Oct 27, 2018
2e7b8f7
removed unused import to fix build (#1326)
deki Oct 27, 2018
22f4f93
Generator erlang-proper (#1102)
jfacorro Oct 27, 2018
4c8da84
test jdk10, fix javadoc issue (#1335)
wing328 Oct 27, 2018
1485814
fix maven repo for openapi-generator-cli (#1333)
adamdecaf Oct 28, 2018
f5b8127
Fix W605 Warning and reenable flake8 (#1334)
micw523 Oct 28, 2018
76701f4
[cpp rest-sdk] Constness (#1295)
whoan Oct 28, 2018
3bdec0c
Add group parameter support to PHP client (#1337)
wing328 Oct 29, 2018
dee7507
update erlang technical committee, template creator (#1344)
wing328 Oct 30, 2018
21bee02
various update in readme (#1351)
wing328 Oct 31, 2018
6dd8808
update CXF and Jackson to latest version (#1343)
deki Oct 31, 2018
59ee749
3.3.2 release (#1353)
wing328 Oct 31, 2018
9b29b38
Prepare v3.3.3-SNAPSHOT (#1355)
wing328 Nov 1, 2018
7820af8
Fix defaultValue for String schama in Dart (#1342)
ysawa Nov 1, 2018
7f5b38a
[cpp rest-sdk]Fix precision (#1293)
whoan Nov 1, 2018
e468b35
Improve ensure-up-to-date script (#1362)
wing328 Nov 2, 2018
3de731d
[cpp-pistache]Add support for map (#1359)
etherealjoy Nov 3, 2018
f0e1e4b
Update gradle plugin's Readme.md (#1356)
zihotki Nov 3, 2018
fc15716
Added hint for npm package wrapper to README (#1350)
kay-schecker Nov 3, 2018
bf8be3a
[Java][okhttp-gson] Add new ApiClient constructors for access token r…
Kiran-Sivakumar Nov 3, 2018
ffa80ca
Fixes bug #1339. Array and Map inner schema can be missing. In this c…
bcourtine Nov 3, 2018
f539604
feat: OpenApi-generation from within eclipse (#509) (#1332)
andreas-eternach Nov 4, 2018
c768836
Fix issue with Ruby client where strings from example properties are …
ndbroadbent Nov 4, 2018
95c1bd8
Add a link to an article about openapi-generator (#1370)
wing328 Nov 5, 2018
9720623
fix incorrect patternin aspnetcore (#1371)
wing328 Nov 5, 2018
d215a93
Allow package version to be passed on CLI (Rust fix) (#1286)
MF1-MS Nov 5, 2018
1e1436c
Rust server html (#1329)
bjgill Nov 5, 2018
1169dad
[Flask] Upgrade to flask-connexion 2.0.0 (#1382)
cbornet Nov 6, 2018
481acbc
update generator doc
wing328 Nov 6, 2018
d19f32f
JavaSpring: pojo: fix javadoc comment (#1384)
kpavlov Nov 7, 2018
889de8a
update spring samples
wing328 Nov 7, 2018
68727b8
Added tests and fix for issue #1392. Fix regex generated in Ruby cli…
ggershoni Nov 7, 2018
e98ee18
fix name sanitation when using kebab case filenaming (#1314)
smasala Nov 7, 2018
972be1c
Add tests for inline objects (#1331)
bjgill Nov 7, 2018
b163af5
fix java exception in apex codegen (#1395)
wing328 Nov 7, 2018
3fe303b
[python] Avoid creating unused ThreadPools (#1387)
wing328 Nov 8, 2018
f774cf6
Add file post-processing to Kotlin generators (#1400)
wing328 Nov 8, 2018
5b8dcf4
update python petstore samples
wing328 Nov 8, 2018
0b1f428
[rust-server] Re-instate ApiRequestParser (#1388)
bjgill Nov 9, 2018
78a8d26
Add file post-processing to PHP generators (#1402)
wing328 Nov 9, 2018
23cba9b
Fixes an issue where code generator for Java produces not compileable…
eivinhb Nov 9, 2018
b798306
Fixes double prefixing during model import (#1398)
etherealjoy Nov 9, 2018
accddd6
Add parcelizeModels cli option (#1289)
absimas Nov 9, 2018
69878c7
update generator doc
wing328 Nov 9, 2018
627a9dd
Fix swift4 1406 (#1407)
james-rant Nov 10, 2018
5c0a914
Sanitize Model Import (#1411)
etherealjoy Nov 10, 2018
652d17d
Remove duplicated imports (#1414)
wing328 Nov 11, 2018
6eadecb
Add tip about running online openapi-generator via Docker (#1415)
wing328 Nov 12, 2018
e3de55f
Add top level x-group-parameters support (#1405)
wing328 Nov 12, 2018
2364218
Fix return_type parameter examples in ruby-client (#1399)
meganemura Nov 12, 2018
7a660aa
fix npe when paramName is null (#1416)
wing328 Nov 12, 2018
d4924ca
Fix run-in-docker by disabling useSystemClassLoader (#1418)
wing328 Nov 12, 2018
ba8c33a
Change entrypoint to docker-entrypoint.sh (#1413)
ackintosh Nov 13, 2018
04ea8a0
Fix issue with C# generator when the model name is "File" (#1428)
wing328 Nov 14, 2018
06e94ee
fix(#1423): [JAVA] generating Map with jaxrs-reasteasy does not impor…
tnmtechnologies Nov 14, 2018
a9d8c2d
[Android] Fix compilation errors when there's no model defined (#1438)
wing328 Nov 14, 2018
6fc14d3
C# template refactor (#737)
jimschubert Nov 14, 2018
4fd7d74
test all generators with fake petstore spec 2.0, 3.0 (#1439)
wing328 Nov 14, 2018
cca1dd8
Add file post-processing to C++ client, server generators (#1440)
wing328 Nov 14, 2018
0adb210
prepare 3.3.3 release (#1447)
wing328 Nov 14, 2018
1589846
Fix #1424 [SWIFT4] Date Encoding Issues (#1442)
james-rant Nov 15, 2018
10198c4
force deployment
wing328 Nov 15, 2018
f8f7ffa
Revert "force deployment"
wing328 Nov 15, 2018
6fd581b
Merge branch 'master' of https://github.com/OpenAPITools/openapi-gene…
renepardon Nov 8, 2018
c3b3a5e
Merge branch 'master' of https://github.com/OpenAPITools/openapi-gene…
renepardon Nov 8, 2018
c630ff7
Add GraphQL express/apollo server generator
renepardon Nov 13, 2018
6fb302a
Add GraphQL express/apollo server generator
renepardon Nov 13, 2018
6a4ca3a
add basic resolvers; adjust parameters/input types
renepardon Nov 14, 2018
119eac0
add basic resolvers; adjust parameters/input types
renepardon Nov 14, 2018
934b24f
small adjustments and improvements
renepardon Nov 14, 2018
5c13d9d
small adjustments and improvements
renepardon Nov 14, 2018
f9ab2f1
adjust logger config for GraphQL generators
renepardon Nov 15, 2018
bce5d38
adjust logger config for GraphQL generators
renepardon Nov 15, 2018
897365b
remove MaxPermSize form bash script as it will be removed from later …
renepardon Nov 15, 2018
0c1754c
remove MaxPermSize form bash script as it will be removed from later …
renepardon Nov 15, 2018
d53e34e
re-created samples for graphql config and server generators
renepardon Nov 15, 2018
98e2efe
re-created samples for graphql config and server generators
renepardon Nov 15, 2018
3cfaedb
re-added templates for graphql config generator
renepardon Nov 15, 2018
986341e
re-added templates for graphql config generator
renepardon Nov 15, 2018
523f4a5
add graphql-config-petstore bash script
renepardon Nov 15, 2018
1fd7d7e
add graphql-config-petstore bash script
renepardon Nov 15, 2018
906fe6e
add isNullable utility method
renepardon Nov 15, 2018
d51c887
add isNullable utility method
renepardon Nov 15, 2018
155377d
Merge remote-tracking branch 'origin/master' into graphql
renepardon Nov 15, 2018
918b4a4
Merge remote-tracking branch 'origin/master' into graphql
renepardon Nov 15, 2018
15e27b4
fix javadoc issues
renepardon Nov 15, 2018
30070eb
fix javadoc issues
renepardon Nov 15, 2018
ba88918
fix javadoc issues
useername Nov 15, 2018
40bff5c
fix javadoc issues
useername Nov 15, 2018
3375695
adjust licence headers
renepardon Nov 22, 2018
7524b4b
adjust licence headers
renepardon Nov 22, 2018
32d2502
Merge branch 'graphql' of github.com:renepardon/openapi-generator int…
renepardon Nov 22, 2018
bb78d1c
Merge branch 'graphql' of github.com:renepardon/openapi-generator int…
renepardon Nov 22, 2018
d576667
rename Generator to Codegen for GraphQL classes
renepardon Nov 22, 2018
a938ec5
a
renepardon Nov 22, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions bin/graphql-config-petstore.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/sh

SCRIPT="$0"
echo "# START SCRIPT: $SCRIPT"

while [ -h "$SCRIPT" ] ; do
ls=`ls -ld "$SCRIPT"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
SCRIPT="$link"
else
SCRIPT=`dirname "$SCRIPT"`/"$link"
fi
done

if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`dirname "$SCRIPT"`/..
APP_DIR=`cd "${APP_DIR}"; pwd`
fi

executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"

if [ ! -f "$executable" ]
then
mvn -B clean package
fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties $@"
ags="generate -t modules/openapi-generator/src/main/resources/graphql -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g graphql -o samples/config/petstore/graphql -DpackageName=petstore $@"

java $JAVA_OPTS -jar $executable $ags
42 changes: 42 additions & 0 deletions bin/openapi3/graphql-petstore-server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash

SCRIPT="$0"
echo "# START SCRIPT: $SCRIPT"

while [ -h "$SCRIPT" ] ; do
ls=`ls -ld "$SCRIPT"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
SCRIPT="$link"
else
SCRIPT=`dirname "$SCRIPT"`/"$link"
fi
done

# Make sure that the working directory is the root dir
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "${SCRIPT_DIR}/../"

if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`dirname "$SCRIPT"`/..
APP_DIR=`cd "${APP_DIR}"; pwd`
fi

# Make sure that we are regenerating the sample by removing any existing target directory
TARGET_DIR="$SCRIPT_DIR/../../samples/server/petstore/graphql-server"
if [ -d "$TARGET_DIR" ]; then
rm -rf $TARGET_DIR
fi

executable="$SCRIPT_DIR/../../modules/openapi-generator-cli/target/openapi-generator-cli.jar"

if [ ! -f "$executable" ]
then
mvn clean package
fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="generate -t $SCRIPT_DIR/../../modules/openapi-generator/src/main/resources/graphql-server -i $SCRIPT_DIR/../../modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g graphql-server -o $TARGET_DIR $@"

java $JAVA_OPTS -jar $executable $ags
Loading