20091 Commits

Author SHA1 Message Date
William Cheng
7d2e8b1278 update rust samples 2024-02-14 00:10:26 +08:00
Nathan Shaaban
c30d3696b0
[rust] basic oneOf support (#13970)
* [rust] basic oneOf support

Suport oneOf as a rust struct enum.

Details:

Enum without a discriminator is untagged being
"untagged" simply means serde won't attempt to
store the name of the enum inside the serialized
object. See
https://serde.rs/enum-representations.html#untagged
for more

Also check to make sure the mapping values
are not an empty object (aka null).

Co-authored-by: Nikita Puzankov <git@bshn.rs>

* refactor: fix clippy lints

No longer needed as of reqwest 0.10, it now takes the response as owned instead of mut ref.

Is not empty is more clear

* fix: discriminator and oneof case

Will show as a struct enum when there are additional fields, otherwise will be a tuple enum.

not sure the purpose of x-mapped-models, perhaps legacy code? mappedModels appears to do the same thing.

Also add default implementation for quality of life

* chore: update samples

---------

Co-authored-by: Nikita Puzankov <git@bshn.rs>
2024-02-13 19:21:51 +08:00
William Cheng
4fb97b1003
add support for extension in request body to name body parameter (#17850) 2024-02-13 17:33:51 +08:00
William Cheng
dd3ab0a1fa
Fix attributes in allOf and $ref (#17836)
* fix allOf and ref properties

* add tests
2024-02-13 16:54:40 +08:00
William Cheng
3f344ac6b4 update python fastapi readme 2024-02-13 16:54:27 +08:00
Alex
024c245ba7
Run the server using PYTHONPATH and correct module (#17820)
Executing the command from the README file should allow the user to run the application. Without the proposed changes either the error message `Error loading ASGI app. Could not import module "main".` or `ModuleNotFoundError: No module named 'openapi_server'` is being returned.
2024-02-13 16:49:39 +08:00
martin-mfg
aad345f0bd
expand documentation for option "artifactVersion" (#17845)
* update documentation strings

* re-generate docs
2024-02-13 16:18:05 +08:00
dependabot[bot]
f3d5ea2f54
Bump s4u/setup-maven-action from 1.11.0 to 1.12.0 (#17849)
Bumps [s4u/setup-maven-action](https://github.com/s4u/setup-maven-action) from 1.11.0 to 1.12.0.
- [Release notes](https://github.com/s4u/setup-maven-action/releases)
- [Commits](https://github.com/s4u/setup-maven-action/compare/v1.11.0...v1.12.0)

---
updated-dependencies:
- dependency-name: s4u/setup-maven-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-13 12:55:10 +08:00
Simon Podlipsky
ec42f88c6a
refactor(php): unify $hostSettings variable name (#17828) 2024-02-12 16:13:55 +08:00
Simon Podlipsky
f431540075
fix(php): do not cast to string something that's already string (#17838) 2024-02-12 16:06:33 +08:00
Simon Podlipsky
f3ac4498df
refactor(php): use self::markTestIncomplete instead of instance calls (#17824)
It's reported by phpstan as `Dynamic call to static method PHPUnit\Framework\Assert::markTestIncomplete().`.

The method is static, therefore it should not be called from instance context.
2024-02-12 15:48:44 +08:00
Simon Podlipsky
cd23dfd3ce
fix(php): call selectHeaders correctly in psr-18 implementation (#17832)
- `selectHeadersForMultipart()` does not exist,
- therefore we have to call `selectHeaders()`

This is signature of `public function selectHeaders(array $accept, string $contentType, bool $isMultipart): array;`

We have to pass `$multipart` as 3rd parameter.

The second parameter is content type as string, not in array.
2024-02-12 15:47:27 +08:00
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