William Cheng
2bfc5a3958
[Scala] added new scala-cask generator for the cask framework ( #18344 )
...
* Ran `./new.sh -n scala-cask -s` to generate a new Scala Cask impl
* removed scala-cask-petstore
* Added Scala-cask param parser for BigDecimals
* added scala cask to samples
* splitting out validation and json
* Added GitHub workflow support
* regenerated cask samples
* cask build fix for local builds
* regenerated samples
* trying to reproduce failed cask build. checking in compiles sources, which have been reformatted
* reverted whaitespace change
* cask fix - adding gitignored files
* scala cask toLowreCase fix
* scala cask toUpperCase fix
* cask regenerated samples
* improved exception handling for scala cask
* File separator fix for windows
* Noob fix for cask
* regenerated api package
* Removed environment variable settings, debug code
* Updated samples
* moved scala-cask output
* Regenerated samples
* scala cask fix
* Updated scala cask settings for more typical package structure
Removed cask client samples
* cask - reran generate samples
* Removed duplicate ScalaCaskServer entry
* minor enhancements
* update samples
* update templates
---------
Co-authored-by: aaron.pritzlaff <aaron@kindservices.co.uk>
2024-04-10 18:49:59 +08:00
William Cheng
ef36ea410e
Fix method naming for openapi normalzier, openapi ignore list option ( #18348 )
...
* fix openapi normalizer naming issue in config
* update openapi generator ignore list setting
* update
* fix
* update sample config
* update doc
2024-04-10 17:09:48 +08:00
William Cheng
eb506ee776
[java][native] use type reference instead to fix compilation issue in JDK11 ( #18346 )
...
* use type reference instead to fix compilation issue in jdk11
* fix
2024-04-10 11:29:51 +08:00
William Cheng
a651376b18
fix java native compilation errors
2024-04-10 02:57:41 +08:00
William Cheng
abfeb6e035
Merge branch 'master' of https://github.com/openapitools/openapi-generator
2024-04-10 02:33:15 +08:00
William Cheng
edd91063b4
hide generation timestamp in java microprofile samples
2024-04-10 02:33:01 +08:00
Ege Sucu
1a06e3e0fb
[swift] Added solution for deprecated "UTTypeCopyPreferredTagWithClass" ( #18330 )
...
* Added solution for deprecated "UTTypeCopyPreferredTagWithClass"
UTTypeCopyPreferredTagWithClass is deprecated with iOS 15, so apps targeting iOS 15+ were getting this warning on any auto-generated code. This solution will solve that warning and works both iOS 15 and below.
* Project built
* macOS Related fixes applied
2024-04-09 18:20:48 +01:00
Knut Erik Langdahl
6a2ad134c6
[kotlin] Add support for modelNameMappings ( #18342 )
2024-04-10 01:19:52 +08:00
William Cheng
d6749f8a0e
update samples
2024-04-09 20:49:23 +08:00
Joakim Holm
3cb3fc2898
Add Generated annotations to more classes ( #17736 )
2024-04-09 16:39:53 +08:00
Lionel Tesolin
a245e86b74
Update dataClass.mustache ( #18205 )
...
Added the missing additionalModelTypeAnnotations for the Kotlin data class generator
2024-04-09 16:25:44 +08:00
William Cheng
b2a7f435c8
"==" enum value generates "_" in Java which is invalid since Java 9 ( #18338 )
...
* #17276 "==" enum value generates "_" in Java which is invalid since Java 9
* update doc
---------
Co-authored-by: Julien BÉTI <jbeti@cosium.com>
2024-04-09 12:21:54 +08:00
Beppe Catanese
45a657f59d
Deal with boolean field ( #18294 )
2024-04-09 11:28:48 +08:00
William Cheng
83b45fd1e8
[java][okhttp-gson] Fix oneof, anyof for array type ( #18324 )
...
* fix oneof, anyof for array type in java okhttp-gson
* fix oneof
* fix add tests
* clean up comments
* update
* add new files
2024-04-08 22:20:23 +08:00
sbilz
b2faf39ac7
Update README.md with consistend dmtech-sponsoring-link ( #18329 )
2024-04-08 20:41:14 +08:00
Zishun (Zack) Wei
453facc81c
Fix 18271: Circular imports on AllOf generation with REFACTOR_ALLOF_WITH_PROPERTIES_ONLY=True ( #18272 )
...
* fix issue 18271
* the same update for python-pydantic-v1
* add test
* update samples
* update samples
* put properties under allOf for python client tests
* update samples
* add a test in test model
2024-04-08 19:01:01 +08:00
sbilz
2c663561ef
update dmtech-sponsoring-link ( #18326 )
2024-04-08 18:59:01 +08:00
Michito Maeda
101b3fcc35
Removed unused file ( #18325 )
2024-04-08 15:44:08 +08:00
devhl-labs
79fe176ef2
fixed operation parameter handling ( #18322 )
2024-04-08 10:15:31 +08:00
Michael Esemplare
3f143a3b5a
Fix #17768 : Delegate Incorrectly generated when useOptional True ( #18278 )
...
- Update moustache dataType value to >optionalDataType section to use Optional DataType when it is a BodyParam and not reactive.
2024-04-07 23:33:00 +08:00
Taylor Becker
560089e4c7
Kotlin: Do not escape/sanitize quoted enum values ( #18305 )
2024-04-07 22:33:16 +08:00
Francisco Bretal
a91d8e2c57
fix: backticks are now unescaped ( #18318 )
2024-04-07 22:26:58 +08:00
William Cheng
494d74ab82
remove duplicated ( #18320 )
2024-04-07 22:25:03 +08:00
condorcorde
fbc8616a06
Fix #17740 (multipart/form-data request) and proxy behaviour ( #18315 )
...
* Support multipart requests
* Further code optimization
* Update ApiClient.ps1
* Set $Multipart
* Corrections after petstore tests
* Update api_client.mustache
* Update api_client.nustache
* Update api_client.mustache
* Tabs removed
2024-04-07 21:42:19 +08:00
Viswajith Venugopal
650e119f22
Update go-server template to include the conventional generated code line ( #18304 )
...
* Update go-server template to include the conventional generated code line
Follow the convention from https://pkg.go.dev/cmd/go#hdr-Generate_Go_files_by_processing_source .
The generated go client code already follows this: f357be480e/modules/openapi-generator/src/main/resources/go/partial_header.mustache (L18)
* gen files
* Move to top
2024-04-07 21:23:24 +08:00
Samuel Kahn
d2c48e2999
Fix map parameter not a container ( #18220 )
...
* Map parameters now carry their container properties when generated from map properties. This solves an issue where a map parameter was not considered a container and induced generation errors.
* Added test specification with fake endpoint for testing map parameters
---------
Co-authored-by: Samuel Kahn <samuel@darewise.com>
2024-04-07 16:12:59 +08:00
William Cheng
2168851e8a
Better array handling in 3.1 spec ( #18313 )
...
* better array detection in 3.1 spec
* fix
2024-04-07 15:48:19 +08:00
William Cheng
3d2e38e347
add tests for query parameter (array of enum) in 3.1 spec ( #18310 )
2024-04-06 14:36:41 +08:00
martin-mfg
b11005b00d
[JAXRS-SPEC] no @Valid annotation on simple fields ( #18302 )
...
* fix and test
* whitespace change, generate samples
2024-04-06 11:19:03 +08:00
devhl-labs
3bb17efa09
fixed issue ( #18309 )
2024-04-06 11:05:43 +08:00
William Cheng
ac14e66da1
skip warning, better code format for jetbrain http client generator ( #18299 )
2024-04-06 11:01:08 +08:00
William Cheng
1024c7733e
update parser to 2.1.19 ( #18298 )
2024-04-05 16:44:42 +08:00
Michael Brügmann
90301f932d
SWIFT5: sort query items alphabetically to allow better server side caching of requests with same URL ( #18239 )
...
* sort query items alphabetically to allow better server side caching of requests
* updarted samples
2024-04-05 08:18:53 +01:00
William Cheng
6d10e80916
[normalizer] fix schemas incorrectly skipped ( #18297 )
...
* fix circular reference check in normalizer
* add new files
* fix
2024-04-05 13:55:22 +08:00
sullis
f357be480e
[gradle-plugin] enhance unit test cases ( #18285 )
2024-04-03 17:13:18 -07:00
William Cheng
2a39b29684
[python] Add field as a reserved word ( #18279 )
...
* add field as a reserved word
* remove tabs
* update
2024-04-03 16:43:51 +08:00
William Cheng
88204b247a
[Java] Sync jersey2 jersey3 template ( #18281 )
...
* sync jersey2 and 3 templates
* add deprecated
* update samples
2024-04-03 16:32:39 +08:00
William Cheng
2934f5ac51
add logic to simplify any type represented with oneof/anyof ( #18268 )
2024-04-02 15:08:20 +08:00
dependabot[bot]
2ce71512d0
Bump julia-actions/setup-julia from 1 to 2 ( #18270 )
...
Bumps [julia-actions/setup-julia](https://github.com/julia-actions/setup-julia ) from 1 to 2.
- [Release notes](https://github.com/julia-actions/setup-julia/releases )
- [Commits](https://github.com/julia-actions/setup-julia/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: julia-actions/setup-julia
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-02 08:52:03 +08:00
William Cheng
927768757b
Add designli to bronze sponsor ( #18269 )
...
* add designli to bronze sponsor
* update link to jpg
2024-04-01 15:46:04 +08:00
devhl-labs
858499ffdd
[csharp][generichost] Form models ( #18264 )
...
* rename a bin artifact
* add support for form models
* revert sample changes
* revert sample changes
* build samples
* build samples
2024-04-01 13:12:03 +08:00
William Cheng
4719d9e55f
update spring-context to newer version ( #18266 )
2024-04-01 11:56:58 +08:00
William Cheng
2d7f0496ec
add rule to set primitive types to nullable ( #18258 )
2024-04-01 11:54:21 +08:00
devhl-labs
2fac8e34db
[csharp][generichost] Updated UseSourceGeneration ( #18265 )
...
* updated UseSourceGeneration
* updated UseSourceGeneration
* updated UseSourceGeneration
2024-04-01 11:49:13 +08:00
martin-mfg
1704ae1194
fix issue 17999 ( #18259 )
2024-03-31 22:47:19 +08:00
devhl-labs
370eca2889
[csharp] Update dependencies ( #18263 )
...
* version bump
* updated a workflow
2024-03-31 11:27:57 +08:00
devhl-labs
d0f8468651
[csharp] Rename samples ( #18260 )
...
* renamed OpenAPIClient-httpclient to Petstore
* updated bin artifacts
* renamed OpenAPIClientCoreAndNet47 to MultipleFrameworks
* updated bin artifacts
* renamed OpenAPIClient-net47 to Petstore
* renamed OpenAPIClient-net48 to Petstore
* updated bin artifacts
* renamed OpenAPIClient-restsharp-name-parameter-mappings to ParameterMappings
* updated bin artifacts
* renamed OpenAPIClientCore to Petstore
* updated bin artifacts
* renamed OpenAPIClient-net7.0-useDateTimeForDate to UseDateTimeForDate
* updated bin artifacts
* renamed OpenAPIClient-net5.0 to EnumMappings
* updated bin artifacts
* renamed OpenAPIClient-ConditionalSerialization to ConditionalSerialization
* updated bin artifacts
* renamed OpenAPIClient to Petstore
* updated bin artifacts
* renamed OpenAPIClient-unityWebRequest to Petstore
* updated bin artifacts
* updated appveyor
* updated bin artifacts
* updated bin artifacts
* comenting out a sample project with no csproj file
* updated bin artifacts
2024-03-31 10:36:42 +08:00
devhl-labs
6252dac28e
[csharp][generichost] Ensure samples are running ( #18257 )
...
* ensure samples are running
* ensure samples are running
* ensure samples are running
* ensure samples are running
* ensure samples are running
* ensure samples are running
* revert testing changes
* sorted the array entries
2024-03-30 21:14:51 +08:00
B4ckslash
807aa5d3ae
[Java][jersey2] Fix generated client code for oneOf models if datatype includes arrays ( #18042 )
...
* Add java-jersey2 sample with mixed oneOf
* [java][jersey2]Fix client generation if oneOf contains an array type
Changes:
* Change jersey2/oneof_model template to use composed schema data
* Change adding of imports in AbstractJavaCodegen to use composed schema data
* Add escapedDataType property to CodegenProperty so that the data type
may be part of identifiers (e.g. in getters)
* Update samples
* Add sample for multiple array in oneOf
* Fix generation of constructors with same erasures
* Update samples again
* Version bump
* Add new sample folders to CI
* Make primitive handling more explicit
* Replace escapedDataType property with Mustache lambda
* Update samples with new primitive handling and sanitization lambda
2024-03-30 21:08:41 +08:00
timo-a
f73db59b0e
Migrate generated tests for java resttemplate generator updateFeature/resttemplate junit5 ( #18222 )
...
* update(resttemplate): migrate java resttemplate templates to junit 5
* update(java defaults): migrate java defaults as well because resttemplate uses model_tests from default
* update(samples, java): update samples as described in the contribution guidelines
* fix tests: try double quotes
* fix tests: remaining double quotes
* update(samples): regenerate resttemplate
* update(samples): regenerate resttemplate-jakarta
* update(samples): regenerate resttemplate-swagger1
* update(samples): regenerate resttemplate-swagger2
* update(samples): regenerate resttemplate-withXml
* update(samples again): ./bin/generate-samples.sh ./bin/configs/*.yaml
2024-03-30 21:06:05 +08:00