Richard Whitehouse
0c92b0c4a4
[Rust Server] Handle multiple response type ( #4441 )
...
- Ensure response IDs are unique, even if the first sentence is identical
- Handle responses where different responses produce a different type of data
- Use the correct mime type for plain text and byte streams
- Tidy up whitespace in client-mod.mustache
- Specify locale for String.format
- Add test for multiple response types
- Update samples
2019-12-24 15:09:22 +00:00
William Cheng
11c7007429
Prepare v4.2.3 ( #4663 )
...
* update version
* update doc
* update samples
2019-12-02 15:26:01 +08:00
William Cheng
f07b3e0521
Prepare 4.2.2-SNAPSHOT ( #4497 )
...
* update to 4.2.2-SNAPSHOT
* update doc
* update samples
* skip ocaml test
* update version
* fix version
2019-11-15 21:34:25 +08:00
Richard Whitehouse
de162f7f34
[Core, Rust Server, ASP.NET Core] Fix Codegen Operation Scope Consistency ( #3495 )
...
Fix Codegen Operation Scope Consistency
- Filter scopes based on operation
- Partially revert #1984 to not rely on custom attributes as to whether scopes exist
- Fix filtering global authentication schemes
2019-11-08 13:30:35 +00:00
William Cheng
47e2c0d027
update samples ( #4334 )
2019-10-31 13:31:49 +08:00
William Cheng
cf38c56aa6
Fix readonly with isReadOnly ( #4102 )
...
* fix readonly
* update samples
2019-10-09 15:16:22 +08:00
William Cheng
3019b5a5e1
Merge remote-tracking branch 'origin/master' into 4.2.x
2019-09-22 14:18:07 +08:00
Richard Whitehouse
4538db92a2
[Rust Server] Support parameters correctly in response headers ( #3669 )
...
[Rust Server] Compile responses with headers
* Add test for response with headers
* Update samples
2019-09-15 15:54:38 +01:00
Richard Whitehouse
9647416032
[Rust Server] Support types with additional properties ( #3666 )
...
[Rust Server] Support additional property types
* Add support for types which only contain additional properties
* Update samples
2019-09-15 14:27:40 +01: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
William Cheng
9182784955
Merge remote-tracking branch 'origin/master' into 4.2.x
2019-08-28 14:01:20 +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
Richard Whitehouse
1ce09788a9
[Rust Server] Support Bearer based Authentication ( #3606 )
...
Add handling case for Bearer Authentication on the client and update the samples
2019-08-17 12:30:47 +01:00
Richard Whitehouse
44fda895d2
[Rust Server] Frunk - LabelledGeneric - support ( #3552 )
...
Derive the LabelledGeneric trait on Swagger models. This allows
conversion between structurally similar types by using
https://docs.rs/frunk/0.2.2/frunk/#transmogrifying .
Exit if example fails to run
2019-08-17 11:03:38 +01: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
Richard Whitehouse
4478f42927
[Rust Server] Generate valid Rustdocs for lazy_static items ( #3556 )
...
Generate valid Rustdocs for lazy_static items and update samples
2019-08-06 18:44:51 +01:00
William Cheng
4df1e1928c
update rust server samples
2019-08-04 23:06:14 +08:00
Richard Whitehouse
83f17941b9
[Rust Server] Allow more than 32 configured paths ( #3494 )
2019-08-04 12:55:33 +01:00
Richard Whitehouse
6963e5eeb0
[Rust Server] Support multipart/form_data request bodies ( #2846 )
...
[Rust Server] Support multipart/form_data
- Support multipart/form_data in the Rust Server
- Add a new test API to test the change.
- Update the examples to match
2019-08-04 12:54:24 +01:00
wing328
9df5bdabc8
Merge remote-tracking branch 'origin/master' into 4.1.x
2019-07-02 22:48:09 +08:00
Jérémie Bresson
40a293dcda
Update to swagger-parser to 2.0.13-OpenAPITools.org-2 ( #3239 )
...
* Update to swagger-parser to 2.0.13-SNAPSHOT
* Update samples
* Update swagger-parser to 2.0.13-OpenAPITools.org-2
2019-07-02 16:37:41 +08:00
wing328
7534df4520
Merge remote-tracking branch 'origin/master' into 4.1.x
2019-06-26 16:01:23 +08:00
William Cheng
8e11fd9fe4
Prepare 4.0.3-SNAPSHOT ( #3185 )
...
* update version to 4.0.3-SNAPSHOT
* update readme
* update gradle, maven plugin
* update release schedule
* update samples
2019-06-20 18:50:49 +08:00
sylvainmoindron
7916f2f880
[kotlin-spring] add reactive behavior via Kotlin coroutines ( #2934 )
...
* kotlin spring : add reactivity via kotlin's coroutines
* add kotlin spring boot reactive samples
* bug : fix spring version and import for coroutines
* remove exception handler for reactive (webflux doesn't support it)
* add spring milestone repository to maven pom
* add reactive type for list in Api and ApiImpl methodes for mathching body responsive parameter
* fix baseType for ArraySchema
* regenerate samples
* updating documentation
2019-06-02 15:50:45 -04: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
Richard Whitehouse
31734c2717
[Rust Server] Support octet stream body param ( #2725 )
...
Add support for having a required octet stream as a body parameter.
2019-05-07 18:45:07 +08:00
William Cheng
c4563009c7
update rust server samples
2019-04-22 22:27:55 +08:00
William Cheng
8408e0235b
Revert "update rust samples"
...
This reverts commit f83d09fc01b2f5a37beff34c18d02d3d43a48370.
2019-04-22 22:26:33 +08:00
William Cheng
f83d09fc01
update rust samples
2019-04-22 21:57:31 +08:00
William Cheng
fab980cf79
update samples
2019-04-22 13:57:59 +08:00
Richard Whitehouse
f14bac8d7d
[Rust Server] Improve XML support ( #2504 )
...
- Restore XML namespace support
- Remove non snake case rust warning for xml wrap_in methods
- Add XML rust-server tests
- Fix wrapping XML arrays when a property of another object
- Run all tests, not just those for OpenAPI 2.0
- Force wrapping for rust-server
2019-04-22 12:05:40 +08:00
Jérémie Bresson
d42b6d987a
Update TestNG version ( #2582 )
2019-04-03 10:32:54 +02:00
Luis Alejandro Herrera León
ee69861a90
Added API Key auth to rust-server ( #2459 )
2019-04-01 15:41:36 +08:00
Luis Alejandro Herrera León
b4b8c28b2a
[rust-server] Added client documentation to rust-server ( #2159 )
...
* Added client documentation to rust-server
* Removed comments
* Removed go auth example
2019-02-18 18:02:40 +08:00
Luis Alejandro Herrera León
cefd29b6ff
[rust-server] Changed query parameters to be url encoded ( #2136 )
...
Based on this [issue](https://github.com/servo/rust-url/issues/416 ) the `utf8_percent_encode` doesn't percent encode `+` instead treats it as a space which is may cause a problem if the query parameters contain one. For example if we wanted to use a DateTime range in query parameters:
`{base_path}{path}?start=2019-02-12T00:00:00+00:00&end=2019-02-13T15:00:00+00:00`
These parameters may be decoded as:
```
start = 2019-02-12T00:00:00 00:00
end = 2019-02-13T15:00:00 00:00
```
To solve this I changed query parameters to be form-urlencoded using `url::form_urlencoded` based on what's done in [`rust` client generator](ea08106c80/modules/openapi-generator/src/main/resources/rust/request.rs (L106)
).
2019-02-15 13:18:08 +00: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
Akihito Nakano
7674d11d75
Fix missing RequestBody.required of inline request body ( #1847 )
...
* Add test case that reproduce the issue #1782
* Fix missing RequestBody.required
* Update samples
./bin/utils/ensure-up-to-date
* Run ensure-up-to-date script
./bin/utils/ensure-up-to-date
2019-01-14 12:28:21 +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
Mark Thebridge
4930f75dc7
Generic JSON body support in rust-server ( #1523 )
...
* Ensure that generic JSON bodies are correctly autogenerated
Generates valid Rust for an arbitrary JSON response body of type `object` with no other schema.
2018-12-04 16:51:59 +00:00