Dave Syer
0e0cddacac
Make sure jaxrs-spec works with Jakarta ( #14654 )
2023-02-16 18:29:37 +08:00
William Cheng
110460b71a
[python-nextgen] better datetime support in parameters ( #14621 )
...
* add allowStringInDateTimeParameters option
* add tests
* add files
* add tests for datetime query parameters
* fix file anme
* trigger build
* fix pytest
* install test requirement
* trigger build
* break build
* add new files
* fix Locale.ROOT
* update doc
2023-02-12 21:11:29 +08:00
William Cheng
72c02e4bc1
optionally support float strict type ( #14618 )
2023-02-12 19:44:18 +08:00
William Cheng
d7a2e4a293
Apache Camel: implicit headers ( #14674 )
...
* Apache Camel: fix implicit headers
* ./mvnw clean package
./bin/generate-samples.sh
./bin/utils/export_docs_generators.sh
* Q
* Created samples/openapi3/client/3_0_3_unit_test/python/test/.gitempty
* update samples
---------
Co-authored-by: Giacomo Carnevale <gcarnevale@imolainformatica.it>
2023-02-11 23:48:55 +08:00
Sergii Baitala
8d9816e193
[cpp-qt-client] CMake build system improvements ( #14210 )
...
* checkpoint
* rename template file
* add nl
* fix build
2023-01-31 23:39:00 +08:00
Paul Parenko
cffe2d0259
[Kotlin-Spring] support to Spring boot3 & jakarta extension ( #14369 )
...
* [Kotlin] add spring boot 3 & jakarta extension support
* [kotlin-spring] readme update & modified imports
* use latest Spring Boot starter parent
* use same options as in [Java] generator
* new config kotlin-spring-boot-3
---------
Co-authored-by: jayandran sampath <jayandran.sampath@opencastsoftware.com>
2023-01-31 22:16:06 +08:00
julien Lengrand-Lambert
eca9ec775b
Feat/jetbrains http client ( #14477 )
...
* Dummy client generated
* Adding dummy versions, my IDE crashed
* Making my first actual requests
* Creates first version of API Generator for Jetbrains Client
* Adds generated API files
* Adds more complex API definition
* Adds basic supporting files
* Adds empty environment file for variables
* Adds basic README
* Adds minimal set of values in env file`
* Adds minimal support for API Key header
* Adds Adyen API sample
* Add null checks on code
* Simplifies the generator, cleans output
* Improves README
* Fix minor issues with README
* Removes API file and config used for local testing
* Remove leftover logging file
* Disables tests as I find how to write them
* Sets generator as experimental
* Add new generator language enum value
* Adds generator doc file
* Adds generators main file
* Removes unused method. Adds my name
* Adding Jetbrains HTTP Client to the README
2023-01-31 22:03:15 +08:00
William Cheng
fd45b74128
[Java] better default value handling ( #14130 )
...
* add test for array default value
* update null return
* minor fixes
* move default value tests to echo api spec
* add new files
* remove unused files
* fix enum array default, add tests
* better array init
* Update modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java
Co-authored-by: Leonard Brünings <lord_damokles@gmx.net>
* Update modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java
Co-authored-by: Leonard Brünings <lord_damokles@gmx.net>
* revert the fix
* improve default value handling
* update native samples, add tests
* update samples
* fix tests
* use conditional test for timezone
* add tests to apache http client echo api
* add option to default container to null
* fix map default value
* minor refactoring
* update samples
* fix javadoc
* fix pom.xml
* add tests in java native echo client
* add java apache client echo tests
* fix test
* fix test
---------
Co-authored-by: Leonard Brünings <lord_damokles@gmx.net>
2023-01-30 20:19:00 +08:00
Tanmay Mohapatra
4bc16ea6bb
Added a Julia client and server ( #14520 )
...
* Added a Julia client and server
This PR adds two new generators for the [Julia language](https://julialang.org/ )
- `julia-client` to generate a client from specifications
- `julia-server` to generate a server with stubs that can be used to host a server conforming to the specifications
The generated code uses the Julia [OpenAPI.jl](https://github.com/JuliaComputing/OpenAPI.jl ) package that includes support functions for both client and server.
* fix javadoc generation
* add changes after ensure-up-to-date run
2023-01-30 16:40:33 +08:00
Oleh Kurpiak
28493dfa95
[Spring] Spring HTTP Interface library ( #14485 )
2023-01-30 10:37:00 +02:00
William Cheng
4ecb9f4186
[java][native] Fix urlQuery string method in oneOf ( #14488 )
...
* better tests, fix oneOf in urlquery string method
* update samples
* update
2023-01-20 01:57:32 +08:00
William Cheng
9fae221f1d
[Java][okhttp-gson] add echo client test ( #14442 )
...
* add echo api tests for java okhttp client
* test okhttp gson echo client in jdk8 workflow
* update samples
2023-01-13 00:15:29 +08:00
Maxime Dufour
c6ea564600
[Java][Client Default] Support of AWS Signature V4 ( #14287 )
...
* Add support of AWSV4 Signature in Java
* Add Petstore sample for AWSV4 Signature
* Update other sample examples
* Sync Documentation and sample
* Specify only available for okhttp-gson in doc
2023-01-10 19:29:20 +08:00
William Cheng
c514dc3c1b
add java native jakarta samples for test ( #14381 )
2023-01-05 21:55:53 +08:00
Oleh Kurpiak
ec9c7bdf2c
[Java][Spring] fix EnumConverterConfiguration ( #14356 )
2023-01-05 10:19:17 +08:00
devhl-labs
b8b8c5c208
[csharp-netcore] Added samples for composed schemas ( #14348 )
...
* added samples for composed schemas
* continue ignoring standard for now
2023-01-02 23:27:01 +08:00
William Cheng
421e7c9d3e
[Java] Better tests for jakarta option (webclient, resttemplate) ( #14363 )
...
* test java jakarta in new workflow jdk 17
* update workflow
* skip jakarta test in jdk11
2023-01-02 20:55:39 +08:00
Paul Parenko
fd2b141c53
when using useJakartaEe=true
also set java 17 ( #14360 )
...
webclient now uses Sring Boot 3.0.1 with `useJakartaEe`
2023-01-02 20:29:32 +08:00
Paul Parenko
456cca1a28
[Java] Fix #14276 Java Templates uses jakarta or javax package if useJakartaEe is enabled ( #14343 )
...
* Fix #14276 Java Templates uses jakarta or javax package if useJakartaEe
is true
* generated samples after useJakartaEe changes
* generated docs after useJakartaEe changes
2023-01-02 16:28:44 +08:00
Makoto Aoyama
031f0dcee6
[swift5]Add validation rule and validator ( #14218 )
...
* Add validation sample
* Add validation template
* Add access control
* Add rule property for string for numeric
* Add access control
* Remove useless file
* Fix condition
* Add properies for test
* Rename
* Add additional property
* Run ./bin/utils/export_docs_generators.sh
* Add comments for validator
* Rename
* Run ./bin/generate-samples.sh bin/configs/swift*
2022-12-23 13:25:54 +00:00
Bill Collins
71a7a822f4
Nullable subschemas ( #13850 )
...
* Add failing example of nullable subschema
* Do not generate new subschemas when nullable
* Generate client
* Update go example schema/test
2022-12-22 20:44:05 +08:00
William Cheng
0cf5ed619d
Add a new Python client generator - python-nextgen ( #14157 )
...
* add python-nextgen generator
* remove client_side_validation from model
* remove configuraiton import from models
* add inheritance support
* update test requirements, tox
* add typings, pydanic to models
* add test model
* minor improvements
* add enum support
* add typing for parameters, remove validations
* add oneof, anyof support
* fix default value
* fix deserialization, api tests passed
* private variable naming, update tests, all tests passed
* remove six
* remove nose
* update doc
* remove sortParamsByRequiredFlag option
* add parameter validation
* add validation tests
* simplify Field()
* remove previous required parameter validation
* improve parameter handling
* support discriminator mapping
* better typing discriminator mapping
* format test code
* fix tests
* fix oneOf from_dict, add test
* add set validation test
* fix nested oneof serialization, add tests
* add model import
* remove models. prefix
* remove import models
* remove model import from api
* simplify from_dict
* add typing for return
* skip pydantic import in return type
* fix tests, fix enum
* restore more enum schema tests
* uncomment enum integer test
* clean up getfullargspec import in model
* clean up getfullargspec import
* fix deserilizatoin for nested oneof
* minor fixes, add tests
* fix regular expression
* add aiohttp samples, add tests
* remove default content type to json
* update template
* fix select accept, content-type
* move tests
* move tests
* fix url query parameters
* fix list
* fix samples
* fix param pydantic, add list as reserved word
* fix auto-generated doc
* fix readme
* fix list, fix special variable name with var_
* fix Literal in python 3.7
* fix default configuration
* fix aiohttp tests
* set default api client instance
* deprecate get_default_copy method
* fix enum model
* fix enum serializatio/deserialization
* add github workflow support
* add regular expression validator
* add enum validator
* better model import
* fix file, remove x-py-import-models
* rename local var
* better model example
* fix regular expression warning, add special_name test, whitelist schema
* skip self import
* update samples
* various fixes
* add base64, json as reserved word
* add http signature support
* add http signature test
* add additioanl properties support in python client
* add decimal support
* use strictstr instead of constr
* fix test with virtualenv
* add nullable support
* add readonly support
* add model name caching
* fix circular reference import
* add onelook discriminator lookup
* add tests
* update samples
* fix locale
* Fix client legacy generator asyncio README code example
* test python-nextgen in circleci
* fix pom.xml
* update python to 3.7.15
* test with python 3.7.12
* various updates
* fix python legacy
2022-12-17 16:05:47 +08:00
John Mitchell
2a33229158
Support for GSON Decoder in Java Feign Generator ( #14254 )
...
* Supporting Gson decoder in Feign
* Supporting Gson decoder in Feign
* Fixing test failures - and ensuring Jackson is used as the default if nothing selected (back compatible)
* Adding in sample files
* Updating docs
* Switching to echo server version
* Adding feign-gson to the github workflow
* Empty-Commit
2022-12-17 15:40:14 +08:00
Vladimir Svoboda
d90c9a6f3b
Add support for Angular v15 ( #14231 )
...
* Add support for Angular v15
Support for:
- rxjs 7.5.5
- ngPackagr 15.0.2
- zonejs 0.11.5
- typescript >=4.8.2 and <4.10.0
Note that tsTickle is not added to the dependencies when generating for
Angular 15, as:
- it is not a real dependency
- tsTickle is compatible with any of the TypeScript versions that
Angular 15 supports.
* Generate samples for Angular v15
- typescript-angular-v15-provided-in-root
- typescript-angular-v15-query-param-object-format
* Drop sample typescript-angular-v15-query-param-object-format
* Fix typo
* Add tests for sample
Use credentials instead of api_key to avoid deprecation warnings when
initialising ConfigurationParameters.
* Update samples/client/petstore/typescript-angular-v15-provided-in-root/package.json
* Fix tests by removing context initialisation
Also updated the test dependencies.
Co-authored-by: Esteban Gehring <esteban.gehring@gmail.com>
2022-12-09 15:24:55 +01:00
William Cheng
b8b25e8ae0
Fix query parameters encoding in Java apache-httpclient ( #14195 )
...
* fix query parameters encoding in java apache-httpclient
* rearrange tests
* add new files
2022-12-08 00:30:07 +08:00
Hui Yu
12a6ea7beb
[C][Client] Always send integer or boolean query parameters to the API server ( #14019 )
...
* [C][Client] Always send integer or boolean parameters to the API server
* Add fake endpoint with integer and boolean parameters
2022-11-29 14:39:18 +08:00
William Cheng
3a26da76b0
Better tests for Java native client ( #14132 )
...
* add echo tests with java native client
* fix echo server
* fix github
* add npm install
* update samples
* add license header
* update smaples
* add test for array of string
* fix java native respone type casting
* better code format
* add license header
2022-11-29 14:18:14 +08:00
William Cheng
90a8b4effb
[PHP] better PHP symfony test ( #14117 )
...
* better php symfony test
* trigger build failure
* Revert "trigger build failure"
This reverts commit ed7a57ead2726705fe733a7027717b864810843f.
* update samples
2022-11-25 15:01:02 +08:00
William Cheng
980062f2bb
Improve Java native, apache-httpclient with better spec ( #14109 )
...
* improve java native, apache client with better spec
* fix java native async tests
* regenerate java native tests
2022-11-24 21:48:09 +08:00
devhl-labs
74441fde9f
[csharp-netcore] Removed net5, added net7 ( #14003 )
...
* removed net5, added net7
* bumped github action dotnet version
2022-11-18 00:50:29 +08:00
Elric Milon
1670e952ff
[Rust] Add support for reqwest-middleware when using reqwest ( #13946 )
...
Co-authored-by: Elric Milon <whirm@gmx.com>
2022-11-11 18:25:01 +08:00
Nathan Baulch
9f1fa0e440
Fix another batch of spelling typos ( #13915 )
...
* Fix typos
* Remove repeated words
* Minor grammar fixes
2022-11-07 21:30:24 +08:00
William Cheng
6a1acd89a1
Add array tests to java okhttp-gson client ( #13913 )
...
* array test to java okhttp-gson client
* better code format
* add ClientTest.java to test_file_list.yaml
2022-11-04 20:01:01 +08:00
William Cheng
a020170ff3
[java][client] Fix config, add more samples for testing ( #13912 )
...
* fix config, add more samples for testing
* update samples
2022-11-04 18:17:34 +08:00
cachescrubber
5221682086
[Java][Client] Support annotationLibrary=none to remove swagger annotations ( #13869 )
...
* Support annotationLibrary=none in JavaClientCodegen
* Add example using annotationLibrary=swagger1
* Support annotationLibrary=none in libraries
* Fix missing curly brace.
* fix if statement condition
* Support {{#swagger1AnnotationLibrary}} in java/rest-assured
* Adopt JavaModelTest
* Generate docs
* Generate samples
* clean up java feign files
* clean up feign samples
* fix resttemplate, native
* fix resttemplate withXml
* fix webclient
* fix java-jersey2, vertix
* fix googleapi client
* fix rest assured
* fix rest assured
* update apache-httpclient
* fix jersey2 special character
* fix resteasy
* fix jersey2
* update samples
* fix jersey2, okhttp streaming
* update okhttp-gson
* update samples
Co-authored-by: William Cheng <wing328hk@gmail.com>
2022-11-04 17:07:46 +08:00
William Cheng
2947d147b4
Merge remote-tracking branch 'origin/master' into 6.3.x
2022-11-01 17:42:59 +08:00
cachescrubber
b54299fffa
Spring request mapping mode ( #13838 )
...
* Introduce RequestMappingMode option
* generate docs
* Add test case using interfaceOnly
* Generate Samples
* Add requestMappingMode: iface to bin/configs/spring-boot-oas3.yaml
* Restore #12250 : Move Feign Client url parameter under condition.
* Rename iface to api_interface.
2022-11-01 09:44:01 +08:00
Thibault Duperron
574a70c315
[JAVA] Handle camlCase with $ as first char ( #13292 )
...
* Lowercase first char and not first letter for variable names
* Samples
* Limit caml case fix impact with cli a property
2022-10-28 21:36:04 +08:00
Neal Granger
3501771a2e
Fix missing imports when using allOf composition ( #13813 )
2022-10-25 10:33:34 +02:00
Antti Leppä
11c43c3c2b
Added Kotlin Vert.x client ( #13594 )
...
* Initial version of Kotlin Vert.x client
* Initial version of Kotlin Vert.x client
* Initial version of Kotlin Vert.x client
* Fix for parseDateToQueryString issue in vert.x kotlin client
* Moved common methods from api to ApiClient in kotlin vert.x client
* Fixed issue with absolute URLs
* bearer auth for oauth
* empty request headers fix
* missing import and typo
* added uri template dependency
* added api abstractions to client generator
* added full import form infrastructure
* removed fail on unknown properties to response body parsing
* fixed error response parsing
* replace vertx client name to more unique
* multiline content type
* optional responses added to template
* additional annotations for kotlin client
* Added additionalModelTypeAnnotations parameter support to AbstractKotlinCodegen
* Updated samples and documents
* Fixed issues with gson and moshi serializers with kotlin-jvm-vertx client
* Added sample configs for kotlin-jvm-vertx clients with gson, jackson and moshi
* Added samples for kotlin-jvm-vertx clients with gson, jackson and moshi
* Included kotlin-jvm-vertx samples to test build
* Updated samples
Co-authored-by: Katja Danilova <katja.danilova@protonmail.com>
2022-10-19 22:29:34 +08:00
William Cheng
c81c131c46
Merge remote-tracking branch 'origin/master' into 6.3.x
2022-10-16 17:47:47 +08:00
William Cheng
e02ebd822a
Merge pull request #13513 from tjquinno/helidon-generation
...
Add server and client generators for Helidon
2022-10-16 16:30:52 +08:00
William Cheng
866d67a78f
Move some travis tests to github workflow, remove redundant c# test ( #13704 )
...
* move some travis tests to github workflow, remove reduntant c# test
* setup ruby
* switch to setup-ruby
* bundle install
* remove bash
* remove bundle install
* remmvoe gemfile
* add more folders in tab detection
* comment out java folder in tab detection
* undo changes in tab detection
2022-10-16 16:20:49 +08:00
devhl-labs
f11cb7f17d
[csharp] Delete and build samples ( #13641 )
...
* delete and build samples
* how did this not get committed?
* how did this not get committed?
* how did this not get committed?
* fixed csharp netcore functions
* reverted two files
* restored manually created tests
* reverted some unintentional changes
* restored unintended changes
2022-10-16 10:18:48 +08:00
William Cheng
8548a63d96
[Crystal] add require "big"
for decimal ( #13696 )
...
* add require big, add tests
* add new files
2022-10-15 22:43:40 +08:00
tim.quinn@oracle.com
5b3a7b0cff
Change sample generation config to use full project option
...
Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
2022-10-14 10:15:56 -05:00
tim.quinn@oracle.com
638c5201c4
Add config files for samples, update services declarations, add test resources and code, add Helidon client and server sample profiles to pom
...
Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
2022-10-11 13:30:56 -05:00
Jonas Reichert
22086e4f3c
[swift5] support both date and date-time formats ( #13520 )
...
* add withoutTime formatter
* add DateWithoutTime
wip
* fix CI
# Conflicts:
# samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/DateWithoutTime.swift
* implement flag and adjust tests
* generate samples and docs
* docs
* update samples
* remove samples of legacy python generator
* Revert "remove samples of legacy python generator"
This reverts commit 28da78f99dcaa6cf761367b0a2d2c3fddf4803ec.
* review remarks
* generate samples
* fix
* review remarks
* remove samples
* generate swift 5 samples
* generate csharp examples
* docs
* Revert "generate csharp examples"
This reverts commit d1deb17dbcd04b9b00d9ad4a08ce55bedd960de8.
* Revert "generate swift 5 samples"
This reverts commit 968e859bfe3ce631f174d10f10983ed2f5c09486.
* Revert "remove samples"
This reverts commit a43d21529ba6a9e615671729d970ec7ef9662402.
* manually remove FILES
* regenerate files
* reviewers remarks
* delete all date without times
* update config of alamofireLib to use new attribute and generate samples again
* docs
2022-09-26 17:39:35 +01:00
William Cheng
d46189bb28
Add .net framework 4.8 support ( #13504 )
...
* add .net framework 4.8 support
* add dependency, test in appveyor
* update doc
2022-09-26 11:02:39 +08:00
Justin Black
7e73645303
Switches python-experimental in as the primary python client ( #13501 )
...
* Changes python to python-prior
* python -> python-prior, python-experimental->python
* Renames sample spec directories
* Samples regnerated
* Regenerates docs
* Fixes test
* Samples regenerated
* Updates renerators list
* Fixes made to python paths in pom.xml
* Fixes node4 sh file paths
2022-09-24 16:19:38 +08:00