* handle multiple enum types for oneof
* add updates from generate-samples.sh
* add test coverage for oneof enum generation
* update doc and var names for clarity
* spring: fix spring pageable used without any config
Spring Pageable is imported whenever we have an API with
a Pageable Json schema, even if x-spring-paginated is not
set.
This commit imports Spring Pageable only if
x-spring-paginated is set to true.
* spring: add unit test for pageable fix
* spring: fix spring pageable feedback from review
remove unrelated example
---------
Co-authored-by: gonzalad <gonzalad@users.noreply.github.com>
* Bumped kotlin spring-jvm-webclient spring boot version from 2.7.11 to 3.1.0
* Do not redefine HttpHeaders and MediaType for simpler code
* Added a simpler constructor to the api and simplified encodeURIComponent
* Added support for Spring Boot 3 in kotlin-client jvm-spring-webclient generator
* Fixed small syntactical regression in Kotlin client build.gradle
It is very difficult to "merge" the changes, made by code generation,
and the changes, made by developers. It would be very useful to
separate the generated code and the code written by developers. In
addition this would remove the necessity to track the generated code.
Pyhton (since 3.6) has a hook, __init_subclasses__, that could be used
to solve exactly this problem.
The classes from *_base.py should be implemented in an ns package that is specified
by the additional parameter ("-p fastapiImplementationPackage=example_name").
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
* spring: fix multiline tag description
@Tag description should merge multiple lines into single line
and trim the newline char at the end
The fix was done in a similar way to what is done for operation description.
* spring: multiline tag description add unit test
---------
Co-authored-by: gonzalad <gonzalad@users.noreply.github.com>
Co-authored-by: Oleh Kurpiak <oleh.kurpiak@gmail.com>
* Adds operation null check in the method GetOperationServerUrl to avoid null exception
* Adds operation null check to avoid null exception to the csharp net core mustache
* update C# samples
---------
Co-authored-by: William Cheng <wing328hk@gmail.com>
* support generation of enums for groovy
* add custom json generator for groovy
* add nestet enums in groovy templates
* add indent for nested Groovy enums & fix compilation errors in Groovy ApiUtils
* save auto generated samples&docs for groovy
* Added library 'jvm-spring-webclient' to Kotlin client generator
* Reran all generators and generated docs
* Changed target of kotlin-jvm-spring-webclient sample from 2_0 to 3_0
* Added build of kotlin-jvm-spring-webclient to github workflow
* remove http signature from test yaml when not supported
* do not use HttpBearerAuth for signature auth or other unsupported http auth method
ignore unsupported http auth method unless generated code would not compile (in which case, an exception is thrown)
* [Java] fix use of isBasic condition
* [kotlin] fix use of isBasic condition