20229 Commits

Author SHA1 Message Date
William Cheng
5535578036 update meta codegen 2024-02-12 15:46:38 +08:00
Simon Podlipsky
1e9bccca16
feat: generate EOL in VERSION file (#17829)
The EOL is missing so let's add it in order to comply with POSIX standard:

Line
> A sequence of zero or more non- <newline> characters plus a terminating <newline> character.
2024-02-12 15:40:55 +08:00
William Cheng
783e68c7ac
7.4.0 snapshot (#17818)
* Revert "7.3.0-release (#17817)"

This reverts commit d617b46c86b9075c5e0d63fe3798e2982f5259ac.

* update samples, docs, readme
2024-02-08 16:07:22 +08:00
William Cheng
d617b46c86
7.3.0-release (#17817) v7.3.0 2024-02-08 14:15:11 +08:00
William Cheng
0bcd88b204 update docs 2024-02-08 13:38:48 +08:00
Miklós Márton
36f2ecae48
Extend the reserved keywords for Qt projects with the following words: (#17722)
- signals (builtin Qt macro)
 - slots (builtin Qt macro)
 - valid (generated classes has an isValid method)
 - set (generated classes has an isSet method)

Fixes #17487
2024-02-08 13:19:47 +08:00
William Cheng
0d1b14a75f replace 4-space with tabs in go templates 2024-02-08 12:58:19 +08:00
Mehmet Fatih Ercik
fdb001c8a3
add a new function router to pass gin context (#17785) 2024-02-08 12:53:00 +08:00
William Cheng
7cdbb2a7b4 update samples 2024-02-08 11:38:49 +08:00
Andreas Zöllner
bc680568c5
include API information in RestConfiguration Template (#17770)
Include API info in RestConfiguration for java-camel-server mustache template to prevent warning on startup as OpenAPI information can't be created otherwise.
2024-02-08 11:34:55 +08:00
Ash Berlin-Taylor
5334014098
[go] Fix panic from marshalling Nil NullableTime (#17772) 2024-02-08 11:25:09 +08:00
Nathanael COURET
ba4e5ef495
Fix #17752 - Add dependency for jakarta-validation-api and hibernate-validator to pom.xml file for Java client with Resttemplate library (#17753)
Co-authored-by: NC90131N <nathanael-externe.couret@enedis.fr>
2024-02-08 11:23:23 +08:00
William Cheng
5bcdc25645 update test file sha256 2024-02-08 11:20:05 +08:00
Vasilii Sorokin
be81652269
[java] 14404 fix for json arrays (#17812) 2024-02-08 11:19:08 +08:00
William Cheng
cd18299bb8
Fix TS Axios echo client github workflow (#17815)
* test fix

* test fix
2024-02-08 11:03:59 +08:00
Jonathan
f323a3e788
[Python] deserialize enum json response (fix #17789) (#17791)
* deserialize enum json response (python)

* adapt python samples: adding enum deserialization

* add echo test for enum json response deserialization (python)

* update samples
2024-02-08 10:52:43 +08:00
Martin Delille
c71eb5dfe8
[cpp-qt-client] Fix CMakeLists.txt.mustache and CMakeLists.txt for Qt5 (fix #17712) (#17721)
* [cpp-qt-client] Fix CMakeLists.txt.mustache and CMakeLists.txt for Qt5
(fix #17712)

* Restore CMAKE_AUTOMOC
2024-02-08 10:44:36 +08:00
William Cheng
0202bac539
fix parent name look up using schema name (#17807) 2024-02-07 18:11:43 +08:00
MarBode
cbc345308a
Fix OpenAPITools#17757 - Include minimum and maximum values in arrays with number items (#17759) 2024-02-07 13:47:46 +08:00
condorcorde
5a7f050889
[PowerShell] Support multiple types in Accept header (#17765)
* Update api_client.mustache

Allow Accept header to contain multiple MIME types

* Changes after build

* Update api_client.mustache

Return JSON MIME first on -Multiple -JsonFirst

* updated PetStore files
2024-02-07 12:55:24 +08:00
Tomohiko Ozawa
795f0798ac
[Java] Fix default values of array-type parameters in a referenced file (#17779)
* fix invalid default values of parameters with array type in a referenced file

* add test
2024-02-07 12:46:43 +08:00
Charles Treatman
d0ed25a06d
[Go] fix unused bytes import for anyOf and oneOf models (#17775)
* add sample spec for oneof and anyof with required properties

* omit bytes import for oneOf and anyOf models

* generate sample client for new spec
2024-02-06 17:05:39 +08:00
William Cheng
963e16a0dd update js samples 2024-02-06 17:00:49 +08:00
Moritz
2f3f684b7f
Fix #17767 (#17769)
Co-authored-by: Moritz Hannemann <m.hannemann@fz-juelich.de>
2024-02-06 16:56:28 +08:00
William Cheng
3858599be0 udpate typescript samples 2024-02-06 16:55:37 +08:00
Lucian Buzzo
4ec170236d
fix: update dead link to TypeScript docs (#17771)
The previous link no longer worked, so I've updated it to the latest
version of the TypeScript handbook.

Signed-off-by: Lucian Buzzo <lucian.buzzo@gmail.com>
2024-02-06 16:50:01 +08:00
Arthur Mogliev
70addf8fc9
[PHP] update dependencies for php-dt generated code (#17796)
* php-dt update:
- bump minimal required PHP version to 7.4 (8.1 for modern mode)
- bump minimal required DataTransfer version to 0.6
- support for date / date-time string lists and maps
- support for request and response bodies with date / date-time string schema
- minimal file string support

* docs update
2024-02-06 16:48:18 +08:00
William Cheng
5af2c7fbfb
[jax-rs][jersey3] Fix missing SecurityRequirement (#17797)
* [jax-rs][jersey3] Add SecurityRequirement

* Update Samples

* update samples

---------

Co-authored-by: nbreuil <88213872+nbreuil@users.noreply.github.com>
2024-02-06 16:47:19 +08:00
Charles Treatman
6e137bb61d
Add sample spec to catch external file reference issues in swagger-parser (#17773)
* add a sample that catches swagger-parser issues with external refs

* generate samples for new test spec
2024-02-06 16:22:41 +08:00
Jonathan Klaassen
6bcf8cd332
Fix Python codegen in specific additionalProperties case. (#17659)
* Fix Python codegen is specific additionalProperties case.

* Add generated test files.

* Apply fix to AbstractPythonPydanticV1Codegen.java.
2024-02-05 22:17:14 +08:00
William Cheng
334ddca021
Add Svix as bronze sponsor (#17783)
* add svix as sponsor

* add logo
2024-02-04 22:15:38 +08:00
wouter-rednose
5397f64595
[typescript][axios] Add any to index type when additionalPropertiesIsAnyType is true (#16494) (#17625) 2024-02-02 16:04:42 +01:00
Simon Hanna
eb7d2d9fd2
Fix typescript-nestjs services when using api_key authentication (#17708)
Closes: #17706
2024-02-02 15:32:26 +01:00
Simon Hanna
580da9978a
Allow using bearer auth in typescript-nestjs (#17711)
Closes: #10114
2024-02-02 15:23:20 +01:00
Jeffrey Yasskin
8ff230ed06
Accept Promises for the apiKey configuration in the typescript-fetch generator. (#17758) 2024-02-02 15:18:31 +01:00
William Cheng
7c7634dda9
add operation id option (#17750) 2024-02-01 17:21:49 +08:00
Robert Stoll
2129b15c8f
fix require var logging, don't matchGenerated if allOf skipped (#17746) 2024-01-31 21:35:43 +08:00
William Cheng
4d3121c32e remove sonar workflow which works with jdk17+ only 2024-01-31 11:46:15 +08:00
William Cheng
c9204c4330
Update model_generic.mustache, tuple notation breaks when there is only one element in the tuple (#17749)
* Update model_generic.mustache, tuple notation breaks when there is only one element in the tuple

In this excerpt of the mustache template, the matching behaviour is bugged when there is only one element in the tuple notation. A single string with the tuple notation, e.g., `("string")`, will result in a string, and when values are compared with the string, it will do a `contains` match instead of an exact match, which is unintended behaviour.

* Update with samples, step 3

* Add test spec and regenerate samples

* Update samples

* Update spec and samples

* update samples

---------

Co-authored-by: Edmund Loo <edmundloo@users.noreply.github.com>
Co-authored-by: Edmund Loo <github.yn0u9@simplelogin.com>
2024-01-31 11:29:15 +08:00
hopi
6ec4ed0b69
scala-sttp: fix for missing EnumNameSerializer for inner enum definitions (#17697) 2024-01-31 11:05:56 +08:00
Sander Hoentjen
7267e809c3
[python-fastapi] Ensure path param is ... instead of None (#17532)
Fixes #16029
Code from https://github.com/OpenAPITools/openapi-generator/issues/16029#issuecomment-1776271921
2024-01-31 11:03:14 +08:00
Charles Treatman
af4800132d
revert swagger-parser upgrade (#17657) 2024-01-31 10:46:14 +08:00
Aron
1146575848
corrected handling of "isPrimitiveType" for FormParameters (#17700)
* FormParameters correct handling for "isPrimitiveType"

https://github.com/OpenAPITools/openapi-generator/issues/17699

* MultipartApi.cs generated with new mustache

https://github.com/OpenAPITools/openapi-generator/issues/17699

* FakeApi.cs generated based on new mustache

https://github.com/OpenAPITools/openapi-generator/issues/17699

* FakeApi.cs generated based on new mustache

https://github.com/OpenAPITools/openapi-generator/issues/17699

* FakeApi.cs generated based on new mustache

https://github.com/OpenAPITools/openapi-generator/issues/17699

* FakeApi.cs generated based on new mustache

https://github.com/OpenAPITools/openapi-generator/issues/17699

* FakeApi.cs generated based on new mustache

https://github.com/OpenAPITools/openapi-generator/issues/17699

* FakeApi.cs generated based on new mustache

https://github.com/OpenAPITools/openapi-generator/issues/17699
2024-01-31 10:42:15 +08:00
William Cheng
ef59589287 update samples 2024-01-31 10:38:59 +08:00
William Cheng
59f672d9aa
Add rule to remove x-internal in openapi normalizer (#17734)
* add rule to remove x-internal in normalizer

* update

* update doc

* better code format

* update samples
2024-01-30 21:11:25 +08:00
William Cheng
301f25a306
fix is null schema check for array of string in 3.1 spec (#17728) 2024-01-30 12:08:45 +08:00
martin-mfg
9afea50cab
use map/array model class only if it is generated (#17612)
* fix

* tests

* generate samples

* refactor
2024-01-29 21:35:21 +08:00
Paul Horton
5055ebade9
fix: ensure models that have variables that contain a complexType of time.Time import the time module (#17452)
* fix: handle variables that have items that contain a complexType of `time.Time` properly

Signed-off-by: Paul Horton <phorton@sonatype.com>

* chore: trigger new CI runs

Signed-off-by: Paul Horton <phorton@sonatype.com>

* test: added test change an regenerated samples

Signed-off-by: Paul Horton <phorton@sonatype.com>

* resolved merge issues with upstream main

Signed-off-by: Paul Horton <phorton@sonatype.com>

* regenerated samples

Signed-off-by: Paul Horton <phorton@sonatype.com>

---------

Signed-off-by: Paul Horton <phorton@sonatype.com>
2024-01-28 11:36:05 +08:00
dmbakker
9952776e9c
[java] fix Use jackson-jakarta-rs-json-provider when useJakartaEe is true (#17600)
* fix #17590 - use jackson-jakarta-rs-json-provider instead of jackson-jaxrs-json-provider in pom when useJakartaEe is true

* fix #17590 - fix indentation

* fix #17590 - updated samples

* fix #17590 - fixed groupid

---------

Co-authored-by: in376bak <dennis.bakker@duo.nl>
2024-01-28 00:38:18 +08:00
Tobias
8f441689f7
[JavaSpring] Add Javadoc to enum (x-enum-descriptions) (#14123)
refs #1693
2024-01-27 23:49:11 +08:00