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
William Cheng
02e85cc417
Prepare v3.3.3-SNAPSHOT ( #1355 )
...
* prepare 3.3.3-snapshot
* update petstore samples
2018-11-01 10:42:26 +08:00
William Cheng
aced89ff8b
Add group parameter support to PHP client ( #1337 )
...
* add group parameter support to php template
* more update for group parameter
* fix call to protect function
* fix missing $
* update based on feedback
* create fake endpoint to test group parameters
* sync fake petstore spec v2, v3
* fix php doc for group parameters
* update petstore samples
* update fake petstore spec v2
* update petstore samples
* fix spec and update samples
2018-10-29 15:42:32 +08:00
William Cheng
3482a0a993
Merge remote-tracking branch 'origin/master' into 3.4.x
2018-10-26 21:04:25 +08:00
William Cheng
4a47acce19
Merge remote-tracking branch 'origin/3.4.x' into 4.0.x
2018-10-26 18:41:58 +08:00
William Cheng
9422dea149
Merge remote-tracking branch 'origin/master' into 3.4.x
2018-10-26 18:40:37 +08:00
Dec12 | Fujigon
bb056ccf3d
[General] fix InlineModelResolver's logic and use openapi-generator's InlineModelResolver, so that nested "required" works correctly ( #1200 )
...
* fix InlineModelResolver's logis and use openapi-generator's InlineModelResolver, so that nested "required" works correctly
* add "required" to nested model schema
* update ensure-up-to-date to include openapi v3's jaxrs
* change test required field
* fix sample shell script, hide timestamp
* fix NPE
* move test case to petstore-with-fake-endpoints-models-for-testing.yaml
* fix jaxrs-jersey (oas3) example generate shell script to use petstore-with-fake-endpoints-models-for-testing.yaml
* add default value
* re-generate samples
2018-10-23 16:51:55 +08:00
William Cheng
9e3c7781bb
Merge remote-tracking branch 'origin/3.4.x' into 4.0.x
2018-10-16 16:08:11 +08:00
William Cheng
ffd72767af
Prepare 3.3.2 snapshot version ( #1249 )
...
* release_version_update
* update readme
* restore felix version
* update petstore samples
2018-10-16 10:53:12 +08:00
William Cheng
5490bb8e9c
update petstore
2018-10-03 18:36:12 +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
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
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
704c1b8893
update petstore samples
2018-08-23 18:52:34 +08:00
William Cheng
780ba49da1
Merge remote-tracking branch 'origin/3.3.x' into 4.0.x
2018-08-23 18:39:54 +08:00
William Cheng
3d06900e68
Prepare 3.2.3-SNAPSHOT version ( #870 )
2018-08-22 13:39:20 +02:00
William Cheng
0f30a052b2
Add an option to skip "form" model generation ( #700 )
...
* add option to generate all models
* update doc
* rename option to skipFormModel
* update petstore samples
* Update doc
* Update samples
2018-08-17 17:22:30 +08:00
Jérémie Bresson
79b993e6d5
Prepare version 3.2.2-SNAPSHOT ( #810 )
2018-08-14 13:38:18 +02:00
William Cheng
3746fae2ca
Merge remote-tracking branch 'origin/3.3.x' into 4.0.x
2018-08-07 16:04:17 +08:00
William Cheng
90a8b81728
Prepare 3.2.1-SNAPSHOT release ( #748 )
...
* prepare 3.2.1 SNAPSHOT release
* update doc to use 3.2.0 stable version
2018-08-07 01:31:37 +08:00
Jon Schoning
f6c21057e1
[haskell-http-client] regen samples ( #709 )
...
* [haskell-http-client] regen samples
* ensure the haskell-http-client samples are always up-to-date
2018-08-05 15:11:52 -05:00
Jon Schoning
79fafda012
[haskell-http-client] regen samples ( #492 )
2018-07-08 12:46:35 +08:00
Jim Schubert
27426f7b52
Cli generator name option, replaces 'language' options in CLI and Maven Plugin ( #57 )
2018-05-23 05:41:19 +02:00
Jon Schoning
34db79b9ba
[haskell-http-client] update dependency versions + readme ( #81 )
2018-05-17 18:40:58 +08:00
Jon Schoning
68780afe9d
[haskell-http-client] update samples (OAS3) ( #381 )
2018-05-09 10:31:28 +08:00
William Cheng
13f084e7b0
Fix dataTypeWithEnum for array of form parameters ( #354 )
...
* fix datatypewithenum for array of form parameters
* add test cases to cover dataTypeWithEnum, enumName in Ruby
2018-05-08 20:55:49 +08:00