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

Major Jetbrains HTTP Client upgrade. Move to BETA #15779

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
d3d41a7
Add notes to requests for better readability
jlengrand Jun 7, 2023
1bdd0ce
Adds extra configs for jetbrains http client for testing
jlengrand Jun 7, 2023
5ddea32
Adding new sample data
jlengrand Jun 7, 2023
7e91e38
Changes
jlengrand Jun 7, 2023
c886b68
Merge branch 'master' into feat/jetbrains-http-client-upgrade-2
jlengrand Feb 28, 2024
90e5641
Setting up test infrastructure
jlengrand Feb 28, 2024
6394b7b
Adds body to requests.
jlengrand Feb 28, 2024
5037904
Fixing some bugs in map traversal
jlengrand Feb 29, 2024
85b627e
Adding secret file to gitignore
jlengrand Feb 29, 2024
12bfbc8
Adds github spec, for complex example.
jlengrand Mar 3, 2024
36d3ba0
Add support for custom variables in request body
jlengrand Mar 4, 2024
c5604ea
Add support for all basic Auth headers
jlengrand Mar 4, 2024
d0193c9
Not sure whaet happened with my api mustache file
jlengrand Mar 4, 2024
63d27a0
Add support for custom headers
jlengrand Mar 5, 2024
a68b8ac
Fixes empty lines issue
jlengrand Mar 5, 2024
fd03431
Adds support for Accept header
jlengrand Mar 5, 2024
ecbcb98
Adding many tests, deleting experiment files
jlengrand Mar 5, 2024
aa10498
Updates generator doc
jlengrand Mar 5, 2024
506db42
Completes README file with extra information
jlengrand Mar 5, 2024
5195a81
Runs generate-samples and export docs
jlengrand Mar 5, 2024
d4a8ec1
Merge branch 'master' into feat/jetbrains-http-client-upgrade-2
jlengrand Mar 5, 2024
30724ca
Running sample generation
jlengrand Mar 5, 2024
022b900
Adding missing files to samples
jlengrand Mar 5, 2024
4c36a78
Removing forgotten stdout statements
jlengrand Mar 5, 2024
4a87ba1
Ignore one test making the docker image generation fail
jlengrand Mar 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -282,3 +282,4 @@ samples/openapi3/client/petstore/go/privatekey.pem

## OCaml
samples/client/petstore/ocaml/_build/
/samples/client/jetbrains/adyen/checkout71/http/client/Apis/http-client.private.env.json
wing328 marked this conversation as resolved.
Show resolved Hide resolved
6 changes: 6 additions & 0 deletions bin/configs/jetbrains-http-client-adyen-checkout-new.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
generatorName: jetbrains-http-client
outputDir: samples/client/jetbrains/adyen/adyen/http/client
inputSpec: modules/openapi-generator/src/test/resources/3_0/jetbrains/CheckoutService-v71.yaml
templateDir: modules/openapi-generator/src/main/resources/jetbrains-http-client
additionalProperties:
hideGenerationTimestamp: "true"
6 changes: 6 additions & 0 deletions bin/configs/jetbrains-http-client-adyen-checkout-simple.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
generatorName: jetbrains-http-client
outputDir: samples/client/jetbrains/adyen/checkoutbasic/http/client
inputSpec: modules/openapi-generator/src/test/resources/3_0/jetbrains/CheckoutBasic.yaml
templateDir: modules/openapi-generator/src/main/resources/jetbrains-http-client
additionalProperties:
hideGenerationTimestamp: "true"
6 changes: 6 additions & 0 deletions bin/configs/jetbrains-http-client-dota-new.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
generatorName: jetbrains-http-client
outputDir: samples/client/opendota/jetbrains/http/client
inputSpec: modules/openapi-generator/src/test/resources/3_0/opendota.json
templateDir: modules/openapi-generator/src/main/resources/jetbrains-http-client
additionalProperties:
hideGenerationTimestamp: "true"
6 changes: 6 additions & 0 deletions bin/configs/jetbrains-http-client-github-new.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
generatorName: jetbrains-http-client
outputDir: samples/client/github/jetbrains/http/client
inputSpec: modules/openapi-generator/src/test/resources/3_0/jetbrains/github.json
templateDir: modules/openapi-generator/src/main/resources/jetbrains-http-client
additionalProperties:
hideGenerationTimestamp: "true"
10 changes: 2 additions & 8 deletions docs/generators/jetbrains-http-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl

| Option | Description | Values | Default |
| ------ | ----------- | ------ | ------- |
|allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false| |false|
|disallowAdditionalPropertiesIfNotPresent|If false, the 'additionalProperties' implementation (set to true by default) is compliant with the OAS and JSON schema specifications. If true (default), keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.|<dl><dt>**false**</dt><dd>The 'additionalProperties' implementation is compliant with the OAS and JSON schema specifications.</dd><dt>**true**</dt><dd>Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.</dd></dl>|true|
|ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true|
|enumUnknownDefaultCase|If the server adds new enum cases, that are unknown by an old spec/client, the client will fail to parse the network response.With this option enabled, each enum will have a new case, 'unknown_default_open_api', so that when the server sends an enum case that is not known by the client/spec, they can safely fallback to this case.|<dl><dt>**false**</dt><dd>No changes to the enum's are made, this is the default option.</dd><dt>**true**</dt><dd>With this option enabled, each enum will have a new case, 'unknown_default_open_api', so that when the enum case sent by the server is not known by the client/spec, can safely be decoded to this case.</dd></dl>|false|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C# have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false|
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true|
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true|
|bodyVariables|whether to convert body placeholders (i.e. VAR_1) into variables (i.e. {{VAR_1}})| |null|
|customHeaders|custom headers that can be set for each request. Can be used for unsupported features, for example auth methods like oauth.| |null|

## IMPORT MAPPING

Expand Down