* Use ValueConverter method for enums to output in the correct JSON format
* Fix doc comment
* Update samples
* Call ToString on return value of converter
* Update samples
* Update samples
* Add test
* composed enums
* revert sample changes
* add new sample due to HttpClient library not working with the new models
* added to appveyor
* build samples again
* started fixing multiple issues
* weather api builds
* added docstring
* ensure property names are unique
* force pr gates to restart
* force pr gates to restart
* force pr gates to restart
* force pr gates to restart
* Adjust header serialization for Optional values
* Add additional test verification to display the header type
* Do not get a null value from an option if it is empty, but rather keep the None value. If a value is present it is converted to an Option[String]
* kotlinx serialization fixes
- added new config with kotlinx, discriminator (/w custom name) and
kotlinx_serialization
- remove discriminator properties from the generator in both base and
derived classes
- set discriminatorValue in additionalProperties of derived classes
- add JsonClassDiscriminator the derived classes in the template
- set SerialName to discriminatorValue in the template
- change base classes to sealed class instead of interface
- make variables in base classes abstract
* Generated kotlin-allOff-discriminator-kotlinx-serialization sample
* Added test for kotlinx_serialization with discriminator
* renamed yaml
* Added new sample to github workflow
* Added comments to KotlinClientCodegen::postProcessAllModels
* fix bug for returning uninitialized variable for serialization method in oneOf models with discriminator
* Update samples
---------
Co-authored-by: Chris Gual <cgual@omnidian.com>
* Modify unit tests for typescript-fetch, issue 21259 to check for closing parens & fix a typo in TypeScriptFetchModelTest
* Fix bug in closing parens in modelOneOf.mustache and some spacing adjustments
* Update samples
---------
Co-authored-by: Chris Gual <cgual@omnidian.com>
* Add setting for generating the oneOf interfaces as sealed interfaces
* Generate samples
* Add internal java17 additionalProperty setting
* Move samples to highlight that they do not use the petstore
* Align documentation
* Update samples
* Align documentation
* Update mustache files and samples to change gradle settings to java17
* [php] Backport #21458 to php client
Fixes#21485
Credits to @jozefbriss
* [php] Fix deprecation warning when running integration tests
OpenAPI\Client\FakeHttpClient::setResponse(): Implicitly marking parameter $response as nullable is deprecated, the explicit nullable type must be used instead
---------
Co-authored-by: simonhammes <simonhammes@users.noreply.github.com>
* add bearer capability
* avoid using shared state
* revert needless change
* Revert authentication changes from unused root Java/api.mustache template
* applied change to correct lib type
* updated test files
* made security method more generic for flexibility
* regenerated samples
* further cleanup
* code style
* regenerated samples
* made header assignment more explicit, per each method
* fixed extra comma
* fixed commas, regenerated samples
* moved header population to utility method
* moved static class inside main class
* regenerated samples
* added comments, fixed indentation
* regenerated samples
---------
Co-authored-by: Ilya Nemtsev <ilyanemtsev@192.168.1.34>
* [kotlin-spring] add a Spring type converter for enum values #21564
* [kotlin-spring] simplify unit test for inner enum converter
* update samples
* code review feedback; move containsEnums to ModelUtils
* code review feedback; provide comment for generated EnumConverterConfiguration.kt
* update samples
---------
Co-authored-by: Chris Gual <cgual@omnidian.com>
* [java-spring] provide a clarifying comment for the generated EnumConverterConfiguration class
* update samples
---------
Co-authored-by: Chris Gual <cgual@omnidian.com>