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
Mostafa Aghajani
9d621342e0
[Kotlin] Fix wrong default value is generated for non-integer numbers ( #13507 )
...
* ISSUE-13506 fix number value for default values when they are number
* ISSUE-13506 test and sample update
2022-09-23 15:02:49 +01:00
snebjorn
54e712a424
fix(typescript-angular): compile error with queryParamObjectFormat
and tsc --strictNullChecks
( #13431 )
...
fixes #13429
2022-09-19 21:06:50 +02:00
Ahmed Fwela
2a8ea162d7
[dart-dio] handle polymorphism + discriminator serialization ( #12295 )
...
* return structured serializer
* generate samples
* implmented postProcessAllModels to fix assignment of inherited models
* Templates now respect inheritance
* regen dart samples
* only built value support for now
* ignore unused elements
* fixed tests
* new configs to test oneOf
* add some helper vendorextensions for oneOf support
* update templates
* regen samples
* resolve conflicts
* fix missing serializers
* Updated samples and fixed merge conflict
* updated samples
* Follow java conventions
* Follow java conventions
* updated samples
* update sampels 2
* update samples 3 ...
* fix underscores
* fixed missing imports from java code
* update config names
* updated samples
* updated built_value deps
* regen samples
* workaround built_value abstract builders google/built_value.dart#1180
* regen samples
* updated test pubspec
* temp fix rewriteImports for Lists and maps
* Add new samples to CI
* Improve white spaces & formatting
* fix enums not getting assigned correctly
* update samples
* fixed typo
* regen samples
* remove repeating imports
* regen samples
* ignore unused_element warning
* updated tests
* regen samples
Co-authored-by: Peter Leibiger <kuhnroyal@gmail.com>
2022-09-05 16:44:04 +08:00
Bill Collins
f6be1d07bc
Do not generate new models for readonly schema references ( #13303 )
...
* Add example of nested schema issue
* Add failing test case
* Special case properties with a single allOf and readonly
* Remove rogue file from FILES
2022-09-04 18:01:55 +08:00
William Cheng
cebdbb6a11
add additional properties support in r client ( #13317 )
2022-08-31 15:06:40 +08:00
Lukas Woodtli
27f3a5c36d
Small fixes and cleanup on cpp-restbed-server ( #13305 )
...
Some small issues sneaked into the improved restbed generator.
2022-08-29 18:26:13 +08:00
William Cheng
b55fa261f3
add oneOf discriminator lookup support ( #13301 )
2022-08-29 01:24:01 +08:00
Lukas Woodtli
d2e60f59b3
Cpp restbed server improvements ( #13030 )
...
* Keep old implementation of cpp-restbed generator as cpp-restbed-server-deprecated
* Refactor operation path processing
* Restructure samples directory to better allow writing tests
* Improve templates for cpp-restbed-server
Improve templates
* Add integration tests
* Improvement in templates for cpp-restbed-server
* Fix tests
* Improve cpp-restbed generator
* Improve cpp-restbed-server
* Add more tests
* Add suppoert for arrays of enums in query params
* Generate CMakeLists.txt
* Small improvements and example in Readme
* Add integration tests to maven project
* Update doc
2022-08-27 18:10:28 +08:00
William Cheng
b7c224b374
minor enhancement to the JS apollo generator ( #13297 )
2022-08-27 13:39:58 +08:00
João Neto
62a0878bae
Combine javascript and javascript-apollo generators ( #13270 )
...
* Combine javascript and javascript-apollo generator functionality
* Combine javascript and javascript-apollo templates
* update configs
* deprecate javascript-apollo generator
* bonus magic string deletion ✨
* update samples
* update generator docs
* fix: include .babelrc in apollo generation
* update samples
* update samples
* rename javascript-apollo to javascript-apollo-deprecated
* fix javascript apollo library template
Apollo library now uses the partial_model_generic template file from the ES6 library, as it includes many fixes and improvements (including handling models with ill-named attributes)
* update samples
* Create javascript-apollo-deprecated.md
* Updated javascript generator template's gitignore
Updates .gitignore with that from https://github.com/github/gitignore/blob/main/Node.gitignore
Main reason for the update is to ignore the 'dist' folder with compiled files by default.
* javascript generator: merge api_test template files
The only difference is that Apollo is not designed for browser, so having a "if(browser)" check is useless, but doesn't hurt.
* update docs
* cleanup
* avoid possible config clash
* update javascript-apollo sample
* update javascript-es6 sample
I kept the pom.xml from before
* update javascript-promise-es6 sample
kept pom.xml
* update samples
2022-08-27 13:29:35 +08:00
William Cheng
37c8a745c5
[protobuf] fix set, add tests ( #13286 )
...
* fix set, add tests for protobuf
* add new files
* update doc
* remove yaml
2022-08-26 18:25:16 +08:00
William Cheng
8ee22b8e97
Better enum tests for scala-sttp ( #13261 )
...
* better petstore tests for scala-sttp
* test scala sttp in github workflow
* test with jdk 11
* comment test
2022-08-24 01:55:45 +08:00
Jacob Halsey
6d82ac0806
[rust]: Remove unmaintained samples and specs ( #13193 )
...
* [rust]: Remove unmaintained samples and specs
* Fix checks
* move test file
* Fix test file
2022-08-19 15:45:48 +08:00