* remove jdk8 support from spring generators
* update tests, remove commented code in AbstractJavaCodegen
* add back implementation
* add back import
* generate code for non reactive
* fixes#11579: Java RestTemplate Mustache template doesn't use reserved words for local variables
* fixes#11579: Java RestTemplate samples
Co-authored-by: Marek Hudik <marek.hudik@broadcom.com>
* Bugfix: delay clearing *TemplateFiles with apiFirst #2407
* Bugfix: delay clearing *TemplateFiles with apiFirst #2407 (add test case)
* spring api.mustache: fix unhandledException #10860
* Generate samples
* add sample
* Generate samples
* Fixed mustache template for FormParams. Use paramName instead of baseName for variable name.
This will fix an issue when parameter name is one of the reserved keywords (#7506)
# Conflicts:
# modules/openapi-generator/src/main/resources/JavaSpring/formParams.mustache
# modules/openapi-generator/src/test/java/org/openapitools/codegen/java/spring/SpringCodegenTest.java
* Move and comment apiFrst
Co-authored-by: Andrii Hrytsiuk <andrii.hrytsiuk@gmail.com>
* Add default value support to cookie and header params
* Generate Samples
* Replace "OffsetDateTime.parse(..)" with toString();
* Generate Samples
* Revert "Replace "OffsetDateTime.parse(..)" with toString();"
This reverts commit 2e37411b305343e99542c094a691e1419a67b1b5.
* Format java.util.Date to ISO Date in AbstractJavaCodegen.toDefaultParameterValue
* Generate Samples
* Generate Samples
* Use toParameterDefault()
* Generate Samples
* Implement testDateTimeFormParameterHasDefaultValue unit test
* Add more test coverage.
* Remove postProcessParameter() since is has no effect after using toDefaultParameterValue()
* Use LocalDate.parse() in toDefaultValue()
* Generate Samples
* Return a defaultValue only if dateTimeLibrary is java8.
* Check size of x-tags list
* Remove unused variable assigment
* Fix issue number in test method name
* Fix typo
* Add tag to @ApoOperation only if any tag is given
* Rename data provider method
* Remove unused import
Remove CIRCE_VERSION from generator because it is taken in as a transitive dependency of ` "com.softwaremill.sttp.client3" %% "json4s" % "3.3.18"`
Co-authored-by: boris <borissmidt@hotmail.com>
* Add cycle detection (#7532)
* Review feedback
* Including ContextAwareNodes to detect cycles more accurately.
* Add test
* Add forest to test.
* No longer need ContextAwareNode
* Review feedback
* Update samples
* Content mediatype is hardcoded in api.mustache #11511
* Generate Samples
* OAS3 incorrect data type when providing a default value #11367
* Generate Samples
* Fix JsonTypeName annotation handling in Java and JavaSpring
* Generate Samples
* getIsClassnameSanitized: use null safe equals
The currently generated code will throw a `ClassCastException` if `type` is `Object`. I'm not quite sure why `isAssignableFrom` is used here but I tried to keep the change minimal - in my understanding, the result would be the same if the line was
```
if(Types.getRawType(type).equals(ApiResponse.class)) {
```
because the `ApiResponse` only extends `Object` and implements no interfaces. Maybe it was meant to be `ApiResponse.class.isAssignableFrom(Types.getRawType(type))`? This would also permit subclasses of `ApiResponse`, but then it would be more complicated to determine the actual type parameter (because `type` itself may not be parameterized) and to create the object to return (because it would have to be an instance of the subclass).
* Adds bases for int32, int64, float32, and float64
* Samples updated
* Removes print statements
* When creating properties and items do not call _from_openapi_data or model __new__
* Update speed improvement
* cast_to_allowed_types speeed improvements
* _get_new_instance_without_conversion order swap for speed
* Fixes test errors
* Small fixes about path_to_schemas
* Adds component with composition in property example
* Adds endpoint parameter examples
* Adds request body examples
* Adds inpline composition example in response body
* Fixes UNKNOWNBASETYPE import bug
* Updates allof inline schemas to be type object with minProperties
* Removes newline
* Adds test_ObjectWithInlineCompositionProperty
* Updates inline schema to be type string, adds partial test_inline_composition
* Fixes accept_content_types input value
* Adds test_ObjectWithInlineCompositionProperty, adds test_inline_composition and starts deserialization of multipart
* Fixes test_inline_composition, adds simple multipat/form-data deserialization
* feat(typescript-rxjs): add support for rxjs 7.2.0, use type imports
* feat(typescript-rxjs): regenerate samples
* feat(typescript-rxjs): use generic T instead of any in BaseAPI
* feat(typescript-rxjs): regenerate samples