Noah Fontes
f6231d2488
Remove restrictions for additional property types ( #11802 )
...
When a schema specifies additionalProperties: true, we need not restrict
those properties to a particular type. This change sets the schemas for
them to AnyType instead of object.
From a generation perspective, this only changes the output for
generators that differentiate between AnyType and object in their type
mappings; most do not. This fixes at least one bug in the Go and
TypeScript generators.
2022-04-09 10:19:54 +08:00
Dennis Kliban
e783e9b780
Adds 'params_encoder' config option for Ruby clients using Faraday ( #9839 )
...
The partial templates were renamed because they no longer hold tls
settings exclusively.
fixes : #9838
2022-04-09 10:14:38 +08:00
Yuriy Belenko
cd56a4b1a1
[php-slim4] Add Mock Server ( #12044 )
...
* Setup Data Mocker as dev dependency
New 1.2.0 version of the package contains required factory class.
* Refresh samples
2022-04-09 09:43:07 +08:00
Josh Burton
97eca73160
[dart-dio] Adds support for enumUnknownDefaultCase to dart builtvalue enums ( #12080 )
2022-04-09 09:35:42 +08:00
William Cheng
6591d4e6fb
[PowerShell] better enum model support ( #12082 )
...
* better enum model/class support in powershell client generator
* add new files
2022-04-08 13:27:03 +08:00
Justin Black
d45f72da32
Eliminates handlebars helper warnings ( #12078 )
2022-04-07 15:35:15 -07:00
Justin Black
32295bf46f
[python-experimental] adds missing init files in endpoint modules ( #12077 )
...
* Adds mising init files inthe endpoint modules
* Reverts versin file
* Fixes test
* Samples regenerated
2022-04-07 13:23:52 -07:00
Justin Black
2e19371a26
Fix the null pointer exception when generating examples for schemas in python-experimental ( #12019 )
...
* Improves example generator for python-experimental
* Fixes quotes around date example
* Improves object schema examplple gen
* Samples regenerated
* Adds back in AnyType + oneOf discriminator handling
* Reverts version file
* Returns early in example gen for array composed schemas
* Adds toExampleValue method to python-exp
* Improves pattern regex sample generation in python-experimental
* Fixes comment typo
2022-04-07 11:17:37 -07:00
Bodo Graumann
510f79989a
[typescript] Support esbuild, second attempt ( #11465 )
...
* Install correct typings for url-parse
* Use es modules compat mode when es6 output is selected
* Consolidate typescript sample generation naming scheme
* Regenerate samples
* Create new typescript sample to test esmodules in browser
* Expose RequiredError type
* Make browser integration tests pass locally
* Remove cookie tests, because we don’t allow cross-origin cookies
* Add output type to package definition
* Execute new browser tests in pipeline
* Install headless chromium dependencies in circle ci
2022-04-06 14:53:02 +02:00
Oleh Kurpiak
edfb3e123f
Reduce casting for operations processing ( #12002 )
2022-04-06 11:15:36 +08:00
William Cheng
66db259678
comment out error message debug ( #12056 )
2022-04-06 11:06:19 +08:00
William Cheng
a7e92786df
[PowerShell] add more tests to powershell client ( #12057 )
...
* add more tests to powershell client
* update spec
* update method name
* add new file
2022-04-06 10:24:32 +08:00
William Cheng
a596d5aec0
update jackson databind to newer version ( #12053 )
2022-04-05 18:09:23 +08:00
Katsuyuki Omuro
efc1a66ebc
[Ruby] Fix incorrectly capitalized identifier in apis template ( #12045 )
2022-04-05 17:50:44 +08:00
William Cheng
5cef7e613a
add response headers to api exception ( #12042 )
2022-04-05 17:24:41 +08:00
William Cheng
4e16146638
more checks in validateJsonObject ( #12041 )
2022-04-05 17:24:22 +08:00
William Cheng
cd41bc824b
[java] Add jersey3 support to the Java client ( #12046 )
...
* add jersey3 client support
* update code to support jersey3
* test jersey3 in ci
* update doc
* update sbt, gradle build files
2022-04-05 17:23:37 +08:00
William Cheng
3d8414fa6c
update ts samples
2022-04-05 11:40:34 +08:00
javier-garcia-meteologica
e8e1f6b500
feat(typescript-fetch): use ReponseError ( #10477 ) ( #10478 )
2022-04-04 20:31:47 +02:00
William Cheng
2d4a01aa70
Revert "Prepare 6.0.0 beta release ( #12039 )"
...
This reverts commit 914b539eea7097ad2b4323d20c8f95144782cb68.
2022-04-04 12:17:12 +08:00
William Cheng
914b539eea
Prepare 6.0.0 beta release ( #12039 )
...
* update to 6.0.0-beta
* update samples
2022-04-04 10:29:49 +08:00
Martin Delille
8466092087
Fix c++ warning ( #12009 )
2022-04-03 17:57:13 +08:00
devhl-labs
7b6fa755c1
[csharp-netcore] Composed primitives support in generichost ( #11924 )
...
* refactor nrt annotation
* enable nrt by default in .net6.0+
* use shorter nrt annotation
* build samples
* removed debugging lines
* fixed model and operatoin constructors
* reverted a commented line for comparison
* upgraded to System.Text.Json
* build samples
* build samples
* deleted samples to remove old files
* bug fixes
* bug fixes
* added cumpulsory property to codegen
* build samples
* fixed bug
* fixed bug
* fixes
* removed bugged code that wasnt needed
* build samples
* restored sorting and default values for required params
* fixed bugs in comparison
* fixed sort comparators
* recreate tests
* build samples...again...
* removed debugging line breaks
* simplified constructor signature
* inject json options
* build samples...again...
* build samples
* add support for composed primitives
* build samples
* build all samples
2022-04-03 17:29:49 +08:00
William Cheng
b54257d7ab
Support binary return format only in Ruby faraday client ( #11974 )
...
* support binary return format on in ruby faraday client
* add option to return binary data
* update condition
2022-04-03 16:55:15 +08:00
Jean-François Côté
48aae8eb4b
Fix NPE when passing null in a formData that is not required. ( #12028 )
2022-04-02 12:09:27 +08:00
Daniel Qian
41451ff5ee
fix #11958 [BUG] python generates wrong model name and model file name ( #11959 )
...
* fix #11958 [BUG] python generates wrong model name and model file name
Modify AbstractPythonCodegen.toModelName just like AbstractJavaCodegen.toModelName
* add unit test
* update samples and docs
by
./bin/generate-samples.sh
./bin/utils/export_docs_generators.sh
* fix AbstractPythonCodegen#toModelName logic, remove underscore
* update samples and docs
by
./bin/generate-samples.sh
./bin/utils/export_docs_generators.sh
2022-04-01 19:43:08 -07:00
Bodo Graumann
5d5e753e66
[typescript] Skip missing fields during deserialization ( #12016 )
...
* Skip missing fields during deserialization
* Regenerate samples
* Adjust tests
2022-04-01 09:25:25 +02:00
cachescrubber
7fb0fcb96c
Upgrade to Spring Boot 2.6.6/2.5.12 and Spring Cloud 2021.0.1. ( #12027 )
...
* Upgrade to Spring Boot 2.6.6/2.5.12 and Spring Cloud 2021.0.1.
* Generate Samples
2022-04-01 14:19:09 +08:00
William Cheng
6216046a8b
update samples
2022-04-01 11:04:19 +08:00
Mikko Maunu
8f4106f3e1
[Java][Native] Remove Javadoc warnings. fix #8692 ( #12017 )
2022-04-01 10:16:14 +08:00
Rick Lane
f824b413a6
Update spring dependencies ( #12024 )
2022-04-01 10:07:29 +08:00
Justin Black
a4e2dde745
Fixes issue where object in query parameter generates a NPE ( #12010 )
...
* Fixes issue 11946
* Fixes items assignment for deep object query params
* Adds fix for inline query param object schemas
* Fixes keyword name, changes it from mapBean[keyword]
* Reverts version file
2022-03-30 15:30:26 -07:00
Cameron Koegel
0c825ad301
update exceptions output ( #11989 )
2022-03-30 08:54:20 -07:00
Akhil Nair
a6bcef5b16
[PYTHON] Setting default value for Required variables ( #10809 )
...
* [req_vars_changes]
* Added new schema to generate samples to test the issue mentioned in the PR.
* Changed the variable name from setRequiredVars to initRequiredVars
* Added initRequiredVars as a generator additional property
* Regenerating the samples after rebasing the code with master branch
* Changed the description of additional property
2022-03-30 08:52:00 -07:00
devhl-labs
40d3331e78
[csharp-netcore] Inject json options ( #11862 )
...
* refactor nrt annotation
* enable nrt by default in .net6.0+
* use shorter nrt annotation
* build samples
* removed debugging lines
* fixed model and operatoin constructors
* reverted a commented line for comparison
* upgraded to System.Text.Json
* build samples
* build samples
* deleted samples to remove old files
* bug fixes
* bug fixes
* added cumpulsory property to codegen
* build samples
* fixed bug
* fixed bug
* fixes
* removed bugged code that wasnt needed
* build samples
* restored sorting and default values for required params
* fixed bugs in comparison
* fixed sort comparators
* recreate tests
* build samples...again...
* removed debugging line breaks
* simplified constructor signature
* inject json options
* build samples...again...
* build samples
2022-03-30 16:59:05 +08:00
bgong-mdsol
6a3a385f8c
convert header parameter to string ( #11991 )
2022-03-30 16:44:43 +08:00
Oleh Kurpiak
c71bc25aa2
[Java][Spring] use tag description from specification ( #12000 )
2022-03-30 16:43:28 +08:00
Yuriy Belenko
b3079f0848
Switch expected and actual params in PHPUnit tests ( #11992 )
2022-03-29 13:45:16 +08:00
Yuriy Belenko
9ce3d2bc3e
Fix form serialization typo from #11225 ( #11990 )
2022-03-29 13:06:04 +08:00
William Cheng
69c69df5f2
[CircleCI] update image ( #11929 )
...
* use supported images from circleCI
* skip scala-httpclient test
* new way to install r
* skip r test
* test go only
2022-03-29 10:58:00 +08:00
Mikko Maunu
8493a4ed42
fix #11342 Use https://search.maven.org/ for Maven Central links ( #11988 )
2022-03-29 10:24:22 +08:00
mkusaka
21c399f2b8
[typescript-fetch] Add stringEnums option ( #11976 )
...
* [typescript-fetch] add stringEnums option
* [typescript-fetch] add docs & samples
* [typescript-fetch] update samples
* [typescript-fetch] support 3.4 or lower version
* [typescript-fetch] update samples
2022-03-28 10:51:33 +02:00
Yuriy Belenko
956ad2aecc
[php] Fix JSON object deserialization ( #8481 )
...
* Fix JSON object deserialization
* Revert "Fix JSON object deserialization"
This reverts commit 42a4637e53020d8d3e921f72bc66de9d4ccd8151.
* Add JSON body decoding before deserialize call
* Add two more json_decode calls
Co-authored-by: Thomas Hansen <thomas@thomasphansen.dk>
2022-03-28 11:09:37 +08:00
William Cheng
6c1b68da91
[Java][okhttp-gson] better support for additional properties ( #11964 )
...
* add support for additiional properties in okhttp-gson java client
* deserialize with additional properties
* better handling of non-primitive type
* use entry set instead
* support disallowAdditionalPropertiesIfNotPresent
* remove additional properties in serialization
2022-03-27 16:56:25 +08:00
Hui Yu
0a9429f1a8
[C][Client] Free list or map memory when json parsing fails ( #11866 )
...
* [C][Client] Free list or map memory when json parsing fails
* [C][Client] Free list or map memory when json parsing fails (part 2)
* Note for unsupported data type
2022-03-27 14:58:45 +08:00
Oleh Kurpiak
8103ccdfa7
[Java][Spring] default value for list parameter ( #11961 )
2022-03-26 10:30:55 +08:00
cachescrubber
50bf764268
Spring Boot Dependency Upgrade ( #11960 )
...
* Dependency management: Upgrade Managed Versions
* spring-boot: add optional classifier to spring-boot maven plugin configuration
* Upgrade to spring-boot 2.5.10
* Generate Samples
* Upgrade to Spring Boot 2.5.11 / 2.6.5
* Generate Samples
2022-03-26 10:23:25 +08:00
Oleh Kurpiak
85df431ebf
Replace maps with models to reduce casting ( #11913 )
2022-03-25 00:48:41 +08:00
William Cheng
7370c4d3f8
update java samples
2022-03-25 00:42:07 +08:00
Cameron Koegel
2c4daeae0b
[Ruby] Added Support for Binary Media Data Return ( #11254 )
...
* update template files
* fixed binary data return
* update samples
* apply change to file download logic and regenerate samples
2022-03-23 21:19:31 +08:00