William Cheng
68beec623f
update swift samples
2022-12-27 16:00:36 +08:00
jase
cfef750e18
[BUG][Swift] fix decimal encoding referencing not existing extension method "encodeToJSON" ( #14307 )
...
* feat: add decimal extension "encodeToJSON"
* feat: add decimal extension "encodeToJSON"
2022-12-25 11:02:07 +00:00
Makoto Aoyama
031f0dcee6
[swift5]Add validation rule and validator ( #14218 )
...
* Add validation sample
* Add validation template
* Add access control
* Add rule property for string for numeric
* Add access control
* Remove useless file
* Fix condition
* Add properies for test
* Rename
* Add additional property
* Run ./bin/utils/export_docs_generators.sh
* Add comments for validator
* Rename
* Run ./bin/generate-samples.sh bin/configs/swift*
2022-12-23 13:25:54 +00:00
William Cheng
95198dd34b
Test Java servers in github workflow ( #14318 )
...
* test java server in github workflow
* trigger build
* test with jdk 11
* rename
* Revert "trigger build"
This reverts commit b98761617145676a7d8f0d6ea39a08ddd5543017.
* trigger build
* Revert "trigger build"
This reverts commit 24cca9f1635012e8645d8102fbf58842b1a1bec8.
* update samples
2022-12-23 01:17:46 +08:00
William Cheng
625a7233e2
update ts samples
2022-12-23 01:17:31 +08:00
Bill Collins
71a7a822f4
Nullable subschemas ( #13850 )
...
* Add failing example of nullable subschema
* Do not generate new subschemas when nullable
* Generate client
* Update go example schema/test
2022-12-22 20:44:05 +08:00
Lukas Peleska
028b38d43b
typescript-nestjs / Ensure default headers remain unmodified ( #14312 )
...
When sending a request with a client generated by typescript-nestjs, the
default headers are modified. This occurs when headers such as "Accept"
are appended by the client.
The root of the issue is that a reference to the default headers is
stored instead of a clone.
2022-12-22 10:02:00 +01:00
William Cheng
34b343ff80
add links to blog posts about openapi-generator ( #14311 )
2022-12-21 22:46:22 +08:00
William Cheng
7b64fbb800
Merge branch 'master' of https://github.com/OpenAPITools/openapi-generator
2022-12-21 15:26:34 +08:00
William Cheng
e6702c5edc
update samples and docs
2022-12-21 15:25:09 +08:00
Lisa Burns
02d4852f26
Enable access token refresh ( #14251 )
...
* Enable the ruby client to support refreshing access tokens
- The client can now be configured with an access token getter proc
- The proc overrides the the static access token if it is set
* Run generators
2022-12-21 15:19:51 +08:00
hahny93
851ddecda3
Update Java/Feign api.mustache to accept its own convinience Map Class ( #14008 )
...
* Update Java/Feign api.mustache to accept convinience Map
Hi, I just saw, that the generated Map Class is never used outside of tests, but it would be the perfect fit for the changed mehods, as its use-case is exactly the same.
Also a useful change to prevent problems with Collection types and their generics parameters (f.e. Map<x, y>). See: https://stackoverflow.com/questions/62823341/openapi-generator-maven-plugin-breaks-old-feign-with-querymap
* PR checklist
Steps as requested per checklist: done.
2022-12-21 14:44:03 +08:00
Justin Black
45b1f91807
[python] Fixes Response TypeError ( #14299 )
...
* Fix and sample regen
* Response with only header added, sample regnerated
2022-12-20 12:42:10 -08:00
cachescrubber
5300bff6d9
[Java][Spring] Upgrade Spring Cloud dependencies ( #14285 )
...
* Upgrade to Spring Boot 2.7.6/3.0.0
* generate samples
2022-12-20 22:02:03 +08:00
Kuzma
82971ccd48
[Typescript] Change btoa to native code ( #14258 )
...
* Change btoa to native code
* update samples
2022-12-19 22:49:56 +01:00
cachescrubber
c45814a7ea
[Java][Spring] Upgrade Dependencies (2022-12) ( #14283 )
...
* Upgrade to the latest Spring Boot / Springdoc and Swagger Ui dependencies
* Generate samples
2022-12-19 17:41:38 +08:00
Maxime Dufour
9450984af8
[Java][Client] Generate servers for okhttp-gson ( #14179 )
...
* [Java][Client] Generate servers for okhttp-gson
* Update sample tests
2022-12-17 21:58:47 +08:00
William Cheng
344c49dd51
update Newtonsoft.Json to 13.0.2 ( #14277 )
2022-12-17 21:24:17 +08:00
devhl-labs
ab59e68f1e
fixed ( #14274 )
2022-12-17 16:16:13 +08:00
William Cheng
0cf5ed619d
Add a new Python client generator - python-nextgen ( #14157 )
...
* add python-nextgen generator
* remove client_side_validation from model
* remove configuraiton import from models
* add inheritance support
* update test requirements, tox
* add typings, pydanic to models
* add test model
* minor improvements
* add enum support
* add typing for parameters, remove validations
* add oneof, anyof support
* fix default value
* fix deserialization, api tests passed
* private variable naming, update tests, all tests passed
* remove six
* remove nose
* update doc
* remove sortParamsByRequiredFlag option
* add parameter validation
* add validation tests
* simplify Field()
* remove previous required parameter validation
* improve parameter handling
* support discriminator mapping
* better typing discriminator mapping
* format test code
* fix tests
* fix oneOf from_dict, add test
* add set validation test
* fix nested oneof serialization, add tests
* add model import
* remove models. prefix
* remove import models
* remove model import from api
* simplify from_dict
* add typing for return
* skip pydantic import in return type
* fix tests, fix enum
* restore more enum schema tests
* uncomment enum integer test
* clean up getfullargspec import in model
* clean up getfullargspec import
* fix deserilizatoin for nested oneof
* minor fixes, add tests
* fix regular expression
* add aiohttp samples, add tests
* remove default content type to json
* update template
* fix select accept, content-type
* move tests
* move tests
* fix url query parameters
* fix list
* fix samples
* fix param pydantic, add list as reserved word
* fix auto-generated doc
* fix readme
* fix list, fix special variable name with var_
* fix Literal in python 3.7
* fix default configuration
* fix aiohttp tests
* set default api client instance
* deprecate get_default_copy method
* fix enum model
* fix enum serializatio/deserialization
* add github workflow support
* add regular expression validator
* add enum validator
* better model import
* fix file, remove x-py-import-models
* rename local var
* better model example
* fix regular expression warning, add special_name test, whitelist schema
* skip self import
* update samples
* various fixes
* add base64, json as reserved word
* add http signature support
* add http signature test
* add additioanl properties support in python client
* add decimal support
* use strictstr instead of constr
* fix test with virtualenv
* add nullable support
* add readonly support
* add model name caching
* fix circular reference import
* add onelook discriminator lookup
* add tests
* update samples
* fix locale
* Fix client legacy generator asyncio README code example
* test python-nextgen in circleci
* fix pom.xml
* update python to 3.7.15
* test with python 3.7.12
* various updates
* fix python legacy
2022-12-17 16:05:47 +08:00
Yohei Kitamura
6800905123
[ruby] Fix api_error.mustache to initialize message-only errors properly ( #14264 )
2022-12-17 15:58:04 +08:00
William Cheng
1cda5462f9
update resttemplate spring web to latest 5.x ( #14275 )
2022-12-17 15:53:51 +08:00
John Mitchell
2a33229158
Support for GSON Decoder in Java Feign Generator ( #14254 )
...
* Supporting Gson decoder in Feign
* Supporting Gson decoder in Feign
* Fixing test failures - and ensuring Jackson is used as the default if nothing selected (back compatible)
* Adding in sample files
* Updating docs
* Switching to echo server version
* Adding feign-gson to the github workflow
* Empty-Commit
2022-12-17 15:40:14 +08:00
William Cheng
081a6ef466
add back mavenLocal in gradle plugin build ( #14265 )
2022-12-16 14:54:19 +08:00
Vladimir Svoboda
d90c9a6f3b
Add support for Angular v15 ( #14231 )
...
* Add support for Angular v15
Support for:
- rxjs 7.5.5
- ngPackagr 15.0.2
- zonejs 0.11.5
- typescript >=4.8.2 and <4.10.0
Note that tsTickle is not added to the dependencies when generating for
Angular 15, as:
- it is not a real dependency
- tsTickle is compatible with any of the TypeScript versions that
Angular 15 supports.
* Generate samples for Angular v15
- typescript-angular-v15-provided-in-root
- typescript-angular-v15-query-param-object-format
* Drop sample typescript-angular-v15-query-param-object-format
* Fix typo
* Add tests for sample
Use credentials instead of api_key to avoid deprecation warnings when
initialising ConfigurationParameters.
* Update samples/client/petstore/typescript-angular-v15-provided-in-root/package.json
* Fix tests by removing context initialisation
Also updated the test dependencies.
Co-authored-by: Esteban Gehring <esteban.gehring@gmail.com>
2022-12-09 15:24:55 +01:00
Julian Anthes
a47b95a749
feat(typescript-axios): set name
in constructor ( #14230 )
...
* refactor: set `name` in constructor
* chore: update samples
2022-12-09 11:40:17 +01:00
devhl-labs
c3b9bd7459
[csharp-netcore] Adds ability to inherit api ( #13797 )
...
* refactor nrt annotation
* enable nrt by default in .net6.0+
* use shorter nrt annotation
* build samples
* removed debugging lines
* fixed model and operatoin constructors
* reverted a commented line for comparison
* upgraded to System.Text.Json
* build samples
* build samples
* deleted samples to remove old files
* bug fixes
* bug fixes
* added cumpulsory property to codegen
* build samples
* fixed bug
* fixed bug
* fixes
* removed bugged code that wasnt needed
* build samples
* restored sorting and default values for required params
* fixed bugs in comparison
* fixed sort comparators
* recreate tests
* build samples...again...
* removed debugging line breaks
* simplified constructor signature
* inject json options
* build samples...again...
* build samples
* add support for composed primitives
* build samples
* build all samples
* avoid reserved words
* restored a file
* multiple fixes
* bug fixes
* bug fixes
* api clients now transient, added EventHub
* bug fix
* bug fix
* added ability to inherit api
* added ability to inherit api
* bug fix
* added requiredAndNotNullable
* added custom serialization
* added request info to error handler
* added OrDefault for enum parsing
* fixed DateTime? deserialization
* added support for server override
* added IServiceCollection to host builder extensions
* improve cookie support
* bug fixes
* fixed spacing
* fixed content type header
* fixed spacing
* removed reference to newtonsoft
* bug fixes in deserialization
* resolved conflicts
* removed postProcessAllModels code now present in abstract
* added a comment with url to an issue
* removed unneeded code
* removed change that should be another pr
* build and update samples
* reduce number of files modified
* reduce number of files modified
* delete and build samples
* delete and build samples
* fixed property name issue
* fixed CodegenModel collection properties
* avoid a conflict
* avoid a conflict
* add a todo
* added todo
* fixed circular reference
* small changes
* synced with other branches
* commented some code for now
* copied samples from master
* changed mustache templates
* build samples
* fixed invalid property names
* rebuild samples
* rebuild samples
* fixed casing issue
* resolved conflicts
* fixed bug in resolving conflicts
* removed default api, users can handle that if required
* removed default api, users can handle that if required
* build samples......again....
* addressed comment
* addressed comment
* addressed comment
* addressed comment
* build samples
2022-12-09 18:01:54 +08:00
William Cheng
a57fb9e109
update certifi to newer version ( #14228 )
2022-12-09 10:48:49 +08:00
dependabot[bot]
c4b2c81c05
Bump express from 4.17.1 to 4.18.2 in /website ( #14205 )
...
Bumps [express](https://github.com/expressjs/express ) from 4.17.1 to 4.18.2.
- [Release notes](https://github.com/expressjs/express/releases )
- [Changelog](https://github.com/expressjs/express/blob/master/History.md )
- [Commits](https://github.com/expressjs/express/compare/4.17.1...4.18.2 )
---
updated-dependencies:
- dependency-name: express
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-08 21:36:48 +08:00
dependabot[bot]
5d7956293b
Bump qs from 6.5.2 to 6.5.3 in /website ( #14204 )
...
Bumps [qs](https://github.com/ljharb/qs ) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/ljharb/qs/releases )
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ljharb/qs/compare/v6.5.2...v6.5.3 )
---
updated-dependencies:
- dependency-name: qs
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-08 21:36:39 +08:00
William Cheng
11d31117a8
fix java apache client optional body, add tests ( #14227 )
2022-12-08 20:58:47 +08:00
William Cheng
1fad61e2f8
Fix response body in Java native client ( #14222 )
...
* fix response body in java native client
* add new files
* update samples
2022-12-08 17:29:53 +08:00
William Cheng
b8b25e8ae0
Fix query parameters encoding in Java apache-httpclient ( #14195 )
...
* fix query parameters encoding in java apache-httpclient
* rearrange tests
* add new files
2022-12-08 00:30:07 +08:00
teddy-s-song
1b344597bf
[typescript-axios] add temination condition for flattening url parameters ( #14018 )
2022-12-07 10:20:22 +01:00
Sorin Florea
fdf1ce6c51
Fix apache http client query parameters ( #14193 )
2022-12-07 13:57:00 +08:00
Dillen Meijboom
6686ba2dc7
Add support for style=deepObject with query parameters in the Rust generator ( #13381 )
...
* Add support for style deepObject in the Rust generator
* Add support for arrays in deepObject query parameters and fixed issue with strings
2022-12-07 00:15:36 +08:00
Tom Bärwinkel
f2321a61d3
Include response headers in the API type ( #13565 )
2022-12-06 23:48:29 +08:00
yannizhou05
d06ab43dd6
Update SharedTypeScriptTest.java ( #13956 )
2022-12-06 14:27:05 +08:00
Oleh Kurpiak
2524e8fb0a
[Java][WebClient] global blocking operations config ( #14076 )
...
* [Java][WebClient] global blocking operations config
* update samples
2022-12-06 13:30:47 +08:00
William Cheng
811e0de1be
replace spaces with tabs in go client ( #14189 )
2022-12-06 13:04:58 +08:00
Ian Cubbon
63629ad51c
[Go] File Download Fix Return Type ( #14046 )
...
* Changes manually cherry-picked (for the most part) from https://github.com/OpenAPITools/openapi-generator/pull/12685/files
* Examples updated post changes
* Missed a change in the mustache template
* Update examples after last fix
* Missed dereference for required files
* Update unit tests
* Missed another test case update
* `f := *f` isn't quite the same as `*f, err = ...`
2022-12-06 12:21:39 +08:00
William Cheng
cbbe243bde
update python fastapi dep to newer versions ( #14188 )
2022-12-06 12:12:11 +08:00
caption
f32bf510c0
update urllib3 1.26.4 to 1.26.5 ( #14183 )
2022-12-06 12:02:56 +08:00
Manon Grivot
ffaf173db1
Fixed typescript codegen pattern compiler ( #14180 )
...
Co-authored-by: Manon Grivot <manon.grivot@lyra-network.com>
2022-12-05 18:44:16 +01:00
Ahmed Fwela
4e387cad53
[dart-dio] Add r
before '{{MappingName}}' to handle special characters in discriminators ( #14167 )
...
* Add `r` before '{{MappingName}}' to handle special characters
* Update samples
* use propertyBaseName instead of propertyName
* update samples
2022-12-05 15:00:44 +08:00
William Cheng
0103d400c2
update java samples
2022-12-05 14:33:04 +08:00
Brendan Burns
d6e7f70cb4
Modify Java ApiException to have a more informative message. ( #14154 )
...
* Modify ApiException to have a more informative message.
* Address comments.
2022-12-05 14:16:50 +08:00
Glenn Olsson
94dccae82d
[typescript-fetch] Fix response type to be Response or undefined ( #13825 )
...
* Fix response type to be Response or undefined
Current generated code produces a `response` variable set to undefined, and TS does not like you changing the type of the variable later. Therefore, set the type of the variable to be `Response` or `undefined`
Solves OpenAPITools/openapi-generator#12007
* Update samples
2022-12-03 19:27:58 +01:00
William Cheng
22bd3e31dc
add Bump.sh as bronzer sponsor ( #14162 )
2022-12-02 17:12:40 +08:00
Andrei Matei
c62ebc377e
[Go] Add authentication methods only if referenced in input spec ( #14138 )
...
* Add conditions for auth methods
* Add extra auth method validations
* Regenerate example SDK
* Clean-up tests
* Fix indentation and go.sum
2022-12-01 15:29:59 +08:00