martin-mfg
f5d31c5214
Log Warn Messages for ineffective Schema Validations, updated ( #14759 )
...
* Implement WARN messages for ineffective schema validation constraints
* Implement tests String, Number, Object schema validations
* Implement HashSet to store Validations for different types
* Revert Validation Helper functions; Add Test cases for Any and Boolean
* Implement Unit Test for Array with inffective schema validations
* Reformat Code; Optimize Imports
* Add assertions to ineffective validation tests
* Add Test case for Null Schema Validations
* Adjust log level and message
* Merge commit ... into issue-6491
---------
Co-authored-by: Chidu Nadig <chidu.nadig@gmail.com>
2023-03-14 11:16:18 +08:00
Yannick Wiesner
ecd28b2090
JAX-RS Spec: Stop generating @NotNull Validation for required & optional properties ( #12575 )
...
* Stop generating @NotNull Validation for required & optional properties
* correct linebreak and add tests
* add samples in a separate folder
2023-03-14 00:39:31 +08:00
Mathias Dierickx
e52a9fd961
Add missing ConfigureAwaits for csharp-netcore generator ( #13664 )
2023-03-14 00:29:03 +08:00
William Cheng
dbc6c82446
minor fix to isPassword ( #14942 )
2023-03-13 23:37:40 +08:00
Romain Bioteau
59be28cc8a
feat(password): add isPassword
codegen property ( #13982 )
...
Expose `isPassword` codegen property. This property can be used in the
mustache templates to handle specific generation use case. _e.g._:
* hiding the string value of password fields in generated toString()
methods
* use more specific types like `char[]` instead of `String` in
[Java](https://stackoverflow.com/a/8881376 )
Closes https://github.com/OpenAPITools/openapi-generator/issues/9124
2023-03-13 23:23:48 +08:00
Sascha Peilicke
df58ee3829
[Kotlin-Spring]: Dont't make readOnly properties nullable ( #14509 )
...
Resolves #14280
2023-03-13 23:14:02 +08:00
KlausH09
245851116f
[Kotlin-Spring] add skip-default-interface option ( #14662 )
2023-03-13 22:51:49 +08:00
Nick Ufer
23cf8368e8
[Rust] fix: removes replacement which makes x-tag-name incompatible with spec ( #14746 )
2023-03-13 22:40:16 +08:00
Jonas Reichert
f45523dd1a
[swift5] fix modelNamePrefix and -suffix for reserved types ( #14768 )
...
* only add suffix or prefix if type is not a primitive or from dependency
* add tests
* add sample
* add second API with prefix and suffix
* add primitives
* add missing pom
* add missing shell script
* fix cycle dependency
* generate samples
2023-03-13 09:42:24 +00:00
Robin Karlsson
564939a4a8
[java][jersey] Remove double brace initialization and some more jersey cleanup ( #14783 )
...
* Remove double brace initialization
* Use diamond operator
* Less clutter in generated api classes
* Optimize isJsonMime
* Revert change in escapeString
Skip toString() on string parameters.
* Fix edge-cases
A ServerVariable without enumValues and/or operationServers
with any ServerVariables would lead to invalid code.
2023-03-13 16:42:37 +08:00
David Weinstein
43697d2cfb
[erlang-client] Fix Path ( #14821 )
2023-03-13 15:40:43 +08:00
devhl-labs
e9fed506b3
used the date format ( #14936 )
2023-03-13 15:25:29 +08:00
devhl-labs
8785acea7c
added samples for unsigned ( #14938 )
2023-03-13 15:24:45 +08:00
William Cheng
0f2156191f
add tests to jaxrs-cxf-cdi generator ( #14937 )
2023-03-12 23:43:39 +08:00
Antoine Reilles
72871cf930
[cxf-cdi] use InputStream for binary body ( #14439 )
...
Use a single InputStream instead of "File".
This allows the generated code to build in case of a definition like:
requestBody:
content:
text/plain:
schema:
type: string
format: binary
This fixes #9372
2023-03-12 23:24:30 +08:00
William Cheng
790b0be964
update option description ( #14932 )
2023-03-12 16:47:32 +08:00
William Cheng
0c41a7c1b4
Minor bug fix in openapi normalizer ( #14924 )
...
* minor bug fix in openapi normalizer
* add test
* better code format
* fix hasCommonAttributesDefined
2023-03-12 15:28:16 +08:00
devhl-labs
3a940c93cc
[csharp-netcore][aspnetcore] Added examples ( #14927 )
...
* added examples
* added examples to aspnet
2023-03-12 15:07:54 +08:00
devhl-labs
2b7007b653
[csharp-netcore] Moved formats to separate file ( #14894 )
...
* add unsigned integer/long support to c# netcore client
* moved formats to separate file
* moved formats to cli options
* moved formats to cli options
* reverted unintended changes
* reverted unintended changes
---------
Co-authored-by: William Cheng <wing328hk@gmail.com>
2023-03-12 15:05:35 +08:00
William Cheng
140d941da2
[csharp-netcore] Add unsigned integer/long support ( #14885 )
...
* add unsigned integer/long support to c# netcore client
* undo change in test spec, samples
* new test spec
* update doc
2023-03-10 15:18:41 +08:00
William Cheng
c4b404dc2e
Decommission csharp-dotnet2 client generator ( #14911 )
...
* decommission csharp-dotnet2 client generator
* update doc
2023-03-10 14:30:32 +08:00
Brahim Hadriche
f3960b2116
[v2] (RFC) Csharp netcore generator supports UnityWebRequest library ( #14870 )
...
* Base impl
* Improve Unity support
* update samples
* Sync bool property
* Update samples
* Set support file property
* Address comments
* Fix test asmdef
* Fixes for WebGL support
* Add note about Unity version
* Add Unity Sample
---------
Co-authored-by: William Cheng <wing328hk@gmail.com>
2023-03-10 14:17:50 +08:00
William Cheng
f9efb7b2fb
[OpenAPI Normalizer] update SIMPLIFY_ONEOF_ANYOF to convert enum of null to nullable ( #14898 )
...
* reorganize openapi normalizer tests
* add the logic to simply oneof anyof rule instead
* minor fix
2023-03-09 11:10:30 +08:00
William Cheng
77dd4990a4
update C# client dep, update samples ( #14908 )
2023-03-09 11:05:59 +08:00
Andre Vegas
d56a55a06b
Fixing missing openApiNullable config for java apache-httpclient generator ( #14828 )
...
* 14827 - fixing missing openApiNullable config for java apache-httpclient generator
* 14827 - run PR steps updating examples & docs
* 14827 - fixing test data
2023-03-09 00:05:47 +08:00
Jorge Rodríguez Martín
9705617f93
[Java][Resttemplate] Normalize the RestTemplate ApiClient ( #14845 )
...
* Normalize resttemplate
* Update samples
2023-03-08 23:57:05 +08:00
Volker Suschke
c81ff5801d
[Kotlin-Spring] Remove wildcard imports from mustache templates [ #14652 ] ( #14899 )
...
* [Kotlin-Spring] Remove wildcard imports from mustache templates [#14652 ]
* [Kotlin-Spring] Update sample files [#14652 ]
2023-03-07 16:23:46 +00:00
William Cheng
4ed3cd9233
add new openapi-normalizer rule: ADD_UNSIGNED_TO_INTEGER_WITH_INVALID_MAX_VALUE ( #14891 )
2023-03-07 21:46:11 +08:00
William Cheng
e38ea578f8
Better support of inline allOf/anyOf/oneOf schemas ( #14887 )
...
* better support of inilne allof schemas
* add test file
* better handling of anyof, oneof inline schemas
* update samples
* add tests for nested anyof
* better code format
2023-03-07 15:53:53 +08:00
William Cheng
70faa6b15c
better support of allOf with 1 sub-schema ( #14882 )
2023-03-07 00:35:34 +08:00
William Cheng
d497c3d087
[python-nextgen] Better docstring/documentation ( #14880 )
...
* better docstring/documentation in python nextgen client
* update instruction in test files
2023-03-06 21:22:43 +08:00
William Cheng
8ede021ec5
remove api import from model tests in csharp-netcore client ( #14889 )
2023-03-06 16:29:40 +08:00
Bruno Coelho
5dc0b70081
[swift5][client] remove deprecated APIs ( #14635 )
...
* [swift5][client] remove deprecated APIs
* [swift5][client] remove deprecated APIs
2023-03-05 11:35:51 +00:00
Bruno Coelho
4bb8372340
[swift5][client] improve headers order ( #14636 )
2023-03-05 11:33:05 +00:00
devhl-labs
2a9fb7b6e7
removed double encoding ( #14883 )
2023-03-05 10:09:57 +08:00
William Cheng
46fb49ecd0
[python-nextgen] Add pyproject.toml ( #14861 )
...
* add pyproject.toml in python-nextgen client generator
* minor fix
2023-03-04 14:14:43 +08:00
William Cheng
1beec7ef87
Merge remote-tracking branch 'origin' into 7.0.x
2023-03-03 21:52:50 +08:00
William Cheng
39e27a804d
[python-nextgen] better enum naming ( #14869 )
...
* better handling of enum naming in python nextgen
* remove unused import
* update samples
* update samples
* map dot
2023-03-03 17:54:10 +08:00
Dan Čermák
e535066a85
[python-nextgen] Add @overload for api methods to handle async requests ( #14851 )
2023-03-03 15:51:59 +08:00
William Cheng
c50e449cf5
Disable unit tests to prevent build from failing ( #14872 )
...
* disable ts tests
* disable ts test
* fix template tests
* add sleep
* Revert "add sleep"
This reverts commit bdb14a36770ff985cc2dd517c82640d168e6a18b.
* disable template tests
2023-03-03 15:18:12 +08:00
Terence Honles
057a56a827
fix(typescript-angular): only import services if providing them ( #14864 )
...
* fix(typescript-angular): only import services if providing them
* update samples
2023-03-02 15:17:31 +01:00
Terence Honles
c2f244ccfa
fix(typescript-angular): fix model filename including modelNamePrefix ( #14859 )
...
This change removes the modelNamePrefix from the API import filename
to be consistent with the processing in the rest of the class.
2023-03-02 14:49:14 +01:00
Oleh Kurpiak
440861270e
[Core] Close Stream<Path> on spec merger ( #14862 )
2023-03-02 15:07:46 +02:00
Oleh Kurpiak
ca3e8be1bc
[Java][Spring] version parameter ( #14847 )
2023-03-02 13:29:01 +02:00
William Cheng
60e2d605c4
[python-nextgen] fix enum default value ( #14846 )
...
* fix enum value
* add test for default value
* update samples, better code format
2023-03-02 17:36:38 +08:00
Kuzma
c8fab3f40a
[Typescript] Use for of instead of for in at ObjectSerializer ( #14849 )
...
* [Typescript] Use for of instead of for in
* fix for
* regenerate samples
2023-03-01 22:16:01 +01:00
Joe Spandrusyszyn
2458743257
[Typescript-Axios] Add options to TypescriptAxios reserved words ( #14650 )
...
* Add options to TypescriptAxios reserved words
* Update generated docs
---------
Co-authored-by: Joseph Spandrusyszyn <joseph.spandrusyszyn@bstock.com>
2023-03-01 15:48:19 +01:00
jmejane
350fb82bed
[K6] Enhancement: Make operationId accessible inside requests ( #14787 )
...
* feat(k6): Make operationId accessible inside requests
* feat(k6): Update sample script
* feat(k6): re-add space deleted by formater
2023-03-01 22:46:12 +08:00
Adam Stoffel
43493a94fe
[typescript] Fix Invalid path separator for imports on Windows ( #14754 )
...
Fix for #14753
2023-03-01 15:41:18 +01:00
Antoine Lucas
e1ab25c915
Add constructor with required parameter for Spring ( #14822 ) ( fix #9789 )
...
* Add constructor with required parameter for spring
Fix #9789
* [Java][Spring] constructor with required args
---------
Co-authored-by: Oleh Kurpiak <oleh.kurpiak@gmail.com>
2023-03-01 15:09:47 +02:00