12694 Commits

Author SHA1 Message Date
Jorge Rodríguez Martín
fb059c259c
[BUG][JAVA][restTemplate] ApiClient is not compatible with spring-web 6 Observation API (#15421)
* ApiClient is not compatible with spring-web 6 Observation API. Field uri is never filled

* Update samples
2023-05-09 14:04:51 +08:00
William Cheng
3cf646cda8
[csharp-netcore] fix back slash in regex (#15441)
* fix back slash in regex (csharp-netcore)

* undo add pattern test

* update shasum
2023-05-09 13:52:46 +08:00
devhl-labs
7bc10b03d0
[csharp-netcore][generichost] Move deserialization to method (#15454)
* removed extra line break

* moved deserialization to method
2023-05-09 13:47:15 +08:00
Dan Čermák
ff9b38404e
Fix repository url in pyproject.toml (#15444)
The url had the repo id & user id in the wrong order
2023-05-09 01:29:34 +08:00
Tiffany Marrel
3685c0c1d6
[dart] cleanup documentation (#15344)
* [dart] fix documentation of API authorization in README files

fix hierarchy level + add internal links + align wording across generators

* [dart] fix anchor links in documentation

* [dart] address review comments

This reverts commit cff17aca and part of commit eecf1dd4
2023-05-09 01:27:51 +08:00
Ahmed Fwela
3d722c1083
[dart-dio] fix endpoints returning null (#15433)
* fix endpoints returning null

* add const back
2023-05-09 01:27:29 +08:00
Dan Čermák
5d602c628e
Add Python 3.11 to github-workflow.mustache (#15442) 2023-05-08 17:51:42 +08:00
Beppe Catanese
3d2ec72461
[JAVA] Okhttp-gson: blank line between annotations and method signature (#15430)
* Remove extra blank line

* Regenerate samples
2023-05-08 14:39:46 +08:00
William Cheng
b4eb7071e4
[python-nextgen] support constructor with position argument in oneOf/anyOf model (#15434)
* support position constructor

* update samples

* update test
2023-05-08 10:00:57 +08:00
Tomasz Prus
72cb03b865
[python-nextgen] fix typing for bytes with validations (#15437)
* [python-nextgen] fix typing for bytes with validations

* update samples
2023-05-08 10:00:29 +08:00
devhl-labs
c6b31a3e08
removed extra line break (#15438) 2023-05-08 09:54:34 +08:00
William Cheng
cc620d8ba2
fix incorrect mustache tag (#15424) 2023-05-05 16:15:53 +08:00
Tiago Silva
56495d1486
Python Allow clients to define TLS Server name when using (#15283)
This PR allows users to define custom SNI when using the python clients

Fixes https://github.com/OpenAPITools/openapi-generator/issues/15282
2023-05-05 16:11:57 +08:00
William Cheng
737cb362b0
add option, update doc (#15419) 2023-05-05 14:59:33 +08:00
William Cheng
7259d812bd
[csharp-netcore] Better handling of oneOf/anyOf with duplicated data type (#15377)
* better handling of oneOf/anyOf with duplicated data type

* update generichost template

* remove newline in eof

* bug fix (#15413)

---------

Co-authored-by: devhl-labs <shawnkanyer@gmail.com>
2023-05-05 14:25:45 +08:00
Jorge Rodríguez Martín
76c05b2991
Add property generateClientAsBean for config creation of ApiClient.java and XXXApi.java (#15416) 2023-05-05 14:18:44 +08:00
William Cheng
182240ea1d
[csharp-netcore] Better regular expression (#15378)
* do not escape regular expression in c#

* update samples

* better code format
2023-05-04 18:42:30 +08:00
William Cheng
6fa089adee
Add @deprecated to methods in python-nextgen (#15380)
* add @deprecated to methods in python-nextgen

* add deprecated as comment

* add deprecation warnings

* add warnings import

* remove import
2023-05-04 18:17:24 +08:00
William Cheng
bc6d30832b
add copyright, remove unused import (#15394) 2023-05-04 16:14:30 +08:00
William Cheng
a0b79d87f2
Minor improvement to the N4JS client generator (#15414)
* minor improvement to the N4JS client generator

* mark generator as beta
2023-05-04 16:13:10 +08:00
mmews-n4
db478c3452
Support language N4JS (2nd) (#15397)
* n4js initial commit

* incorporate feedback from user

* add tests

* fix media type in case of DELETE method

* fix media type

* some minor fixes

* options fix for booleans

* small fixes

* generated files by ./bin/utils/ensure-up-to-date

* remove String::toLowerCase due to de.thetaphi:forbiddenapis

* adjust test expectation

* fix test expectations

* fix test expectation

* add note to section 'Languages/Generators'

* remove file according to review

* replace tabs by spaces

* replace tabs by spaces (2)

* update two generated files

* remove test file

* move statement
2023-05-03 20:50:21 +08:00
William Cheng
aea7cef6a1
Revert "Support language N4JS (#15089)" (#15396)
This reverts commit a83470066e3fbfcaaca49eae4a60f0af9d52b889.
2023-05-03 15:43:07 +08:00
mmews-n4
a83470066e
Support language N4JS (#15089)
* n4js initial commit

* incorporate feedback from user

* add tests

* fix media type in case of DELETE method

* fix media type

* some minor fixes

* options fix for booleans

* small fixes

* generated files by ./bin/utils/ensure-up-to-date

* remove String::toLowerCase due to de.thetaphi:forbiddenapis

* adjust test expectation

* fix test expectations

* fix test expectation

* add note to section 'Languages/Generators'

* remove file according to review
2023-05-03 15:23:45 +08:00
Robert Schweizer
0a4648f7a0
fix(python-nextgen): Date query params typo (#15395) 2023-05-03 15:17:51 +08:00
Christopher Kobusch
45a3fe05f5
Add Xojo client generator (#15194)
* Add Xojo client

* Add Xojo client generator

* Add Xojo client generator

* hide generation timestamp for xojo samples

---------

Co-authored-by: William Cheng <wing328hk@gmail.com>
2023-05-03 14:06:40 +08:00
Beppe Catanese
61aadb32bd
[GO] Add go.mod in go-gin-server generator (#15339)
* Add go.mod

* Add test

* Generate import path

* Update samples
2023-05-03 11:45:24 +08:00
William Cheng
92bcdea2fa
Revert "Remove CXF imports and dependency (#15364)" (#15392)
This reverts commit 6686fb87b9901ee0eeff9ef6e91b1e9c51704569.
2023-05-03 11:00:12 +08:00
William Cheng
021d3a311a
[python-nextgen] Add ApiResponse object (#15367)
* add ApiResponse object

* fix tests

* improve api response

* add back _preload_content, add tests
2023-05-03 09:45:54 +08:00
vanwobe
8a9afabb61
https://github.com/OpenAPITools/openapi-generator/issues/14599 (#15388)
Co-authored-by: vanwobe <bert.vanwolleghem@ext.ec.europa.eu>
2023-05-03 09:30:11 +08:00
Michel Wohlert
502a8a8ebf
Fix request parameter encode call (#15313)
Co-authored-by: Wohlert, Michel <michel.wohlert@karlstorz.com>
2023-05-03 01:10:32 +08:00
Steffen Nießing
6686fb87b9
Remove CXF imports and dependency (#15364) 2023-05-03 01:09:16 +08:00
Peter Leibiger
e356b770d2
[dart][dart-dio] Fix property deprecation and add parameter deprecation (#15374)
Addresses problems in #13818
2023-05-02 19:42:06 +08:00
Noor Dawod
fefbfd6aa2
Drop default value when unnecessary. (#15368)
* Drop default value when unnecessary.

* Simplify code.

* Simplify code.

* Generate Petstore sample code.
2023-05-02 19:41:33 +08:00
André Andersson
42fa07dd33
[Elm] Add support for petstore spec (#15257)
* Add petstore config

* Expand lambda to allow formatting of partials

* Fix order of operation with parenthesis

* Fix not exposing needed enum to string converters

* Add support for form params including files

* Add generated petstore client

* Regenerate existing elm client

* Add script that all files compile successfully

* Remove old unmaintained petstore client

* Add pipeline to try and compile elm clients
2023-05-02 16:50:57 +08:00
William Cheng
961980f284
[python-nextgen] add support for StrictBytes (#15365)
* add strictbyte support in python-nextgen client

* update samples

* use union of strictbytes, strictstr for backward compatibility
2023-05-01 10:51:22 +08:00
Tiffany Marrel
5f8c4ec640
[swift5] cleanup documentation (#15351)
* [swift5] fix documentation of API authorization in README files

fix hierarchy level + add internal links + align wording across generators

* [swift5] fix anchor links in documentation

---------

Co-authored-by: Tiffany Marrel <tiffany.marrel@flowable.com>
2023-04-30 09:11:45 +01:00
William Cheng
ab819b9b18
mark python-nextgen as stable (#15360) 2023-04-29 13:51:01 +08:00
William Cheng
1f4d323020
fix enum support in oneof/anyof in python-nextgen (#15340) 2023-04-29 13:50:47 +08:00
Rodrigo de Almeida - RMA3
e07069731d
[JAVA] Enumeration comparison in Java using equalsIgnoreCase when String - Fix issue 8084 (#15273)
* fix issue 8084

* add config

* add config

---------

Co-authored-by: Rodrigo Maciel de Almeida <rodrigo.almeida@wefin.com.br>
2023-04-28 17:27:41 +03:00
William Cheng
2bd1a15217
[python-nextgen] fix empty dict in body parameter (#15336)
* add more tests for python-nextgen

* update samples

* add fix for empty dict body

* update samples
2023-04-28 14:06:27 +08:00
William Cheng
f4c041e496
fix to_json, to_dict in python nextgen (#15337) 2023-04-28 14:04:30 +08:00
William Cheng
f4e0eb9bc9
Update git-commit-id maven plugin to newer version (#15332)
* update git commit plugin to newer version

* roll back to previous version
2023-04-28 08:45:14 +08:00
Oleh Kurpiak
1f23b019fa
[Spring] fix Paginated without params (#15315) (fix #15265) 2023-04-27 14:32:11 +03:00
Tiffany Marrel
da96058f5b
[kotlin] cleanup documentation (#15307)
* [kotlin] fix documentation of API authorization in README files

fix hierarchy level + add internal links + align wording across generators

* [kotlin] fix anchor links in documentation

---------

Co-authored-by: Tiffany Marrel <tiffany.marrel@flowable.com>
2023-04-27 11:33:15 +01:00
martin-mfg
e0f42961c5
add missing documentation for maven and gradle options (#15322) 2023-04-27 12:43:37 +08:00
CTerasa-ep
b847140834
[C++][Pistache] Generate API generalization interface (#15279)
* [C++][Pistache] Refactor setupSupportingFiles

Supporting files are set up in the CppPistacheServerCodegen()
constructor as well as in processOpts(). Refactor the code and extract a
method setupSupportingFiles().

* [C++][Pistache] Refactor: Simplify isQueryParam condition

Both branches of the if/else do the same steps. Refactor this out and
invert logic.

* [C++][Pistache] Refactor: Add injectImplInFilename

Both branches of the if/else if do the similar steps and are dependent
on the suffix. Make this obvious by introducing a new method
injectImplInFilename(String result, String suffix).

* [C++][Pistache] Refactor: injectImplInFilename: remove index search

We do not need the separatorChar index to inject the "Impl" string.
Simply truncate the whole string.

Also rename the parameter from 'result' to' filename'.

* CppPistacheServer: Refactor postProcessOperationsWithModels

Pull out the post-processing for a single operation, and also pull out
post-processing for parameters.

Introduce boolean expressions for supported parsing per parameter, and
consumption of JSON.

Reorder code to make locality more explicit i.e. how consumeJSON and
isParsingSupported is generated and used.

* CppPistacheServer: Refactor to use functional matching

Functional matching like anyMatch() directly state what boolean value is
 searched.

 However, the Predicates deserve to heave names themselves.

* CppPistacheServer: Add base class for Api

Looking at the generated main-api-server.cpp code it gets obvious that
the API classes are self similar with a similar interface.
Only the construction and teh initialization is called in the main()
function. Leverage this fact to create a generalization ApiBase.

Introduce ApiBase as a pure virtual base class to the concrete API
classes and declare init() as virtual.

Pull the route member into the base class.

With this change we could have a container hold all the ApiImpl
objects later and call init() on all of them using a for_each loop.

* CppPistacheServer: Use ApiBase for ApiImpl storage

Refactor the main-api-server template to use a vector for ApiImpl
storage instead of separate objects. This leverages the previously
added ApiBase generalization.

 We push all concrete ApiImpl objects into a vector and call init() on
  each of them.

* [C++][Pistache]: Update generated sample

Due to teh addition of ApiBase class update the generated sample.

* [C++][Pistache] Add comment for postProcessSingleParam

* [C++][Pistache] Rename and comment implFilenameFromApiFilename

While writing the comment, I realized that the method name could be more
precise. Thus rename injectImplInFilename to implFilenameFromApiFilename
and add comment.
2023-04-26 20:01:58 +08:00
William Cheng
b8ccd25a79
[python-nextgen] Various fixes reported by pylint (#15309)
* various pylint fixes

* rearrange test

* Revert "rearrange test"

This reverts commit 24d777a8a87161b6fc36527f6c1a06c03216bb64.
2023-04-26 17:12:10 +08:00
Beppe Catanese
6f24ad3625
[JAVA] OkHttp-GSON deprecated field only deprecates getter method (#15287)
* Deprecate build and setter methods

* Test with deprecated property

* Update samples

* Remove extra line

* Regenerate samples
2023-04-26 11:40:30 +08:00
Jaemin Park
de27749047
[cpp-ue4] Fix byte array writing in JSON to be valid base64 string (#15242)
* Fix byte array writing in JSON to be valid base64 string
- remove ToStringFormatArg
- use ToUrlString to path parameters
- use Base64UrlEncode only in ToUrlString

* Use LexToString instead of FString::Format
2023-04-25 00:21:27 +08:00
William Cheng
d6e19f8f55
fix minus sign in enum naming in python-nextgen (#15291) 2023-04-24 16:07:29 +08:00