AntoineDuComptoirDesPharmacies
85df55b20e
Bugfix #15982 : ( #15984 )
...
- Use 'orElse' instead of 'get' to avoid Exception for non required headers
- Update samples
2023-07-04 23:30:21 +08:00
Guillaume Turri
22e1e4e450
[PHP-Symfony] fix name mismatch in generated README ( #15961 ) ( #15963 )
...
This fixes the generated README so it suggests to implement the `class DefaultApi`
in a file named DefaultApi.php (instead of DefaultApiInterface.php)
2023-07-02 23:34:04 +08:00
Guillaume Turri
7572e73b8e
[PHP-Symfony] Fix Symfony warning on OpenAPIServerBundle ( #15960 )
...
This fixes this Symfony warning:
User Deprecated: Method "Symfony\Component\HttpKernel\Bundle\Bundle::build()"
might add "void" as a native return type declaration in the future. Do the
same in child class "OpenAPI\Server\OpenAPIServerBundle" now to avoid errors
or add an explicit @return annotation to suppress this message
This fixes #15959
2023-07-02 23:33:37 +08:00
William Cheng
8add9119df
Add containerTypeMapped ( #15881 )
...
* add containerTypeMapped
* update samples
* update java inflector sample
2023-06-30 09:38:39 +08:00
Frederic Jones
3627e57a4c
Add validation.constraints package import to delegates when using bean validation ( #15921 )
2023-06-26 23:52:38 -07:00
martin-mfg
4bec09f7b9
[PHP] fix error on circular references ( #15900 )
...
* fix php generators
* generate samples and docs
* fix samples
2023-06-27 10:23:10 +08:00
martin-mfg
33e120a14d
[Eiffel] fix Eiffel schema lookup, clean up outdated samples ( #15901 )
...
* make all unmaintained samples executable
* remove samples not generated by any config (not even unmaintained configs)
* remove deleted samples from github workflows
2023-06-27 10:21:28 +08:00
pyckle
33aa5b07f3
[Java][bugfix] hashcode/equals behave incorrectly when inheritance is used in Generated Pojos ( #15745 )
...
* Fix Java equals and hashCode methods to work with inheritence (#5756 )
* Regenerate code samples with improved hashCode/equals
---------
Co-authored-by: Andrew Pikler <andrew.pikler@earnix.com>
2023-06-21 16:33:01 +08:00
martin-mfg
7e89e1ea81
fix import mapping for return types ( #14525 ) ( #15719 )
...
* importContainerType = true
* add unit test
* disable MyImportTest
* build all samples, add import exceptions
* simplify code
* delete myImportTest
* generate docs
* extend comment
* remove inline comment
2023-06-21 15:55:29 +08:00
martin-mfg
396c6753b1
[Java][Haskell][Python] fix errors with empty strings, missing basePath ( #15866 )
...
* various fixes
* generate samples & docs
2023-06-20 10:05:02 +08:00
Erik Wegner
389270334a
Rust validation handling ( #15288 )
...
* Prevent JavaScript regex delimiter
* Validation
* validator dependency
* validation with range
* Switch to garde crate for validation
* Update uuid crate
* Examples
* All rust-server samples
* Added rule handling
* Exchange garde for validator crate (rust)
* Version update in samples
---------
Co-authored-by: Erik Wegner <erik.wegner@regiocom.com>
2023-06-16 15:25:27 +08:00
Tiffany Marrel
0e212f53f2
[Java] [Kotlin] ignore unsupported schemes instead of throwing exception ( #15817 )
2023-06-15 16:50:49 +08:00
William Cheng
6788f43af0
Better handling of Inline schema ( #15682 )
...
* skip allOf inline subschema created as $ref
* add option for fallback
* add back atleastonemodel
* add log
* update java, kotlin, js samples
* update tests
* fix native client test
* fix java client errors by regenerating test files
* clean up python
* clean up powershell
* clean up php
* clean up ruby
* update erlang, elixir
* update dart samples
* update ts samples
* update r, go samples
* update perl
* update swift
* add back files
* add back files
* remove outdated test files
* fix test
2023-06-11 15:35:58 +08:00
martin-mfg
02790f987e
always use @JacksonXmlElementWrapper and read xml data from referenced schema, updated ( #15115 )
...
* always use @JacksonXmlElementWrapper and read xml data from referenced schema
based on https://github.com/OpenAPITools/openapi-generator/pull/5371
* run generate-samples.sh
* suggestion: remove comment with empty name
2023-06-09 09:19:42 +08:00
James Wynn
d27fa00cf5
fix : #1466 additionalProperties works now in spring generator ( #11572 ) ( fix #1466 )
...
* fix : #1466 additionalProperties works now in spring generator
* chore: chore: #1466 solved rebase conflicts
* 1466; updated samples
* [Spring] update additionalProperties MR
* [Spring] additionalProperties unit test
---------
Co-authored-by: Your Name <benfonty@gmail.com>
Co-authored-by: Oleh Kurpiak <oleh.kurpiak@gmail.com>
2023-06-08 16:38:53 +03:00
martin-mfg
17f1d351bf
[Java][Jaxrs][Resteasy] add @Valid to getter methods, updated ( #15064 )
...
* [JavaJaxrsResteasy] add @Valid to getter methods
* improve whitespacing
---------
Co-authored-by: TNM Technologies <tnmtechnologies@users.noreply.github.com>
2023-06-08 09:43:01 +08:00
martin-mfg
b7f2b723aa
[JAVA] fix toUrlQueryString for BigDecimal ( #15764 )
...
* add MyImportTest.java
* fix original issue
* fix same issue for native library
* remove MyImportTest
* add test configs
* generate samples (again?)
* generate samples again
* generate samples again, undo pom.xml mistake [amended to retrigger circliCi]
2023-06-08 09:34:06 +08:00
William Cheng
fbb0d6d935
add a test case for python-fastapi query parameter default value ( #15744 )
2023-06-04 13:37:12 +08:00
Olivier Sechet
65bee03e21
Use gitHost instead of github.com ( #15720 )
2023-06-03 11:08:33 +08:00
William Cheng
8bad27e0ab
update python fastapi server dependencies ( #15650 )
2023-05-29 17:16:15 +08:00
William Cheng
7006b388de
Update go-gin dockerfile to newer version: 1.19 ( #15597 )
...
* update go-gin dockerfile to newer version: 1.19
* add go.sum
* fix
* update go mod
2023-05-29 16:55:14 +08:00
devhl-labs
0350d0e313
fixed example values ( #15666 )
2023-05-28 11:51:14 +08:00
William Cheng
bbb6f4e6a0
[go-server] Update Dockerfile go version to 1.19 ( #15596 )
...
* update dockerfile go version to 1.19
* Update modules/openapi-generator/src/main/resources/go-server/Dockerfile.mustache
Co-authored-by: Ween Jiann <16207788+lwj5@users.noreply.github.com>
* Update modules/openapi-generator/src/main/resources/go-server/Dockerfile.mustache
Co-authored-by: Ween Jiann <16207788+lwj5@users.noreply.github.com>
* update samples
---------
Co-authored-by: Ween Jiann <16207788+lwj5@users.noreply.github.com>
2023-05-26 10:51:07 +08:00
Nikita Vakula
3db7169959
[python-fastapi] Added a base class for the actual implementation ( #14470 )
...
It is very difficult to "merge" the changes, made by code generation,
and the changes, made by developers. It would be very useful to
separate the generated code and the code written by developers. In
addition this would remove the necessity to track the generated code.
Pyhton (since 3.6) has a hook, __init_subclasses__, that could be used
to solve exactly this problem.
The classes from *_base.py should be implemented in an ns package that is specified
by the additional parameter ("-p fastapiImplementationPackage=example_name").
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
2023-05-26 08:58:39 +08:00
William Cheng
1145197fad
Add workflow to tests C# projects with .net 6 ( #15629 )
...
* add workflow to tests C# projects with dotnet 6
* trigger build
* fix cmd
2023-05-25 21:06:51 +08:00
devhl-labs
63c26fc794
upgarded test project framework ( #15634 )
2023-05-25 11:00:38 +08:00
aramflo
2042fb222a
CASS-399: Adds {{>partial_header}} to missing mustache files in aspnetcore. ( #15616 )
2023-05-24 16:37:46 +08:00
Stephan Strate
9890f076a9
[kotlin-server] add support for jakarta ee namespace ( #15593 )
2023-05-24 08:44:39 +01:00
Tiffany Marrel
cbcf3d36f6
[Java] [Kotlin] ( #14876 ) fix use of isBasic conditions - do not use HttpBearerAuth (or HttpBasicAuth) for other http auth methods (such as http signature auth or custom schemes) ( #15220 )
...
* remove http signature from test yaml when not supported
* do not use HttpBearerAuth for signature auth or other unsupported http auth method
ignore unsupported http auth method unless generated code would not compile (in which case, an exception is thrown)
* [Java] fix use of isBasic condition
* [kotlin] fix use of isBasic condition
2023-05-22 16:08:08 +08:00
Rustam
7881482161
[Ktor] Update generator to latest Ktor version #14061 ( #14296 )
2023-05-21 23:11:01 +08:00
William Cheng
54c8bf8733
[go-server] Add tests for boolean query parameter ( #15563 )
...
* add tests for boolean query parameter
* fix test
2023-05-18 15:39:43 +08:00
William Cheng
d8ed253439
update C# samples
2023-05-18 11:21:16 +08:00
Jean-François Côté
b7dc6ce598
[Aspnetcore] Fix nullable warnings part 1 ( #15555 )
...
* Fix nullable errors in attribute and filters
* Add missing samples
2023-05-18 11:14:55 +08:00
rledisez
44ad6d5eac
[go-server] Support min/max/defaults for values ( #15185 )
...
* [go-server] Support min/max/defaults for values
Enforce, for the go-server, to check the minimum and maximum values
specified in the openapi description. Also apply the default if the
parameter is not passed.
Fix #14013
* Fix merge conflict
Co-authored-by: Ween Jiann <16207788+lwj5@users.noreply.github.com>
* Improve UnmarshalJSON implementation
Co-authored-by: Ween Jiann <16207788+lwj5@users.noreply.github.com>
* Improve default value handling for string
Co-authored-by: Ween Jiann <16207788+lwj5@users.noreply.github.com>
* Fix suggested changes
* rework option pattern
* add imports based on types/min max values
---------
Co-authored-by: Ween Jiann <16207788+lwj5@users.noreply.github.com>
2023-05-17 01:58:28 +08:00
Jean-François Côté
842ca3db69
Fix warning when building because of the missing documentation ( #15543 )
2023-05-17 00:44:58 +08:00
Sylvain Joubert
3a172c3753
[C++][Pistache] Add missing 'override' on virtual methods ( #15469 )
...
This is following #15279
Marking those methods 'override' should avoid producing
'-Winconsistent-missing-override' warnings or similar.
2023-05-16 17:13:34 +08:00
Sylvain Joubert
48d257b5c9
[C++][Pistache] Generate empty JSON object instead of a null value ( #15468 )
2023-05-16 17:05:44 +08:00
William Cheng
1c6decb394
minor enhancements to the aspnetcore server generator ( #15518 )
2023-05-16 15:24:48 +08:00
Jean-François Côté
edad90e794
Bugfixes/12952 fix newtonsoft using ( #15515 )
...
* Fix #12952 : Handle useNewtonsoft parameter correctly
Next commit will have all modified samples.
* Fix #12952 : Add generated samples
* Fix #12952 : Add missing files
2023-05-16 14:41:51 +08:00
Andrii Serkes
fbf42de200
Fix JsonNullable issue for Helidon generators ( #15423 )
...
* fix JsonNullable issue
Signed-off-by: aserkes <andrii.serkes@oracle.com>
* update samples
Signed-off-by: aserkes <andrii.serkes@oracle.com>
* update samples, refactoring
Signed-off-by: aserkes <andrii.serkes@oracle.com>
* update samples, refactoring
Signed-off-by: aserkes <andrii.serkes@oracle.com>
* update samples
Signed-off-by: aserkes <andrii.serkes@oracle.com>
---------
Signed-off-by: aserkes <andrii.serkes@oracle.com>
2023-05-16 14:34:37 +08:00
martin-mfg
dd6ccaa84f
import @Valid in Spring delegates ( #15330 ) ( fix #15213 )
2023-05-15 14:55:21 +03:00
Oleh Kurpiak
54cb33c6a1
[Spring] remove deprecated annotation from no-args constructor ( #15512 )
2023-05-15 14:13:18 +03:00
Ween Jiann
78bffff8f3
[Go] Update API naming to follow Golang standard pkg (1 line change) ( #15331 )
...
* Add apiNameSuffix to AbstractGoCodegen
* Regenerate files
* Update tests
* Regenerate files
* Update test files
* Regenerate for CI test
* Regenerate for CI test
* Remove some docs
* Add files back
2023-05-13 09:40:26 +08:00
William Cheng
9ace780eac
update samples
2023-05-10 15:14:29 +08:00
William Cheng
0c3460f95b
Merge remote-tracking branch 'origin/master' into 7.0.x
2023-05-10 15:00:56 +08:00
Tiffany Marrel
8a6c708884
[Java] Cleanup documentation ( #15300 )
...
* [Java] fix documentation of API authorization in README files
fix hierarchy level + add internal links + align wording across generators
* [Java] fix anchor links in documentation
2023-05-10 14:14:44 +08:00
Nuno Miguel Micaelo Borges
4e27041bdc
Add microprofile OpenApi annotations to JavaRxSpec (quarkus library). Add OpenID support (core) ( #15407 )
...
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
* Issue #795 : Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec
---------
Co-authored-by: Nuno Borges <Nuno.Borges@ctw.bmwgroup.com>
2023-05-10 00:55:41 +08:00
Tiffany Marrel
ef35e6d7ea
[rust] fix documentation of API authorization in README files ( #15352 )
...
fix hierarchy level + align wording across generators
2023-05-09 14:30:54 +08:00
Tiffany Marrel
9cb14aeb8c
[php] fix documentation of API authorization in README files ( #15306 )
...
fix hierarchy level + align wording across generators
2023-05-09 14:25:14 +08:00
William Cheng
4e8d41bd79
Fix circleci test failures ( #15317 )
...
* fix circleci test failures
* trigger test
* update circleici pom.xml
* rearrange test
* comment out tests
* fix test
* comment out python-prior
* comment out test
* fix import
* comment out tests
2023-05-03 15:17:25 +08:00