Lucas Heim
fbbfa12096
fix(typescript-nodejs): update package json dependencies ( #15493 )
...
* fix(typescript-nodejs): update package dependencies
* update samples
* Update modules/openapi-generator/src/main/resources/typescript-nestjs/package.mustache
Co-authored-by: Esteban Gehring <esteban.gehring@gmail.com>
* update samples
---------
Co-authored-by: William Cheng <wing328hk@gmail.com>
Co-authored-by: Esteban Gehring <esteban.gehring@gmail.com>
2023-11-02 12:06:12 +01:00
Kirill
832947c895
[typescript-fetch] Generate @deprecated comments for all deprecated APIs ( #16696 )
...
* add deprecated to typescript-fetch
* update samples
---------
Co-authored-by: Родин Кирилл Владимирович <kvrodin@mts.ru>
2023-11-02 09:38:23 +01:00
Ian Cubbon
83822d269a
[Bug][Go][Client] Downloaded File Does Not Exist When Returned to Caller ( #16954 )
...
* Keep the file that gets written out to by the client->decode function
* Update the echo-api test case to check the file returned exists
2023-11-02 11:46:15 +08:00
Akira Aratani
6425fbe3ed
[dart-dio] Add toString in Enum on json_serializer ( #15387 )
...
* Bump up the dart version.
* Add toString on enum.
* [dart-dio/json_serializable] Fix enum converter for non-string.
* [dart-dio/json_serializable] Bump up the dart version only json_serializable.
* [dart-dio/json_serializable] Rename enum value.
2023-11-02 11:15:23 +08:00
Mark Haley
a4267ee630
fix parameters_to_url_query returns booleans with upper letter ( #16947 )
...
* chore: add test to show python bool url params are not lower case
* fix: python parameters_to_url_query template to properly detect booleans
* fix: typo in test
* fix: typo in test
* chore: update test name to snake case and be more descriptive
2023-11-01 23:30:32 +08:00
William Cheng
8d76ab9511
[Go] Add multiple file upload support ( #16956 )
...
* add go echo api client github workflow
* add support for multi file upload in go client
* update go samples
2023-11-01 11:35:25 +08:00
Cameron Koegel
c2a4163bdb
[typescript-axios] Fix Explode Query Parameters ( #16898 )
...
* [typescript-axios] Fix Explode Query Parameters
* use `paramName` instead of `baseName`
* add config, workflow and tests for echo api
* generate echo api sample
* update test dependencies and add gitignore
* update space in package json and regenerate samples
* remove tsc in test package
* update samples
* undo samples
* regenerate samples
* regenerate samples again
2023-11-01 09:41:06 +08:00
dabdirb
739390a682
java exclude password field from toString ( #16942 )
2023-10-31 17:50:30 +08:00
Artur Neumann
6cd73eba2b
[PHP] check if json_decode was able to decode response ( #16879 )
...
* [PHP] check if json_decode was able to decode response
* use try/catch to check if json_decode failed
2023-10-31 15:52:33 +08:00
ふぁ
8827da8012
[python] fix typing for API responses ( #16802 )
...
* [python] remove _preload_content
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] remove _return_http_data_only
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] remove async_req
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] fix typing for API responses
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] update samples
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] fix AttributeError
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] remove _preload_content
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] fix response_type
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] fix typo
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] update simplify RESTClientObject
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] update split call_api into 4 functions
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] update samples
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] update improve stream
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] remove kwargs
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] update ApiResponse
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] add method for each return value
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] update test
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] update samples
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] update docs
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] add constantParams
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] fix ImportError
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] fix SyntaxError in RESTResponse
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] add ApiResponse model_config
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] fix when isBinary is str
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] update type
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] update samples
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] add rest with pydantic v1
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] update format
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] update format and type
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] add test
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] update type to pydantic strict type
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] remove leftover files
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] remove descriptions per field
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] add test
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] fix test
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] fix test
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] remove multiprocessing
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] update samples
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] add blank line to docstring
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] update docstring
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python] remove unwanted imports in rest
Signed-off-by: ふぁ <yuki@yuki0311.com>
---------
Signed-off-by: ふぁ <yuki@yuki0311.com>
2023-10-30 12:37:23 +08:00
William Cheng
3422ef1e64
update C# samples
2023-10-30 12:13:15 +08:00
devhl-labs
5a5ee163dc
fixed lambda to not strip line breaks ( #16930 )
2023-10-29 11:08:04 +08:00
Ian Cubbon
677b6e64c1
If parsing a boolean fails, return a ParsingError
instead of a straight 500 ( #16910 )
...
Add an example endpoint that covers Required, Default, and Not Required cases
2023-10-28 20:32:04 +08:00
Dawson Akins Conway
244a3b4c13
[ruby] Make File Downloads Threadsafe ( #16876 )
...
* Make Generated Ruby Code Threadsafe
* missed one
* Generate Samples
2023-10-28 20:31:18 +08:00
Artem
05b796aadc
Fix type hint for array in comments. ( #16926 )
2023-10-28 20:30:16 +08:00
Torgil Folger
58f058f3e9
[csharp] RemoteCertificateValidationCallback was not called on async methods; resolves #14608 ( #16886 )
...
* Update ApiClient.mustache
added missing line in config mapping
* update samples
---------
Co-authored-by: William Cheng <wing328hk@gmail.com>
2023-10-28 20:29:38 +08:00
Kisaragi
d671b83a5f
chore(deps,rust): requires reqwest 0.11 in blocking generated code ( #16927 )
...
* chore(deps,rust): requires reqwest to be 0.11 series even if generate in blocking mode
* chore: reflect change
* test: reflect blocking Form
2023-10-28 20:08:39 +08:00
Nathaniel Cook
fbd02554f5
fix(rust-server): remove redundant clone ( #16906 )
...
The generated example code would clone the context. However as context
is a generic type and is not declared to implement Clone, a clone of a
reference is just a copy of the reference and therefore unnecessary.
This change removes the redundant call and therefore avoids the `cargo
clippy` warning.
2023-10-27 11:06:34 +08:00
Cameron Koegel
eb5b781e20
[typescript-axios] Add Support for Operation Servers ( #16782 )
...
* [typescript-axios] Add Support for Operation Servers
* add missed import
* redo indexing to be safer
* generate samples
2023-10-27 10:41:03 +08:00
Šimon Lukašík
b13a1a05ef
[ruby|client] Fix unmarshalling errors of enums inside other objects ( #16900 )
...
* [ruby|client] Fix unmarshalling errors of enums inside other objects
Ruby|Client autogenerated model classes for Enums do not expose openapi_one_of
method. Instead they expose openapi_any_of method like:
# List of class defined in anyOf (OpenAPI v3)
def openapi_any_of
[
:String
]
end
Both types (objects and enums) do respond to build() method.
* Regenerate samples
2023-10-27 00:55:33 +08:00
Csaba Kozák
0aff1a6504
[kotlin][client] Fix compilation error when all auth method is mapped to null ( #16861 )
2023-10-24 07:38:41 +01:00
loicconan
cb85358aa5
[PHP-SYMFONY] Debug Date and DateTime Assert ( #16874 )
2023-10-23 22:26:27 +08:00
Ivan Giuliani
ae590c4712
[Ruby] Add support for populating a gem metadata ( #16872 )
...
* [Ruby] Add support for gems metadata
This defaults to an empty hash, but can be overridden with any custom
object by the callers via the `gemMetadata` property.
* Regenerate samples
The gemspecs files will now include a metadata field
2023-10-23 22:05:19 +08:00
Alexander Spivak
f16744a2bb
Update ktor client version for custom plugin support ( #16869 )
...
* Update ktor-client version to 2.3.5
* Update ktor-client version to 2.2.3
2023-10-23 22:03:54 +08:00
Ian Cubbon
bf9fae641e
[Go-Server] Add support for DateTime Query Parameters ( #16749 )
...
* Add support for DateTime objects in the Path, Query Params, and as a List
* Fix indentation
* Add an exaple that has dateTimes
Move the date parsing into a common util in the routers.go file.
* Fix compilation issue and regen
* Use the `RequiredError` to handle this case
* Only split on a "," and not an extra 'space' after the ",".
2023-10-22 21:07:13 +08:00
Thomas Trapanese
7347daec61
fix(nestjs) fix import in api module template (16670) ( #16671 )
...
* fix(nestjs) fix import in api module template (16670)
* fix(nestjs) fix import in api module template (16670)
---------
Co-authored-by: Thomas Trapanese <thomas.trapanese@maggioli.it>
2023-10-20 18:31:30 +02:00
Emanuele Saccomandi
77687a8ea5
[zapier] Zapier generator minor fix ( #16845 )
...
* fixed childMapping method
* updated samples
* fixed deps
2023-10-18 21:47:18 +08:00
Ben Madore
d6421411c9
chore: remove unused commons logging imports from java webclient ( #16839 )
...
Co-authored-by: Ben Madore <ben.madore@glassdoor.com>
2023-10-17 13:33:34 +08:00
Ian Cubbon
e0738a6e42
[Go-Server] Support for an endpoint returning a file to the client - #15206 ( #16748 )
...
* Support for an endpoint returning a file to a client.
* Spaces to tabs conversion
* Add an example endpoint for download a file
* Regenerate after merging main
2023-10-17 11:42:27 +08:00
Ian Cubbon
1dd9590064
[Go-server] - Support for Enums in the Path and Query ( #16781 )
...
* Add support for Enums to be part of the Path and Query
Supports optional Query Enums and Lists of Enums as well
Add an example endpoint that covers the added scenarios
Added an import mapping for the GoServerCodegen for "fmt"
when a model is an enum.
Expanded the Enum Model for the Go Server to have validation.
Copied this logic from the Go Client Enum Model.
* Fix identation of examples
* Pre-allocate the capacity of the slice of Enums to be
the correct size.
* Formatting and updated examples
* Empty-Commit
* Switch to using a map to store the valid enum values
* Fixed pointer derefs missed from previous change in PR
* More fixing of pointer to not pointer
* Create a map for validation and a list of enums for messaging
2023-10-17 11:35:39 +08:00
Josh Raker
d1fa38e286
[BUG][GO] Add support for all +json and +xml suffixed media types ( #16816 )
...
* Add support for all +json and +xml suffixed media types to generated Go client
* Export JsonCheck and XmlCheck and add external tests
* Remove client_test.mustache
2023-10-17 00:47:09 +08:00
DaxServer
8bb473316e
[PHP-Symfony] fix #15950 : Add float to deserialize ( #16835 )
...
* [PHP-Symfony] fix #15950 : Add float to deserialize
* Add test sample
* Add double
---------
Co-authored-by: DaxServer <daxserver@icloud.com>
2023-10-16 22:19:33 +08:00
martin-mfg
b6db4f73f1
[JAVA] fix: oneOf generates incorrect model for primitive types ( #16834 )
...
* generate samples
* try fix
* add new sample for fixed case
* also improve native library
Other libraries don't need fixes.
* add oneOf_twoPrimitives.yaml
* generate samples
* resolve comment
2023-10-16 22:18:52 +08:00
Josh Raker
c5d6884c63
[BUG][GO] Replace references to sw package with {{packageName}} in README template ( #16812 )
...
* Replace references to sw package with {{packageName}}
* Update samples
2023-10-15 10:37:27 +08:00
Kasper Rune Søgaard
1fc0cec75f
[CSHARP] Added support for nullable Enums in the ToJsonValue method ( #16801 )
...
* Fixed C# nullabled enums and attribute reusage for generichost
* Samples
2023-10-15 09:59:22 +08:00
Beppe Catanese
b4f9d8103f
[Postman Collection] Fix path parameter syntax ( #16827 )
...
* Format Postman request url
* Generate schema
2023-10-15 09:35:57 +08:00
Yuriy Belenko
3bc4f67333
[php-nextgen] Remove deprecated @category phpdoc ( #16829 )
...
* [php-nextgen] Remove deprecated @category phpdoc
@category tag is deprecated accordingly to:
* [PhpDocumentor](https://docs.phpdoc.org/guide/references/phpdoc/tags/category.html )
* Refresh samples
2023-10-15 09:35:02 +08:00
Gonzalo Gomez
571aefa3da
io/ioutil has been deprecated. ( #16822 )
...
Uses os.CreateTemp to create temp directory.
Uses io.Copy to avoid reading file into memory.
2023-10-14 10:04:06 +08:00
William Cheng
ba367e60e8
[go-server] Add tests, minor format change ( #16805 )
...
* add tests for #16787 , minor format change
* revert
* fix typo
* use pet instead of fake
* update samples
2023-10-12 19:23:02 +08:00
William Cheng
34265e52b1
add rule to skip xUnit1031 ( #16804 )
2023-10-12 15:56:27 +08:00
devhl-labs
2cfce7cd2d
version bump ( #16657 )
2023-10-11 16:16:06 +08:00
Robert Schweizer
384ff941ae
fix: Merge conflict from #16779 and #16777 ( #16784 )
2023-10-11 15:14:01 +08:00
Robert Schweizer
2b6b3b0883
[python] Do not pydantic-validate function args twice ( #16776 )
...
* refactor: Use newlines in _with_http_info call
This prevents too-long lines and matches the style that
black would enforce.
* fix: Do not pydantic-validate function args twice
Closes #15757
2023-10-11 13:57:52 +08:00
Emanuele Saccomandi
bbf9ccd0c0
fixed zapier objects array mapping ( #16780 )
2023-10-11 13:56:16 +08:00
Robert Schweizer
f180aa0eec
[python] Fix unnamed dicts with additional properties ( #16779 )
...
* test: Add two extra models for testing
* Fix unnamed dicts with additional properties
Closes #16630
2023-10-11 13:55:53 +08:00
Robert Schweizer
7af459396c
docs: Improve docstring in to_dict() method ( #16777 )
...
It was often confusing to me why this method is even there.
Also using more line breaks and matching how black would format this.
2023-10-11 13:51:37 +08:00
Ghufran Zahidi
1bbbb73690
fix ecdsa signing issue. ( #16772 )
2023-10-10 18:36:41 +08:00
Robert Schweizer
f03cbea971
feat: Add line breaks in Python API methods ( #16770 )
2023-10-10 18:32:52 +08:00
Robert Schweizer
9e07f85eb5
[python] Add tests and fix enum path parameters ( #16769 )
...
* test: Tests for enum params in path, query and header
* fix: Get enum ref values correctly in path parameters
Closes #16688
* fix java tests failure
---------
Co-authored-by: William Cheng <wing328hk@gmail.com>
2023-10-10 17:10:30 +08:00
Robert Danci
87f9d53c3a
[Java][client] Fix feign classcastexception when getting headers ( #16745 )
...
* Avoid ClassCastException when getting headers (the header values are Collection<String> and not List<String>)
Delete unused classes
* Remove feign10x
* Add unit test
Refactor to avoid creating the headers map when ApiResponse is not used
2023-10-10 14:53:32 +08:00