Tino Fuhrmann
a0225deb9c
Updated samples
2023-01-11 14:09:55 +01:00
Tino Fuhrmann
02631143f2
Regenerated samples
2023-01-10 12:58:23 +01:00
Tino Fuhrmann
be67222c69
Added example for calling the API
2023-01-10 11:50:41 +01:00
Tino Fuhrmann
a5774db324
Updated README, refined wording
2023-01-10 11:50:40 +01:00
Tino Fuhrmann
cd5da90f7f
Regenerate samples
2023-01-10 11:50:37 +01:00
David Gamero
babfdff78a
[typescript] migrate url-parse to URL WHATGW in https.ts ( #14319 )
...
* migrate
* remove extra blank line
2023-01-04 07:35:23 +01:00
Antoine Rey
917892db7d
#14141 Add externalDocs to @Operation to the JavaSpring generator ( #14177 )
...
* #14141 Add externalDocs to @Operation to the JavaSpring generator
* #14141 Add externalDocs to @Operation to the JavaSpring generator : fix mustache template with #hasExternalDocs
* #14141 Add externalDocs to @Operation to the JavaSpring generator: fix indentation
* #14141 Add externalDocs to @Operation to the JavaSpring generator: fix carriage return
* #14141 Add externalDocs to @Operation to the JavaSpring generator: regenerate the spring-boot-oas3.yaml sample
* #14141 Add externalDocs to @Operation to the JavaSpring generator: generate-samples.sh
* #14141 Add externalDocs to @Operation to the JavaSpring generator: remove hasExternalDocs
* Fix ExternalDocumentation import generation and order
* #14141 Add externalDocs to @Operation to the JavaSpring generator: generate-samples.sh
2023-01-04 10:15:23 +08:00
Beppe Catanese
d0800c46e1
12551 [Go] Skipping marshalling of readonly fields ( #14335 )
...
* Skip toSerialize for readOnly fields
* Commit regenerated files
2023-01-02 23:35:54 +08:00
Ahmed Fwela
da8d984ea4
[dart-dio] Fix non legacy discriminator behavior ( #14291 )
...
* override createDiscriminator
* assign discriminator = null to remove duplicates
* added discriminatorValue extension
* added _defaults
* formatting
* samples
* use gitter instead
* remove comment
* updated samples
* revert formatting changes
* update samples
* change file permissions
* remove discriminator check for anyOf
* add comment to createDiscriminator
2023-01-02 18:59:33 +08:00
Oleh Kurpiak
dc99a450dd
[Java][Spring] fix @Operation content for array response ( #14201 )
2023-01-02 17:10:48 +08:00
William Cheng
dee0703269
remove empty spaces in blank lines in python nextgen client ( #14347 )
2023-01-02 00:59:24 +08:00
tom300z
2236cebe02
Bugfixes for python-nextgen ( #14334 )
...
* Fix swapped operators
Signed-off-by: Tom Hörberg <tom@hoerberg.de>
* add conversion to support non-string params
Signed-off-by: Tom Hörberg <tom@hoerberg.de>
* Provide better fix for nonstring url param values
Signed-off-by: Tom Hörberg <tom@hoerberg.de>
* Updated python-nextgen sample files
Signed-off-by: Tom Hörberg <tom@hoerberg.de>
Signed-off-by: Tom Hörberg <tom@hoerberg.de>
2023-01-02 00:06:25 +08:00
Oleh Kurpiak
7c587ce061
[Java] configurable Javax/Jakarta package ( #14310 )
2022-12-30 22:33:55 +08:00
0xNF
341a8535c7
[Dart] Fix array of array nullable and non-nullable value generation ( #13461 )
...
* [Dart] Added non-invalid defaults for non nullable array of arrays (#13460 )
* [Dart] Update samples
2022-12-28 00:01:08 +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
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
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
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
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
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
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
Justin Black
28ae689615
[python] Fixes Configuration w/ access_token at initialization ( #14153 )
...
* Fixes templates
* Samples regenerated
* Adds discard_unknown_keys back in, regenerates samples
2022-11-30 11:09:31 -08:00
Daniel Ziegler
9220e72674
[JavaSpring] fix missing description in @Operation annotation ( #13995 )
...
* fix: Java Spring missing description in operation annotation
* update samples
Co-authored-by: Daniel Ziegler <daniel.ziegler@senacor.com>
2022-11-25 10:56:28 +08:00
Justin Black
871eda2731
[python] exposes deserialized bodies for non-2XX responses ( #14095 )
...
* Template update and sample update
* Samples regenerated
* Adds verification test
* Template update
* Samples regen, fixes exception instantiation
2022-11-22 09:35:26 -08:00
Ian Cubbon
903ff0ba47
Trim any space when we format the error message sent back to the client. ( #14066 )
...
A trailing whitespace gets included if the error is not a RFC7807 model.
2022-11-20 22:35:21 +08:00
Vittorio Parrella
4487042f0d
Issue 11401 - report correctly the parameters with the deep object specification ( #13909 )
...
* issue #11401 - Go client generator doesn't support deepObject in query
* samples generation
* fix generation
* fix generation
* generated samples
# Conflicts:
# samples/client/petstore/go/go-petstore/model_200_response.go
# samples/client/petstore/go/go-petstore/model_additional_properties_any_type.go
# samples/client/petstore/go/go-petstore/model_client.go
* Fixed unit tests
* revert to http connection for tests
* fix model_simple generation
* Fix parameter encoding issue
* simplified routine
* fix test url
* adapted for latest master, necessary generation
* samples generation
* sync with new master, regenerate samples
* added api client test
2022-11-20 15:09:33 +08:00
Jeremy Audet
9039c83bc4
Migrate python-prior/tests_manual/ to pathlib ( #14043 )
...
This change has no functional impact. In my view, `pathlib` has a more
pleasant API than `os.path`. Incidentally, this slightly reduces line
count.
cc @spacether
2022-11-19 07:46:42 -08:00
Justin Black
1748d03fb9
[python] Issue 13997 fix pass in model instances to new ( #14067 )
...
* Template update
* Adds test file
* Samples regenerated
* Adds missing #
2022-11-18 15:04:26 -08:00
Jeremy Audet
92ecee8c27
Don't cast list to tuple in python-prior binding ( #14014 )
...
* Add test for python-prior type conversion error
In the spirit of test driven development, this test intentionally fails.
A following commit will fix the code to comply with the test.
See: https://github.com/OpenAPITools/openapi-generator/issues/14012
* Don't cast list to tuple in python-prior binding
Tweak the python-prior API bindings, so that they no longer cast lists
to tuples when making a POST request with a multipart/form-data
content-type. This fixes an interaction with
`urllib3.request_encode_body`, whose `fields` parameter expects tuples,
not lists.
cc @spacether
See: https://urllib3.readthedocs.io/en/stable/reference/urllib3.request.html
Fix: https://github.com/OpenAPITools/openapi-generator/issues/14012
2022-11-15 17:40:28 -08:00
William Cheng
2e44e78474
Update Ruby minimum version to 2.7 ( #14002 )
...
* update ruby minimum version to 2.7
* test ruby in cirleci
2022-11-13 12:14:21 +08:00
Mustansir Soni
4667b7e471
[ #13954 ] Allows args and arg as schema properties in python client ( #13955 )
...
* Add args to reserved words
* arg and args to _arg and _args in templates
* Corrections
* Test added
* Corrections
* Use arg and args as defined properties
* Removed unnecessary assertion
* Suggested change
2022-11-09 11:10:29 -08:00
William Cheng
6a7b8fcebe
[Go][client] better code format, regenerate go client tests ( #13940 )
...
* go client regenerate test
* replace 4-space with tabs, regenerate tests
2022-11-08 10:40:28 +08:00
Nathan Baulch
9f1fa0e440
Fix another batch of spelling typos ( #13915 )
...
* Fix typos
* Remove repeated words
* Minor grammar fixes
2022-11-07 21:30:24 +08:00
Julian Taylor
3dc8403e10
[Python] pass api_client configuration to model deserialize ( #13922 )
...
The if not passed the models create a new configuration object which
configures logging and determines cpu count every time.
This causes extreme performance issues when deserializing larger sets of
items.
See also
https://github.com/kubernetes-client/python/issues/1921
2022-11-07 09:05:14 +01:00
Justin Black
b35ea31e82
[python] fixes multipart/form-data bug ( #13926 )
...
* api_client template updated
* Samples regenerated
* Fixes tests
* Adds missing test file
* Adds test fix
2022-11-05 09:10:24 -07:00
Gustavo Bazan
d5f896fe20
[GO] fix identation for model_simple.mustache ( #13919 )
...
* [GO] fix identation for model_simple.mustache
This corrects the identation for recnet changes in #13843
* running the scripts
2022-11-05 22:47:09 +08:00
William Cheng
a020170ff3
[java][client] Fix config, add more samples for testing ( #13912 )
...
* fix config, add more samples for testing
* update samples
2022-11-04 18:17:34 +08:00
cachescrubber
5221682086
[Java][Client] Support annotationLibrary=none to remove swagger annotations ( #13869 )
...
* Support annotationLibrary=none in JavaClientCodegen
* Add example using annotationLibrary=swagger1
* Support annotationLibrary=none in libraries
* Fix missing curly brace.
* fix if statement condition
* Support {{#swagger1AnnotationLibrary}} in java/rest-assured
* Adopt JavaModelTest
* Generate docs
* Generate samples
* clean up java feign files
* clean up feign samples
* fix resttemplate, native
* fix resttemplate withXml
* fix webclient
* fix java-jersey2, vertix
* fix googleapi client
* fix rest assured
* fix rest assured
* update apache-httpclient
* fix jersey2 special character
* fix resteasy
* fix jersey2
* update samples
* fix jersey2, okhttp streaming
* update okhttp-gson
* update samples
Co-authored-by: William Cheng <wing328hk@gmail.com>
2022-11-04 17:07:46 +08:00
William Cheng
2947d147b4
Merge remote-tracking branch 'origin/master' into 6.3.x
2022-11-01 17:42:59 +08:00
William Cheng
b0ce532bdc
Prepare 6.2.1 release ( #13871 )
...
* prepare 6.2.1 release
* revert change
* fix maven plugin test
* update meta
2022-11-01 17:16:46 +08:00
cachescrubber
b54299fffa
Spring request mapping mode ( #13838 )
...
* Introduce RequestMappingMode option
* generate docs
* Add test case using interfaceOnly
* Generate Samples
* Add requestMappingMode: iface to bin/configs/spring-boot-oas3.yaml
* Restore #12250 : Move Feign Client url parameter under condition.
* Rename iface to api_interface.
2022-11-01 09:44:01 +08:00
sbilz
fe5601ab9b
Java jersey OAuth2 add support for public client #13827 ( #13828 )
2022-10-31 22:52:42 +08:00
Nick Ufer
a04b2623b0
[GO] fix: stops checking for nil for structs ( #13843 )
...
* [GO] fix: stops checking for nil for structs
* [GO] chore: regenerates samples
2022-10-31 22:50:02 +08:00
Beppe Catanese
1de28c8a72
Improve error message (rfc7807) ( #13680 )
...
* Add func formatErrorMessage
* Add unit test
* Commit generated code
* Fix indentation
* Using tabs
* Set error before model
* Commit generated code
* Fix tabs
* Commit generated code
* Fix tabs
* Fix tabs
* Commit generated code
2022-10-31 22:35:16 +08:00
Thibault Duperron
1b65ef38f5
Update dependecies for CVE ( #13834 )
...
* Update dependecies for CVE
fix #13772
* Fix schemas
2022-10-31 10:55:11 +08:00