William Cheng
999f472e4b
Refactor default and example values in Java generators ( #1045 )
...
* fix default, example for java okhttp
* update java feign samples
* update samples, doc
* add new doc for dart-jaguar
* update model template
* update jaxrs spec model
* update resteasy sample
* update java samples
2018-10-07 03:56:16 +08:00
Akihito Nakano
a1d242595e
Improve "allOf" support ( #1169 )
...
* Add test case which reproduces issue340
* Take the first $ref we find in the allOf-List
2018-10-05 23:28:35 +08:00
William Cheng
aa31e42ce7
improve go code format without gofmt ( #1173 )
2018-10-05 23:27:33 +08:00
raghuraman1
b0dfcf29b3
JAVA Spring <async>false</async> Pushing the improved fix ( #1179 )
...
* Pushing the improved fix
* reverting the unrelated change
* saving the revertal properly
2018-10-05 21:56:22 +08:00
mknoszlig
9939702f31
update outdated Vagrantfile. ( #1156 )
2018-10-05 12:45:59 +08:00
William Cheng
b4d835f683
rename perl environment variable ( #1172 )
2018-10-04 23:54:10 +08:00
William Cheng
06d31cfedb
Better format for Ruby tests ( #1166 )
...
* better format for ruby test
* update ruby petstore
2018-10-04 23:53:46 +08:00
Steven Masala
3e3b03f93b
FIX: remove special quotation marks from filename generation. ( #1157 )
...
* remove left|right point double angle quotation marks
* move to DefaultCodeGen and update TypeScriptAngularClientCodegen to reflect new clean function so that the filename AND imports are added correctly
* rename to a more accurate name :)
* shippable fixes
* shippable javadoc fix
* replaced cleanModelFilename with sanitzeName
* remove DefaultCodegen changes
2018-10-04 23:52:00 +08:00
William Cheng
55f26d31d3
Update README with 3.4.x ( #1162 )
...
* update README with 3.4.x
* fix div
2018-10-03 23:53:50 +08:00
William Cheng
5490bb8e9c
update petstore
2018-10-03 18:36:12 +08:00
William Cheng
0f7557ca9d
update version
2018-10-03 18:29:29 +08:00
Steven Masala
1916025a53
Fix: allow colons in TS interface property names ( #1152 )
...
* Allow colons in interface property names: https://github.com/OpenAPITools/openapi-generator/issues/1080
* replace tabs with spaces
* add docs
* add example in doc
* update docs
* update docs
* remove language specific docs in DefaultCodegen
* Delete addPet-BodyParams.csv
* remove toPropertyName and update toVarName instead for TS
2018-10-03 15:56:58 +08:00
William Cheng
4e8844273b
Prepare 3.3.1-SNAPSHOT ( #1154 )
...
* update version
* update petstore samples
2018-10-02 09:40:27 +08:00
William Cheng
e22c7c1c8a
3.3.0 release ( #1153 )
...
* update using release_version_update
* comment out ensure up to date script
* update using release_version_update_docs
* remove current master
v3.3.0
2018-10-01 23:56:52 +08:00
William Cheng
2b87b309ad
Rename environment variable for Go to post-process file ( #1091 )
...
* renmae Go post process file env variable
* add back samples/client/petstore/c/libcurl.licence
* keep go samples up-to-date
* update go petstore samples
* update go samples without formatting
2018-10-01 21:24:32 +08:00
Erik Timmers
dcc0b5e772
[elm] Fix Byte encoder/decoder names ( #1151 )
2018-10-01 21:20:41 +08:00
William Cheng
3a5ec0a69d
Minor enhancements to the MySQL generator ( #1148 )
...
* minor enhancements to the mysql generator
* add ybelenko to the README
2018-10-01 16:46:33 +05:00
William Cheng
5357791337
Merge remote-tracking branch 'origin/master' into 4.0.x
2018-10-01 16:38:26 +08:00
Yuriy Belenko
e4b5f50515
MySQL Schema Generator #955 ( #1055 )
...
* [Mysql Schema] Add new generator
* [Mysql Schema] Fix default definition
* [Mysql Schema] Add defaultDatabaseName option
* [Mysql Schema] Add jsonDataTypeEnabled option
* [Mysql Schema] Add samples
2018-10-01 15:59:18 +08:00
William Cheng
755dfe53de
Better handling of different types in Elm generator ( #1100 )
...
* better handling of different types in elm generator
* [elm] Fix toString for special cases
2018-10-01 15:27:10 +08:00
kemokemo
2040050e55
[Golang][go-gin-server] Fixed issue 1122 with workaround ( #1141 )
...
[Golang][go-gin-server] Fix path parameter naming
2018-10-01 15:25:14 +08:00
William Cheng
cbc84254c3
rename scala post proessing env variable ( #1143 )
2018-09-29 21:39:37 +08:00
Antonio Bellezza
8b47984e3c
[Scala-Akka] Generate default values for optional model fields ( #1119 )
...
* Generate default values for optional model fields in scala-akka
Fix #1118
* Updated akka-client petstore with defaults for optional model fields
* update petstore sample with scalafmt
2018-09-29 21:21:06 +08:00
Erik Timmers
345b7ec7e5
[elm] Major refactoring; add discriminator support ( #1104 )
...
* Use the same name for all exposed encoder & decoders;
* Improve imports (limit exposures);
* Add support for OAS3 discriminators;
* Distinct between 0.18 & latest mustache files.
2018-09-29 12:13:04 +02:00
William Cheng
cbddb08468
Add post processing to files generated by Haskell generators ( #968 )
...
* add hfmt support (without updating the sample)
* update haskell httpclient samples with hfmt
* add code format option to haskell servant, minor bug fixes
* update code samples with hfmt
* update samples using stylish-haskell
* rename env variable
* update haskell samples with stylish-haskell
* regenerate haskell samples without stylish-haskell
* regenerate haskell servant sample
* update example-app & tests-integration for OAS2 code
2018-09-29 17:21:03 +08:00
William Cheng
f1f7bdd23f
Add nullable support to Python client ( #1073 )
...
* add nullable support to python client
* update PR template
2018-09-29 17:01:13 +08:00
Anand Shah
3a71e59e00
fix optional import ( #1083 )
2018-09-29 16:57:28 +08:00
William Cheng
da8cf01dfa
comment out ts node test ( #1142 )
2018-09-29 16:38:52 +08:00
William Cheng
e0cbf46041
Add post processing to files generated by TS generators ( #1063 )
...
* add file post proess to TS generators
* update ts node petstore with prettier
* update base on feedback
2018-09-29 16:35:24 +08:00
Yuen-Kuei Hsueh
8e57e0d44f
fix top-level enum class checking ( #1120 )
2018-09-28 22:04:41 +08:00
William Cheng
bd71e629a3
Add a link to an article about openap-generator ( #1121 )
2018-09-26 20:41:12 +08:00
Adam Drakeford
5aad02ed90
Fix for optional and default types ( #1107 )
2018-09-26 11:48:15 +01:00
William Cheng
70e6e119d1
update dependency ( #1116 )
2018-09-26 17:30:30 +08:00
William Cheng
4775c630aa
Add myworkout to the company list ( #1111 )
2018-09-26 11:53:55 +08:00
William Cheng
cd8bf10b74
rename dart env variable for post processing file ( #1101 )
2018-09-25 17:23:02 +08:00
Jaumard
df61cd9cb3
fix model generator for snake case open api definition ( #1076 )
2018-09-25 17:22:19 +08:00
William Cheng
e3b26372cd
Rename Env variable for Elm post process file ( #1094 )
2018-09-25 09:29:12 +02:00
William Cheng
8fb3b707a1
Add post processing to files generated by Python generators ( #1072 )
...
* add post process file to python generators
* update python samples with yapf
* revert sample change
2018-09-22 11:50:17 +08:00
kemokemo
14de289fc1
[Go] Add a generator for the gin framework ( #1048 )
...
* copy from go-server and add go-gin-server generator
* change the templates for the gin
* fix warnings of the golint tool
* fix the path of script
* add samples
* delete unnecessary comments (#1048 )
* make the help message more appropriate (#1048 )
* fix the link address format (#1048 )
* minor improvement
2018-09-22 00:45:32 +08:00
herojan
abb2690ef5
Kotlin spring server codegen improvements ( #1070 )
...
* If required and readonly, a field should be optional. This is to allow people to get and easily put back.
* Use list instead of array, use String instead of kotlin.String etc
* Update samples
* code review: fix annotation formatting
* code review: revert change to use listOf
2018-09-21 16:14:50 +01:00
William Cheng
ed1277348d
add logic to handle uuid in elm generator ( #1075 )
2018-09-21 21:56:44 +08:00
Elliot Lee
bde97b44b9
Update Usage instructions in README ( #1071 )
...
Fix #1040
2018-09-21 12:13:23 +08:00
Christophe Bornet
6dc618fa3f
Fix flask connexion support ( #1066 )
...
Use the dev-2.0 git branch of flask connexion to fix the generator.
This is not ideal but better than a generator not working at all.
Fix #323
2018-09-20 19:48:28 +08:00
Benjamin Gill
c0a6eaab85
Trim trailing '/' from basePathWithoutHost ( #967 )
...
* Trim trailing '/' from basePathWithoutHost
Given that the normal use is {{{basePathWithoutHost}}}{{{path}}}.
* Trim trailing '/' from contextPath
2018-09-20 19:33:31 +08:00
William Cheng
29e9f5bda0
add nullable to Ruby client ( #1059 )
2018-09-20 19:31:47 +08:00
William Cheng
cc6efe01c7
Add file post processing to Ruby generators ( #1062 )
...
* add post processing for Ruby file
* move ruby file post process to abstract ruby class
* remove line break
2018-09-20 19:31:31 +08:00
Stephane Carrez
3cacbcb965
#1043 - [Ada] Operation security scopes are ignored when generating the server ( #1044 )
...
* [Ada] Operation security scopes are ignored when generating the server (#1043 )
- Update fromOperation() to keep the operation required scopes for each auth
method and store that information in the x-scopes vendor extensions attribute
- Update postProcessOperationsWithModels() to process the operation required
scopes and build a list of authMethods which only contain the required scopes
for the operation and store these authMethods in the x-auth-scopes attribute.
- Update postProcessAuthMethod() to handle the logic of filtering and building
the operation authMethod (new instances are created because we must not
modify the global authMethod definitions)
- Update the Ada server templates to use the x-auth-scopes instead of authMethods
Add a URL prefix parameter for the Ada server instantiation
* Fix the Ada server template to use the x-auth-scopes for operation scopes
2018-09-20 19:31:11 +08:00
Kiran-Sivakumar
0e045bee1b
[okhttp-gson] Add support for OAuth access token retry ( #1058 )
...
* Add support for access token retry in okhttp-gson lib
* Update expected number of generated files in test
* Update samples
* Update security samples
* Fix default user-agent and update samples
2018-09-20 19:29:59 +08:00
William Cheng
1b2f3fbfb6
Fix alias to map response ( #1067 )
...
* fix response reference to map
* update samples
* add null check for openapi
2018-09-20 19:29:33 +08:00
William Cheng
340466066c
Add file post-processing to Swift 3.x, 4.x generators ( #1069 )
...
* update all swift samples
* format swift code with swiftformat
* minor format fix
* rename environment variable
2018-09-20 20:29:25 +09:00