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

Fix java rest client ApiClient template to properly assign ObjectMapper #1

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
7e1ebe6
Erlang server (#19722)
NelsonVides Oct 1, 2024
8ef3118
[rust][client][auth] token source option (#19647)
nicolas-vivot Oct 1, 2024
5f39bd2
update undertown to 2.3.17.FINAL (#19734)
wing328 Oct 1, 2024
2322a99
[Java][microprofile] enumUnknownDefaultCase true now returns correctl…
skstrifork Oct 1, 2024
60d0888
[typescript-fetch] support "x-enum-descriptions" (#19559)
RyosukeFukushima Oct 1, 2024
d7ac1e4
[OpenAPI 3.1] Avoid NPE when handling prefixItems (#19735)
wing328 Oct 1, 2024
2544fa2
[Ruby-client] Use secuirtyScheme Key for api_key (#19740)
maximevct Oct 1, 2024
c6eb9e0
fix_ruby_documentation_apikey_name (#19742)
maximevct Oct 1, 2024
c5060a2
feat(core): add `info.summary` to `additionalProperties` for `3.1` sp…
joscha Oct 2, 2024
1cdd7b7
add joscha to TS technical committee (#19745)
wing328 Oct 2, 2024
f409bf1
add oneOf-default-case option for swift5 (#19094)
Erokha Oct 2, 2024
90bc100
[swift5] rename unknownDefault to unknownDefaultOpenApi to match the …
4brunu Oct 2, 2024
168a1d5
[Typescript-Node] Mark deprecated model attributes (#19756)
gcatanese Oct 2, 2024
43ce2a8
[zapier] add response middleware (#19760)
a-wallen Oct 2, 2024
673cd15
[swift6] oneOf-default-case (#19754)
4brunu Oct 2, 2024
fad33df
[Swift6] better configuration (#19732)
4brunu Oct 2, 2024
2111713
Fix anyOf/oneOf normalization for 3.1 spec (#19758)
wing328 Oct 3, 2024
0371799
fix(core): relative path sorting (#19726)
joscha Oct 3, 2024
619e4d9
Harmonize python client dependency versions (#19694)
bachorp Oct 3, 2024
83f6d59
Erlang server validation bugfixes and capability extensions (#19750)
NelsonVides Oct 3, 2024
171b98e
[swift6] remove unused lenientTypeCast option
4brunu Oct 3, 2024
c84af35
Revert "[swift6] remove unused lenientTypeCast option"
4brunu Oct 3, 2024
6686c4d
[BUG] HandlebarsEngineAdapter.java failed to use custom FieldValueRes…
WouterBaeyens Oct 3, 2024
9f2bd31
[POWERSHELL] fix: keep array context when converting to json (#19535)
syd-besco Oct 3, 2024
d193050
Fix rust axum doc tests (#19538) (#19539)
faro-dr Oct 3, 2024
577483c
update rust axum samples
wing328 Oct 3, 2024
74100e4
[swift6] replace AnyCodable with JSONValue (#19763)
4brunu Oct 3, 2024
c48ef14
[swift] remove unused lenientTypeCast option (#19764)
4brunu Oct 3, 2024
d521cdd
Remove unnecessary files (#19769)
gcatanese Oct 3, 2024
2437d7f
[PHP-Client] Allow Content-Type merge-match+json for encoding (#19479)
frickelbruder Oct 3, 2024
c9a9ae0
[swift6] move infrastructure file inside infrastructure folder (#19765)
4brunu Oct 3, 2024
5f345c0
update php samples
wing328 Oct 3, 2024
06d914d
[swift6] useSPMFileStructure by default (#19772)
4brunu Oct 3, 2024
67942aa
[Typescript-Node] Mark deprecated endpoints (#19770)
gcatanese Oct 3, 2024
817da39
[Python] Restore required dev dependency + Adjust generated Github wo…
bachorp Oct 3, 2024
cfe6520
fix(avro-schema): fix NPE for `null` enum values (#19771)
joscha Oct 4, 2024
66cde8b
[swift6] make async await the default response library (#19776)
4brunu Oct 4, 2024
8e10dd7
[swift6] add samples that test upload files as data (#19780)
4brunu Oct 4, 2024
ad6c2dd
[normalizer] bug fixes (isNullTypeSchema, handling of primitive types…
wing328 Oct 5, 2024
5e7cf1c
By default should use static configuration class instance, otherwise …
DarkSide666 Oct 5, 2024
77eb192
update php samples
wing328 Oct 5, 2024
e5dee54
[R][client] Make enum parameters with `required: false` optional to r…
viapivov Oct 5, 2024
9791e6f
[Scala][Client]Add Http4s scala3 client codegen (#19658)
JennyLeahy Oct 5, 2024
fbebfeb
update doc
wing328 Oct 5, 2024
98468ab
minor improvemetns to new scala client generator (#19786)
wing328 Oct 5, 2024
899ddec
feat(avro)/refactor(core): unify `*_POST_PROCESS_FILE` behaviour and …
joscha Oct 5, 2024
2f73582
fix(core): single value enums (`const`) are not generated correctly i…
joscha Oct 6, 2024
ef8fe30
Fix java rest client's ApiClient constructors to make sure objectMapp…
CaptainAye Oct 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .ddev/web-build/Dockerfile.maven
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
RUN apt update && apt install -y maven
1 change: 1 addition & 0 deletions .github/workflows/samples-scala.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- 'samples/client/petstore/java/okhttp-gson'
- samples/client/petstore/scalaz
- samples/client/petstore/scala-pekko
- samples/client/petstore/scala-http4s
#- samples/client/petstore/scala-sttp # won't pass while the same tests in circleci pass
# servers
- samples/server/petstore/scala-lagom-server
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,7 @@ Here is a list of template creators:
* Scala (sttp): @chameleon82
* Scala (sttp4): @flsh86
* Scala (Pekko): @mickaelmagniez
* Scala (http4s): @JennyLeahy
* Swift: @tkqubo
* Swift 3: @hexelon
* Swift 4: @ehyche
Expand Down Expand Up @@ -1213,7 +1214,7 @@ If you want to join the committee, please kindly apply by sending an email to te
| Rust | @frol (2017/07) @farcaller (2017/08) @richardwhiuk (2019/07) @paladinzh (2020/05) @jacob-pro (2022/10) |
| Scala | @clasnake (2017/07), @shijinkui (2018/01), @ramzimaalej (2018/03), @chameleon82 (2020/03), @Bouillie (2020/04) @fish86 (2023/06) |
| Swift | @jgavris (2017/07) @ehyche (2017/08) @Edubits (2017/09) @jaz-ah (2017/09) @4brunu (2019/11) @dydus0x14 (2023/06) |
| TypeScript | @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @topce (2018/10) @akehir (2019/07) @petejohansonxo (2019/11) @amakhrov (2020/02) @davidgamero (2022/03) @mkusaka (2022/04) |
| TypeScript | @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @topce (2018/10) @akehir (2019/07) @petejohansonxo (2019/11) @amakhrov (2020/02) @davidgamero (2022/03) @mkusaka (2022/04) @joscha (2024/10) |
| Xojo | @Topheee (2023/04) |


Expand Down
11 changes: 11 additions & 0 deletions bin/configs/rust-reqwest-petstore-async-tokensource.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
generatorName: rust
outputDir: samples/client/petstore/rust/reqwest/petstore-async-tokensource
library: reqwest
inputSpec: modules/openapi-generator/src/test/resources/3_0/rust/petstore.yaml
templateDir: modules/openapi-generator/src/main/resources/rust
additionalProperties:
supportAsync: true
supportTokenSource: true
supportMultipleResponses: true
packageName: petstore-reqwest-async-tokensource
useSingleRequestParameter: true
6 changes: 6 additions & 0 deletions bin/configs/scala-http4s.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
generatorName: scala-http4s
outputDir: samples/client/petstore/scala-http4s
inputSpec: modules/openapi-generator/src/test/resources/3_0/scala-http4s/petstore.yaml
templateDir: modules/openapi-generator/src/main/resources/scala-http4s
additionalProperties:
artifactId: scala-http4s-client
1 change: 1 addition & 0 deletions bin/configs/swift6-alamofireLibrary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ templateDir: modules/openapi-generator/src/main/resources/swift6
generateAliasAsModel: true
useCustomDateWithoutTime: true
additionalProperties:
responseAs: ObjcBlock
podAuthors: ""
podSummary: PetstoreClient
projectName: PetstoreClient
Expand Down
3 changes: 2 additions & 1 deletion bin/configs/swift6-api-non-static-method.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ library: alamofire
inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml
templateDir: modules/openapi-generator/src/main/resources/swift6
additionalProperties:
responseAs: AsyncAwait,Combine,Result,PromiseKit,RxSwift
responseAs: AsyncAwait,Combine,Result,PromiseKit,RxSwift,ObjcBlock
apiStaticMethod: false
mapFileBinaryToData: true
podAuthors: ""
podSummary: PetstoreClient
projectName: PetstoreClient
Expand Down
1 change: 1 addition & 0 deletions bin/configs/swift6-combineDeferredLibrary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ templateDir: modules/openapi-generator/src/main/resources/swift6
generateAliasAsModel: true
additionalProperties:
responseAs: Combine
useSPMFileStructure: false
podAuthors: ""
podSummary: PetstoreClient
projectName: PetstoreClient
Expand Down
1 change: 1 addition & 0 deletions bin/configs/swift6-combineLibrary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ generateAliasAsModel: true
additionalProperties:
responseAs: Combine
combineDeferred: false
swiftPackagePath: "Sources/CombineLibrary"
podAuthors: ""
podSummary: PetstoreClient
projectName: PetstoreClient
Expand Down
1 change: 1 addition & 0 deletions bin/configs/swift6-objcCompatible.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-
templateDir: modules/openapi-generator/src/main/resources/swift6
generateAliasAsModel: true
additionalProperties:
responseAs: ObjcBlock
podAuthors: ""
podSummary: PetstoreClient
objcCompatible: true
Expand Down
2 changes: 2 additions & 0 deletions bin/configs/swift6-oneOf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/oneOf.yaml
templateDir: modules/openapi-generator/src/main/resources/swift6
generateAliasAsModel: true
additionalProperties:
responseAs: ObjcBlock
useSPMFileStructure: false
podAuthors: ""
podSummary: PetstoreClient
projectName: PetstoreClient
Expand Down
1 change: 1 addition & 0 deletions bin/configs/swift6-promisekitLibrary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-
templateDir: modules/openapi-generator/src/main/resources/swift6
generateAliasAsModel: true
additionalProperties:
useSPMFileStructure: false
responseAs: PromiseKit
podAuthors: ""
podSummary: PetstoreClient
Expand Down
1 change: 1 addition & 0 deletions bin/configs/swift6-resultLibrary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ templateDir: modules/openapi-generator/src/main/resources/swift6
generateAliasAsModel: true
additionalProperties:
responseAs: Result
useSPMFileStructure: false
podAuthors: ""
podSummary: PetstoreClient
sortParamsByRequiredFlag: false
Expand Down
1 change: 1 addition & 0 deletions bin/configs/swift6-rxswiftLibrary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ templateDir: modules/openapi-generator/src/main/resources/swift6
generateAliasAsModel: true
additionalProperties:
responseAs: RxSwift
useSPMFileStructure: false
podAuthors: ""
podSummary: PetstoreClient
projectName: PetstoreClient
Expand Down
2 changes: 2 additions & 0 deletions bin/configs/swift6-urlsessionLibrary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-
templateDir: modules/openapi-generator/src/main/resources/swift6
generateAliasAsModel: true
additionalProperties:
responseAs: ObjcBlock
podAuthors: ""
podSummary: PetstoreClient
projectName: PetstoreClient
podHomepage: https://github.com/openapitools/openapi-generator
useSPMFileStructure: true
mapFileBinaryToData: true
useClasses: true
swiftUseApiNamespace: true
1 change: 1 addition & 0 deletions bin/configs/swift6-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/validation.yaml
templateDir: modules/openapi-generator/src/main/resources/swift6
generateAliasAsModel: true
additionalProperties:
useSPMFileStructure: false
podAuthors: ""
podSummary: PetstoreClient
projectName: PetstoreClient
Expand Down
4 changes: 4 additions & 0 deletions bin/configs/typescript-consolidated-single-value-enum.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
generatorName: typescript
outputDir: samples/client/others/typescript/builds/enum-single-value
inputSpec: modules/openapi-generator/src/test/resources/3_1/enum-single-value.yaml
templateDir: modules/openapi-generator/src/main/resources/typescript
4 changes: 4 additions & 0 deletions bin/configs/typescript-node-3.0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
generatorName: typescript-node
outputDir: samples/client/petstore/typescript-node/3_0
inputSpec: modules/openapi-generator/src/test/resources/3_0/typescript-node/SampleProject.yaml
templateDir: modules/openapi-generator/src/main/resources/typescript-node
1 change: 1 addition & 0 deletions docs/file-post-processing.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Also refer to the relevant documentation for [CLI](./usage.md), [Maven Plugin](h
The following environment variables are supported by their respective generators:
<!-- query with: grep -Rn '_POST_PROCESS_FILE"' modules | grep -Eo '[^"]+_POST_PROCESS_FILE' | sort -u -->

* `AVRO_POST_PROCESS_FILE`
* `CPP_POST_PROCESS_FILE`
* `CSHARP_POST_PROCESS_FILE`
* `C_POST_PROCESS_FILE`
Expand Down
1 change: 1 addition & 0 deletions docs/generators.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ The following generators are available:
* [rust](generators/rust.md)
* [scala-akka](generators/scala-akka.md)
* [scala-gatling](generators/scala-gatling.md)
* [scala-http4s](generators/scala-http4s.md)
* [scala-pekko](generators/scala-pekko.md)
* [scala-sttp](generators/scala-sttp.md)
* [scala-sttp4 (beta)](generators/scala-sttp4.md)
Expand Down
1 change: 1 addition & 0 deletions docs/generators/rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|supportAsync|If set, generate async function call instead. This option is for 'reqwest' library only| |true|
|supportMiddleware|If set, add support for reqwest-middleware. This option is for 'reqwest' library only| |false|
|supportMultipleResponses|If set, return type wraps an enum of all possible 2xx schemas. This option is for 'reqwest' library only| |false|
|supportTokenSource|If set, add support for google-cloud-token. This option is for 'reqwest' library only and requires the 'supportAsync' option| |false|
|useSingleRequestParameter|Setting this property to true will generate functions with a single argument containing all API endpoint parameters instead of one argument per parameter.| |false|
|withAWSV4Signature|whether to include AWS v4 signature support| |false|

Expand Down
Loading