Justin Black
786c71f339
Adds hasVars ( #8928 )
...
* Adds getHasVars and setHasVars to IJsonSchemaValidationProperties
* Updates CodegenModel
* Updates CodegenProperty
* Updates codegenparameter
* Updates codegenresponse
* Adds testHasVarsInModel
* Adds testHasVarsInProperty
* Updates testHasVarsInProperty
* Adds testHasVarsInParameter
* Adds testHasVarsInResponse
* Samples update
2021-03-09 12:14:02 -08:00
Mehmet YUCE
86e418d57b
Fix not processing enums in cpp-pistache-server ( #8886 )
...
* Fix not processing enums in cpp-pistache-server
Defining a reusable enum as a component schema results in an empty
class. Following changes are made:
- activate 'postProcessModelsEnum' in 'AbstractCppCodegen'
- modify model templates for the 'cpp-pistache-server' project
As 'postProcessModelsEnum' is now available in the 'AbstactCppCodegen'
the 'enumVars' variables are now available in mustache templates for all
cpp based code generators.
As the 'AbstractCppCodegen' was touched all cpp based
samples were updated.
* fixes encountered on real world
* PR fixes
Co-authored-by: mfyuce <mfyuce@netas.com.tr>
2021-03-09 15:17:25 +08:00
William Cheng
065c524894
[C#][netcore] Fix deserialisation for models with additional properties ( #8912 )
...
* better check for additioanl properties serializer
* fix additional properties check
* use additonal prop serializer with model mappings
2021-03-09 15:15:33 +08:00
mentalfoundry
8110884aac
Update usage.md ( #8917 )
...
The command examples are out of date. The 'openapi-generator' command is now 'openapi-generator-cli'.
2021-03-09 15:14:57 +08:00
William Cheng
1ba323f058
Add tests for array of string serialization ( #8913 )
...
* add tests for array of string serialization
* update test file SHA
2021-03-09 08:53:05 +08:00
Chase Farmer
881553a484
Add Plaid to companies using the generator. ( #8930 )
2021-03-09 08:52:50 +08:00
Justin Black
8226269101
Fixes legacyDiscriminatorBehavior description ( #8931 )
...
* Fixes description
* Samples and docs updated
2021-03-08 13:39:12 -08:00
Tyler Ballast
f5151de9fc
Add whitespace to SDK documentation where necessary ( #8919 )
...
* Add a space between table title and the line above it to resolve issues when translating markdown to asciidoc
* Regenerate Samples
Co-authored-by: Tyler Ballast <tyler.ballast@reportix.com>
Co-authored-by: tballast <tyler.ballast@gmail.com>
2021-03-08 21:40:54 +08:00
William Cheng
bce0eb6c8f
fix header parameter naming ( #8861 )
2021-03-08 21:35:04 +08:00
William Cheng
7720c9f6bd
update samples
2021-03-08 19:05:16 +08:00
Jiri Kuncar
8cb4741248
[go][client] Fix example value for non string enums ( #8900 )
...
* [go][client] Fix example value for non string enums
* regenerated samples
2021-03-08 18:11:50 +08:00
Justin Black
101da6e434
Adds getAdditionalPropertiesIsAnyType to java schema classes ( #8908 )
...
* Adds getter and setter for AdditionalPropertiesIsAnyType in IJsonSchemaValidationProperties
* Removes venv
* Implements getter and setter in CodegenModel
* Implements getter and setter in CodegenProperty
* Implements getter and setter in CodegenParameter
* Adds getter and setter in CodegenResponse
* Creates setAddProps
* Removes comment
* Adds setAdditionalPropertiesIsAnyType invocations
* Updates samples
* Updates tests in testAdditionalPropertiesPresentInResponses
* Updates tests in testAdditionalPropertiesPresentInParameters
* Updates testAdditionalPropertiesPresentInModelProperties to check getAdditionalPropertiesIsAnyType
* Updates testAdditionalPropertiesPresentInModels
2021-03-07 09:42:47 -08:00
William Cheng
51a19e1c27
[C#][netcore] Call static method without creating instance ( #8889 )
...
* call static method without creating instance
* fix instance
* fix missing equal sign
* skip instance creation
* cast to T
* update httpclient apiclient.mustache
2021-03-07 17:45:14 +08:00
Internaional Network Support & Service - Glas
041d908963
Changed virtualan version from 1.0.0 to 2.1.7. Update readme.md and d… ( #8910 )
...
* Changed virtualan version from 1.0.0 to 2.1.7. Update readme.md and description in springboot generator.
* Updated virtualan link in spring.md.
* update samples
Co-authored-by: networkinss <oliver.glas@inss.ch>
Co-authored-by: William Cheng <wing328hk@gmail.com>
2021-03-07 09:38:31 +08:00
William Cheng
8509f6b25a
remove javascript-promise-es6/test/model/ModelReturn.spec.js
2021-03-06 22:51:19 +08:00
William Cheng
d279b79d2d
remove modelreturn.js spec
2021-03-06 21:53:43 +08:00
William Cheng
4ab17cfd96
Merge branch 'master' of https://github.com/openapitools/openapi-generator
2021-03-06 21:01:52 +08:00
William Cheng
e617f7c166
remove unused js test spec
2021-03-06 21:01:35 +08:00
Ethan Keller
d25df488bd
Fix String cast error on default object ( #8903 )
...
See #8896 .
2021-03-06 20:50:25 +08:00
William Cheng
bb6a858c32
update samples
2021-03-06 19:02:40 +08:00
delenius
7b5a583345
Make JS client case sensitive wrt. reserved words ( #8905 )
...
Fixes #8904
2021-03-06 18:40:06 +08:00
Pavel Sveda
e25fa8ed7d
Allow to set additional property of any type. Useful for Boolean values. ( #8507 )
2021-03-06 17:35:23 +08:00
Blackclaws
85fd96a9ce
[csharp-netcore] Make Blazor Webassembly compatible ( #8876 )
...
* Catch exception thrown in Blazor Webassembly when trying to access cookies
* Update samples
2021-03-06 15:50:48 +08:00
sunn
65a31f1d9f
Make header checks case insensitive as described in RFC ( #8874 )
2021-03-06 15:49:51 +08:00
Sean Kelly
a13b222764
[Qt5] Emit signal when api has finished processing all pending work ( #8884 )
...
* Fixes #8864
* More elegant solution
* Rerun sample generation
* Fix whitespace that was fixed in merge conflict
2021-03-05 21:43:26 +01:00
sunn
3a40818519
Updated test and fix/workaround failed tests ( #8899 )
2021-03-05 17:54:21 +01:00
Jeff Shillitto
641ddc7cee
Add Shotstack to users list ( #8897 )
2021-03-05 14:54:12 +08:00
William Cheng
ddc38b27bb
Merge remote-tracking branch 'origin/master' into 6.0.x
2021-03-05 00:06:38 +08:00
Oleh Kurpiak
976b4aa757
[Java] Additional enum type annotations ( #8389 )
...
* [Java] Additional enum type annotations
* [Java] Additional enum type annotations
2021-03-04 23:33:00 +08:00
William Cheng
e18d4b97e0
[csharp-netcore][httpclient] add tests, bug fixes ( #8885 )
...
* add tests to csharp-httpclient petstore
* fix basepath in tests
* fix response headers
* skip file upload test in httpclient
* update samples
* update tech committee
2021-03-04 16:02:31 +08:00
sunn
1983dfc122
Indendation and whitespace changes ( #8879 )
...
Indentation and code readability
2021-03-03 20:36:11 +01:00
William Cheng
4986ea8c93
update samples
2021-03-04 00:45:20 +08:00
William Cheng
0c37275224
[C#][netcore] update dependencies to newer versions ( #8872 )
...
* update csharp-netcore dep to newer versions
* restore Org.OpenAPITools.Test.csproj
* rollback CompareNETObjects version
* rollback .net test sdk
* use 15.9.2 for test
* rollback sdk test version
* Revert "rollback CompareNETObjects version"
This reverts commit c03c00facb8138ffe6ec9272e6c5e36351f2c5b0.
* Revert "Revert "rollback CompareNETObjects version""
This reverts commit acc66ae4f92a78eb59d4c0d77f1cff67df2c333f.
2021-03-03 20:12:56 +08:00
sunn
d4696157d6
Add QSet Header to the Helper ( #8873 )
2021-03-03 18:13:22 +08:00
Blackclaws
8c2a0ce6d6
[csharp-netcore] Fix handling of Dictionary query parameters and fix deepObject style parameter handling ( #8848 )
...
* DeepObject also for required parameters
* Fix NullPointerException on inline deepObject such as a Dictionary<string, string>
* Add deepObject in ParameterToMultiMap for deepObjects without explicit parameters
* Add some context to TODOs
* ParameterToMultiMap fixed in CSharp template for OAS 3 Dicts, taking deepObject into account
* Remove added whitespace
* Update samples
2021-03-03 16:59:29 +08:00
William Cheng
e6947d7c22
[C#] Better code format (remove trailing spaces) ( #8871 )
...
* remove trailing spaces
* remove trailing space, update samples (C#)
2021-03-03 16:46:12 +08:00
William Cheng
2b3b5a71cf
update samples
2021-03-03 16:29:52 +08:00
William Cheng
d96197bcbd
Merge remote-tracking branch 'origin/master' into 6.0.x
2021-03-03 16:19:20 +08:00
Sean Kelly
89b9802be3
[QT5] Support optional params using QVariant ( #8733 )
...
Use QVariant for optional parameters
2021-03-03 07:45:04 +01:00
Peter Leibiger
d31875f505
[dart][dart-dio] Fix failing master due to unstable test dependency ( #8870 )
...
* replace branch ref with commit ref (new release of http_mock_adapter coming soon)
2021-03-03 13:00:22 +08:00
basyskom-dege
950bb3d18f
added QSet as datatype for unique items ( #8830 )
2021-03-02 18:44:22 +01:00
agilob
83a5c3db1e
[dart] Default value is only available when nullable is not set ( #8854 )
...
* Default value is only available when nullable is not set (not false)
* Simplify isNullable mustache syntax
2021-03-02 18:06:45 +08:00
agilob
a34569f065
Correct use of loggers with placeholders and remove some redundant operations ( #8842 )
...
* Remove redundant operations
* Use logger correctly with object placeholders
* static compile of frequently used pattern
compile pattern ahead of time to reduce object creation and optimize
method
* Fix typo in method name
2021-03-02 17:24:25 +08:00
Peter Leibiger
5ce64756a6
[dart][dart-dio] Handle nullable/required header/query parameters ( #8837 )
2021-03-02 11:09:47 +08:00
Peter Leibiger
2ed702b339
[bug][dart][dart-dio] Improve parameterToString handling ( #8372 )
...
* [dart][dart-dio] Improve parameterToString handling
* add tests
* not sure this is complete but it is better than before and can serve as a baseline with the test cases
* Add a map parameter to FormData test
* Rename method to clarify what it actually does
* Couple more tests
2021-03-02 11:08:47 +08:00
William Cheng
07f8bde6c1
Test go-gin-server sample with go test -v
( #8855 )
...
* test go gin sample with `go test -v`
* install via go get
* update main.mustache
2021-03-02 11:07:25 +08:00
William Cheng
f7b2baf38e
Add ApiClient.mustache for http client library ( #8859 )
...
* add api client mustache for http client
* clean up api client template for restsharp
* test c# httpclient in appveyor
* remove apiclient.cs
* regenerate apiclient.cs
* set library for http client
* remove Libraries
* use libraries folder
2021-03-02 10:52:05 +08:00
basyskom-dege
16e7408eb7
[C++][Qt5] Added function to add a new Server. Removed unused variables ( #8725 )
...
* cleanup unused variables,added addServerConfiguration() function
* added setNewServer functions
* using QUrl instead of QString
2021-03-01 10:55:28 +01:00
William Cheng
be91db5574
Update C# readme ( #8858 )
...
* update readme related to C# httpclient
* update samples, readme
2021-02-28 23:57:01 +08:00
William Cheng
125e6a439b
better code, update sample for erlang client gen ( #8853 )
2021-02-28 22:38:50 +08:00