20229 Commits

Author SHA1 Message Date
Miklós Márton
9c72b25bf4
[cpp-qt-client]Allow nullable parameters (#17805)
* [cpp-qt-client]Allow nullable parameters

Fixes #17756

* Update samples
2024-02-23 16:01:13 +08:00
Miklós Márton
c4f90d058b
Add NULL as reserved keyword cpp (#17803)
* [cpp]Do not lowercase the reserved keywords for C++

(Will be necessary for adding NULL as a reserved keyword)

* [cpp]Add NULL as reserved keyword
2024-02-23 16:00:23 +08:00
Jean-François Côté
a6771adf53
Add nullable to model fields (#17934) 2024-02-23 15:55:19 +08:00
William Cheng
9f5ec178cb update html2 samples 2024-02-23 00:44:17 +08:00
Kira Resari
fe919b2203
Updated jQuery to latest version (#17930)
The old version (3.1.0) had known security issues
2024-02-23 00:34:04 +08:00
Tyler Mairose
8d73c82417
Add additional mustache lambda for kebab case (#17858)
* Add new kebabcase mustache lambda

* Add tests for new kebabcase lambda

* Update toLowerCase to use Locale.ROOT
2024-02-23 00:30:01 +08:00
William Cheng
f191904297
Add auto-generated test files for kotlin client (#17916)
* add auto-generated test files for kotlin client

* undo changes to doc

* add auto-generated model test files in kotlin clients

* update tests
2024-02-21 18:29:23 +08:00
Bastien Jansen
3af7363e76
Fix ClassCastException in OpenAPINormalizer on composed schemas in 3.1 (#17912) 2024-02-21 15:22:46 +08:00
mikkka
6c86c2d3cf
Remove postprocess printing (#17880) 2024-02-20 18:19:38 +08:00
William Cheng
cf8c343b17 Merge branch 'master' of https://github.com/openapitools/openapi-generator 2024-02-20 17:59:04 +08:00
William Cheng
3c364ccbb4 use white litslink logo 2024-02-20 17:58:38 +08:00
ふぁ
c99a5cfeb6
[python] update model_config from dict to ConfigDict (#17900)
* [python] rewrite dict as ConfigDict

* [python] update sample

* [python] undo unwanted changes

* [python] update sample
2024-02-20 17:53:13 +08:00
William Cheng
6b024dbbfa
Add LITSLINK as the bronze sponsor (#17904)
* add litslink as the bronze sponsor

* add logo

* update logo
2024-02-20 17:48:21 +08:00
Mehmet Fatih Ercik
48565ae5be
Generate API files as interfaces for go-gin server (#17784)
* add feature to generate only interface files

* generate sample

* add workflow file foe go gin service

* add workflow file foe go gin service

* add workflow file foe go gin service

* update samples
2024-02-20 15:37:44 +08:00
Stefan
95377cded4
Fix typos 'the the'. (#17897) 2024-02-20 13:00:55 +08:00
William Cheng
ad84355288
fix: Runtime error that occurs when Retrofit2 query parameter is an enum list (#17901)
* fix: Runtime error occurs when Retrofit2 query parameter is an enum list (9481)

* chore: Removes EOL

* remove EOL

---------

Co-authored-by: Ivan Vasheka <87310984+ivanvasheka-intellias@users.noreply.github.com>
2024-02-20 12:56:28 +08:00
ふぁ
ad08581f16
[python] Fix Circular imports on inherited discriminators. (#17886)
* [python] add inheritance discriminators test #16808

* [python] update samples

* [python] fix assert in test

* [python] fix inheritance discriminators circular import

* [python] update samples

* [python] undo type changes related to discriminator

* [python] remove extraneous processing

* [python-pydantic-v1] fix inheritance discriminators circular import

* [python] remove type ignore comment

* [python] update samples

* [python] fix avoid the empty line break

* [python] update samples
2024-02-20 12:17:32 +08:00
Jérôme Prinet
bf8ee80001
Enable local build cache (#17894) 2024-02-20 11:23:46 +08:00
Nathan Shaaban
76d743b63b
fix(rust): simplify new function optional logic (#17865)
* fix(rust): simplify None logic

Used to be a code path (where isFreeFormObject and something else) where we could end up with two `: None` `: None`'s

This does add the None for the !required && !isArray && !isMap && !isNullable case (where nothing would have been printed before.

Above for the type on the individual vars inside the struct definition the logic is simply if not required then it's optional.
If it's optional we want a None when creating a new struct.

* ci: add tests for failure
2024-02-19 22:26:29 +08:00
Jérôme Prinet
eb7d9b1605
Migrate to Develocity Build Cache connector (#17891) 2024-02-19 21:17:39 +08:00
Noor Dawod
e025ef947a
Use exists() to check for properties (#17798)
* Use `exists()` to check for existing properties.

* Generate Petstore code.

* Fix use of `null` instead of `undefined`.

* Enhance function code.

* Regenerate Petstore code.

* Use `exists()` in generated API clients.

* Use `exists()` in generated API clients.

* Refer to properties differently.
2024-02-19 11:12:46 +08:00
Felix König
6350d1d191
make title available to templates for ref properties (#17881)
Even though `title` is technically for the title of the API itself,
it's possible to set it for properties as well.
Right now, the `title` property is available in templates for regular properties,
but for ref-properties it gets lost right here.
This seemed rather surprising to me, so I think it's better to fix.
2024-02-19 11:06:26 +08:00
William Cheng
28b75377b5
Add EchoServerResponseParser.kt to Kotlin Echo API client (#17887)
* add kotlin jvm retrofit2 coroutine echo client

* add tests for echo server parser

* add workflow

* remove coroutines sample
2024-02-19 10:52:58 +08:00
William Cheng
7d539bcb78
Remove deprecated library (jvm-okhttp3) in kotlin client generator (#17884)
* remove deprecated library in kotlin client generator

* update workflow
2024-02-18 17:16:23 +08:00
William Cheng
436a3e0744
fix multi line description in allOf (#17879) 2024-02-16 15:26:15 +08:00
William Cheng
5a0f6b8eb2
use unescaped media type (#17878) 2024-02-16 10:55:01 +08:00
William Cheng
809c90aa24
Use unescaped media type in java native client (#17872)
* use unescaped media type in java native client

* add tests
2024-02-16 10:17:08 +08:00
Dipesh Chauhan (Twilio Work Account)
cedf170454
Adds Collapse Spec Options to Maven Plugin (#17714)
* Adds Collapse Spec Optionss to Maven Plugin

* Adds a collapsedSpec option to the maven plugin that produces a single-file representation of the spec in the output directory.
* Adds a includeCollapsedSpecInArtifacts option to the maven plugin that adds the collapsed spec file to the maven artifacts.

* Address Feedback Round 1

* Adds the new options to the maven plugin README.md.

* Fixes Unit Tests

* Corrects the casing of one of the schema files that was causing the tests to fail.
2024-02-15 17:02:25 +08:00
Dennis Melzer
7d76d0af61
Fix configuration handling with Feign (#17860)
* Fix configuration handling with Feign

* Fix test

* Fix compile error

* Fix compile error
2024-02-15 17:01:01 +08:00
William Cheng
82bb813aeb
update fastapi dependencies to newer versions (#17871) 2024-02-15 15:27:17 +08:00
William Cheng
4e39f12e29
[Go] fix isNil check (#17870)
* #17835 changed to return !IsNil

* update samples

---------

Co-authored-by: sagar khot <sagarkhot74@gmail.com>
2024-02-15 14:17:31 +08:00
William Cheng
887b860007
Update python-fastapi generator to support Pydantic v2 (#17369)
* update python fastapi to support pydantic v2

* add new files

* update samples

* update samples

* update starlette

* update typing extensions

* update email validator
2024-02-15 14:15:51 +08:00
Steven Sheehy
8cd34ac963
Fix native java with list validation (#17857)
Signed-off-by: Steven Sheehy <steven.sheehy@swirldslabs.com>
2024-02-15 13:29:43 +08:00
William Cheng
4810dd52c3
[python-fastapi] auto generate impl folder (#17852)
* auto generate impl folder

* fix working dir

* install pytest

* add new file

* update, fix

* test with py 3.9

* fix tests

* update doc
2024-02-15 13:08:04 +08:00
William Cheng
b0c9456add
add FILTER to openapi normalizer (#17859) 2024-02-15 13:05:31 +08:00
Yannick Wiesner
41bb5cd331
[Dart] Make dependency on intl package less strict (#17862) 2024-02-15 12:54:20 +08:00
s-jepsen
487b856c11
Fix java-spring equals generation (#17837) 2024-02-15 12:27:33 +08:00
dvacca-onfido
9deeb608e6
fix(ruby): Detect content-type in form-data file upload using faraday (#17851) (#17853)
* fix(ruby): Detect content-type in form-data file upload using faraday (#17851)

* Update samples

* Add needed dependency libmagic-dev into node 1 setup of Circle Parallel CI

* After merge/pull last master + regeneration of samples
2024-02-14 21:14:01 +08:00
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