William Cheng
d4500b307f
Merge remote-tracking branch 'origin/master' into 4.2.x
2019-10-04 15:02:58 +08:00
Jon Schoning
cc1bfe5fef
[haskell-http-client] add dateTimeParseFormat cli option - overrides the format string used to parse a datetime ( #4037 )
...
This allows specifying a different formatString for parsing than for rendering, which is useful because padding widths are not supported in `parseTimeMSource`
2019-10-02 23:30:34 -05:00
Jon Schoning
2272743c1d
[haskell-http-client] disable unused import warning in Core.hs ( #4020 )
2019-10-01 22:49:16 -05:00
William Cheng
7dbda049f0
Better tests for string (number) ( #3953 )
...
* beter test for string (number)
* fix mapping
* fix mapping in csharp generators
2019-09-30 15:22:44 +08:00
William Cheng
3019b5a5e1
Merge remote-tracking branch 'origin/master' into 4.2.x
2019-09-22 14:18:07 +08:00
William Cheng
ea029b4029
update doc, samples ( #3875 )
2019-09-11 21:17:11 +08:00
William Cheng
3ebefccfa9
Prepare v4.1.2 release ( #3873 )
...
* update samples
* update date
2019-09-11 18:33:27 +08:00
Benjamin Simpson
239d68df36
[Java][okhttp-gson] fix failure to deserialize floats ( #3846 )
...
* fixed bug where nullApi.java would be generated. Instead, generated DefaultApi.java to match the default path /{pathParam}
* fix to bug #3157
* update samples
2019-09-07 12:36:19 +08:00
Quim Muntal
8f13b88ed9
Support custom git repository ( #3757 )
...
* add gitHost param to GeneratorSettings and related
* parameterize gitHost in READMEs
* parameterize gitHost in go.mod
* parameterize gitHost in git_push
* update petstore samples
* run ./bin/utils/export_docs_generators.sh
* run meta-codehen.sh
* Revert "run meta-codehen.sh"
This reverts commit d6d579f6159186531257cdfdd73b9caf9e9ffeba.
* Revert "run ./bin/utils/export_docs_generators.sh"
This reverts commit 1b81538198d4319fd1b4e97447303e3cc0e8dc99.
* Revert "update petstore samples"
This reverts commit f513add88396707f6991ae2e4920359583ec88f1.
* run ensure-up-to-date
2019-09-03 21:35:49 +08:00
William Cheng
e4b39ce95e
Test Haskell client in drone.io ( #3791 )
...
* test haskell in drone.io
* fix docker image
* trigger alert
* Revert "trigger alert"
This reverts commit 9637b5c6a770649fbde6c9e98954a7ac92181e81.
2019-08-29 12:37:04 +08:00
William Cheng
9182784955
Merge remote-tracking branch 'origin/master' into 4.2.x
2019-08-28 14:01:20 +08:00
Jon Schoning
45d70e1bf3
[haskell-http-client] bump deps to LTS 14.3 ( #3762 )
2019-08-28 01:37:04 +08:00
William Cheng
d0d545bbdd
Prepare 4.1.2 snapshot ( #3758 )
...
* update pom
* update samples
* update ts axios samples
2019-08-26 22:13:12 +08:00
Jérémie Bresson
286ddf38f7
Update to swagger-parser to 2.0.14-OpenAPITools.org-1 ( #3737 )
2019-08-24 10:40:05 +02:00
William Cheng
c3535cf9ca
Add test cases to cover different collection formats ( #3640 )
...
* add test cases to cover different collection format
* add space params to retrofit 1.x
* add space params to retrofit 2.x
* rename url to localVarUrl
* fix exception in haskell servant
2019-08-15 11:09:12 +08:00
William Cheng
01222268e8
update samples
2019-08-11 18:56:47 +08:00
William Cheng
5956569e7a
Prepare 4.1.1-SNAPSHOT ( #3603 )
...
* update pom
* update samples
* update pom
2019-08-10 09:41:08 +08:00
William Cheng
7e457f7e41
sync master
2019-06-03 00:32:13 +08:00
William Cheng
8d3a1a5add
Merge remote-tracking branch 'origin/master' into 4.1.x
2019-06-03 00:06:43 +08:00
Jérémie Bresson
dc81574f2b
Update version to 4.0.2-SNAPSHOT ( #3047 )
...
* Update version to 4.0.2-SNAPSHOT
* Update samples
* Change AppVeyor script (test of gradle sample)
* Fix release version bump script (gradle plugin, sample poms)
* Include sonatype snapshots in maven examples which reference 4.0.2-SNAPSHOT
2019-06-01 21:32:44 -04:00
William Cheng
24187b8186
update petstore samples
2019-05-15 00:10:03 +08:00
William Cheng
cbe39ba881
Set version to 4.0.1-SNAPSHOT ( #2882 )
2019-05-14 10:28:32 +02:00
Matthieu Berthomé
ee43cc1520
handle composed schemas in InlineModelResolver ( #2112 )
...
* handle composed schemas in InlineModelResolver
* fix unit test -> TestUtils.parseSpec
* update samples
* fix samples
* update samples
* update samples
* add new files
2019-05-08 10:19:15 +08:00
Vincent Devos
0ae43fcb7a
[Elixir] update to 1.6 version ( #2741 )
...
* [Elixir] update version / add test
* update samples (add missing 200 responses in petstore-with-fake-endpoints-models-for-testing.yaml)
* [Elixir] update to 1.6 version
* [Elixir] fix test petapi
2019-04-26 22:38:11 +08:00
Jérémie Bresson
d42b6d987a
Update TestNG version ( #2582 )
2019-04-03 10:32:54 +02:00
William Cheng
2e777c04d4
Better handling of operationId with slashes ( #2469 )
...
* better handling of operation id with slashes
* update smaples
2019-03-22 10:41:53 +08:00
Justin Black
b67318ef21
Adds spec additionalProperties + nullable examples ( #2405 )
...
* Adds v2 spec additionalproperties examples, adds v3 spec nulllable model example, updates samples
* Remaining samples updates
* Adds csharp generator update to handle models with multilevel parent types, which works for the AdditionalPropertiesObject model, samples updated
2019-03-20 15:31:28 +08:00
Jon Schoning
c9737cf97d
[haskell-http-client] add cli option customTestInstanceModule
( #2406 )
...
setting `customTestInstanceModule` will import typeclasses from the
specified module into tests/Instances.hs, to provide typeclass
instances for types not known by the generator
this property set using `--additional-properties`
example:
```
--additional-properties=customTestInstanceModule=CustomInstances
```
2019-03-15 07:34:46 -05:00
Jon Schoning
aa7ea8bdca
[haskell-http-client] tests - in Arbitrary instances, reduce the size for non-primitive fields to prevent infinite recursion. Add special handling for Maybe A.Value ( #2343 ) ( closes #2312 )
...
* [haskell-http-client] tests - in Arbitrary instances, reduce the size for non-primitive fields to prevent infinite recursion
* [haskell-http-client] tests - generate Nothing instead of (Just Null :: Maybe A.Value) to avoid roundtrip test errors
2019-03-11 12:30:24 -05:00
Shimin Guo
0cd5fb6dc2
[haskell-http-client] fix indentation in .cabal file ( #2306 )
2019-03-06 07:33:30 -06:00
Shimin Guo
0695cf99e6
[haskell-http-client] update katip version bound ( #2305 )
...
* haskell-http-client: update katip version bound
0.8.0.0 is needed due to the interface change in `mkHandleScribe`
* update petstore
2019-03-06 07:31:45 -06:00
Jon Schoning
c30a21ac3c
[haskell-http-client] Allow logger selection via cabal flags. Emit Consumes */* for requestBody when not specified
...
[haskell-http-client] Allow logger selection via cabal flags. Emit Consumes */* for requestBody when not specified
2019-02-28 13:04:50 -06:00
William Cheng
f2002b25da
[Python] remove default value from being fallback to example ( #2213 )
...
* remove example fallback
* reset test case
2019-02-22 20:44:27 +08:00
john lilley
f76dca84f5
Fix Bug 1433 decimal literal in C# maybe other languages ( #1436 )
...
* Trivial change to kick PR again
* Fix issue 1433 (default decimal literal broken for C#)
* Replace tab with space
* update samples
2019-02-10 15:28:40 +08:00
Justin Black
9ec594eec5
[Spec] adds XmlItem model and route for xml testing ( #1883 )
...
* Adds xmlitem model and route, rest-assured Api suffix fix, updates pytest and pytest-cov versions
* Adds python client sample files
* Adds samples update
* Adds rest-assured sample client update
* Adds sample updates in ensure-up-to-date
* Changes rest-assured files back to master version, removes fix for issue #13
* Updates samples
2019-01-26 17:26:38 +08:00
Justin Black
539ec23298
[python-client] Add model default values ( #1776 )
...
* Adds two models to the v2.0 spec, uses examples as defaults in python client
* Adds array default and type_holder_default and type_holder_example tests
* Re-generated python security client with ./bin/security/python-petstore.sh
* Changes comment text, rebased master
* Updates client + server samples
* Adds missing samples updates
* Changes python client to look for true or false with booleans in toDefaultValue
* Changes boolean casting to use Boolean.valueOf
* Adds deserialization fix for python tests
* Changes Mock to namedtuple in python deserialization tests
* Actually remove unittest.mock
2019-01-09 11:18:35 +08:00
Jérémie Bresson
a7dfc650b6
Swagger parser update: 2.0.8-OpenAPITools.org-1 ( #1721 )
...
* Update Swagger-Parser Version
* Update samples
* surpress javadoc warning
* fix TS tests
* Set version to 2.0.8-OpenAPITools.org-1
2018-12-22 18:12:08 +08:00
William Cheng
fb15a4baf3
[core] Update parser and core to latest version ( #1569 )
...
* Update swagger-parser to 2.0.7
* Update swagger-core to 2.0.6
2018-12-17 06:56:46 +01:00
William Cheng
8c599ebf12
Add support for multiple inheritance ( #1664 )
...
* add all parent names
* clean up supportsInheritance
* fix npe
* fix allVars, fix test cases
* add more tests, remove comments
* update docker m2 cache dir, add more tests, fix mandatory
* update samples
* regenerate js spec files
* add logic to detect self reference
* add isSelfReference flag to codegen property
* add ruby tests for cat model
* remove debugging info
* fix JS allvars not have x-js-doctype
* update samples
* update js samples
2018-12-15 00:24:36 +08:00
William Cheng
774013c7e1
Better OpenAPI spec v3 support: allOf, anyOf, oneOf ( #1360 )
...
* add oneOf support to Ruby
* add anyOf support to ruby client
* add discriminator support to ruby client
* fix typo
* update samples, fix NPE
* better format in ruby generator
* fix test cases, disable mapping test
* fix update script, update samples
* add test, fix mapping
* update exit code
* reenabled discriminator test
* remove duplicated properties
* add test for duplicated properties
* update samples, add new spec
* fix ruby test cases
* fix hasMore after removing duplicates
* refactor method, comment out haskell client test
* fix hasMore and update samples
* fix parent detection
* fix discriminator check
* [haskell-http-client] need to use {{vars}}{{required}} instead of {{requiredVars}}
* remove deprecated methods in default codegen (#1031 )
* regenerate samples
* remove commented code
2018-12-07 00:30:20 +08:00
William Cheng
b226f52d13
Merge remote-tracking branch 'origin' into 4.0.x
2018-11-30 10:16:16 +08:00
William Cheng
46a4ffe64c
Skip model generation if it's a top-level map or array ( #1296 )
...
* update samples
* remove string boolean map spec
* add logic to skip array alias being generated as model
* fix alias to array
* remove unused ruby files
* remove unused ruby (oas3) files
* unalias response schema
* fix NPE when no model defined
* fix ruby openapi3 script
* update samples
* add global openapi, schemas for unaliasing
* minor code cleanup/refactoring using globalSchemas
* Revert "minor code cleanup/refactoring using globalSchemas"
This reverts commit 20a2bbc6fc4267a0e0768dcf5f15d4194ce9647b.
2018-11-26 22:01:53 +08:00
William Cheng
7db12aa4af
Merge remote-tracking branch 'origin' into 4.0.x
2018-11-24 17:48:17 +08:00
Jon Schoning
9be5b99266
[haskell-http-client] fix typename generation bug for array params; update deps
...
- fix build for example-app + tests-integration in Samples (due to change in Category)
- upgrade stack to 12.18
- fix typename generation bug for array params
2018-11-20 18:38:07 -06:00
William Cheng
2bcf5b2263
Merge remote-tracking branch 'origin/3.4.x' into 4.0.x
2018-11-15 17:49:44 +08:00
William Cheng
a87a544bf5
Merge remote-tracking branch 'origin/master' into 3.4.x
2018-11-15 17:11:01 +08:00
William Cheng
8d9542207a
Prepare 3.3.4 snapshot ( #1450 )
...
* change version to 3.3.4-snapshot
* updat readme
* update samples
2018-11-15 16:21:15 +08:00
William Cheng
c7349c7f88
Add top level x-group-parameters support ( #1405 )
...
* add top level x-group-parameters support
* update petstore samples
2018-11-12 14:25:32 +08:00
William Cheng
e6c97a1bc1
Merge remote-tracking branch 'origin/3.4.x' into 4.0.x
2018-11-08 18:18:12 +08:00
William Cheng
a186efed35
Merge remote-tracking branch 'origin/master' into 3.4.x
2018-11-08 18:17:29 +08:00