* LDS-2166 : add request auth to api client and api call
Can now overwrite request auth by request
Envoyé depuis mon iPhone.
P.S. : Ce commit est certifié sans gluten
* LDS-2166 : Add samples
Envoyé depuis mon iPhone.
P.S. : Ce commit est certifié sans gluten
* LDS-2166 : fix test
Envoyé depuis mon iPhone.
P.S. : Ce commit est certifié sans gluten
* LDS-2166 : Fixing test in python_disallowAdditionalPropertiesIfNotPresent
Envoyé depuis mon iPhone.
P.S. : Ce commit est certifié sans gluten
* LDS-2166 : add removed line break
Envoyé depuis mon iPhone.
P.S. : Ce commit est certifié sans gluten
* LDS-2166 : add name for _request_auth params
Add None when _content_type is not set
Envoyé depuis mon iPhone.
P.S. : Ce commit est certifié sans gluten
* LDS-2166 : add tabulation
Envoyé depuis mon iPhone.
P.S. : Ce commit est certifié sans gluten
* LDS-2166 : fix missing values
Envoyé depuis mon iPhone.
P.S. : Ce commit est certifié sans gluten
* LDS-2166 : generate sample
Add _request_auth in sample
Envoyé depuis mon iPhone.
P.S. : Ce commit est certifié sans gluten
* Request auth can now use multiple auth
Request auth is now a list of dict
Envoyé depuis mon iPhone.
P.S. : Ce commit est certifié sans gluten
* Add request_auths in test
Envoyé depuis mon iPhone.
P.S. : Ce commit est certifié sans gluten
Co-authored-by: Géry THRASIBULE <g.thrasibule@lecomptoirdespharmacies.fr>
* Fix OpenAPITools#5381
added x-is-one-of-interface extension for oneOf interface in mustache
template
* Fix OpenAPITools#5381
fixed name of model from UNKNOWN_BASE_TYPE to right one in api: operationId + OneOf
Fix OpenAPITools#5381
parcelableModel is not required
* Fix OpenAPITools#5381
removed not needed methods
* Fix OpenAPITools#5381
catch NPE cases in preprocessOpenAPI
updated samples
* Fix OpenAPITools#5381
fixed generation of oneOf Models
* Fix OpenAPITools#5381
addOneOfInterfaceModel only for cases when useOneOfInterfaces is true and for spring
* Fix OpenAPITools#5381
NPE fix
* Fix OpenAPITools#5381
spring: fixed use of oneOf Models in API
* Fix OpenAPITools#5381
implementing oneOf for spring lib overriding methods with different behavior from default
* Fix OpenAPITools#5381
added x-is-one-of-interface extension for oneOf interface in mustache
template
* Fix OpenAPITools#5381
fixed name of model from UNKNOWN_BASE_TYPE to right one in api: operationId + OneOf
Fix OpenAPITools#5381
removed not needed methods
Fix OpenAPITools#5381
fixed generation of oneOf Models
Fix OpenAPITools#5381
addOneOfInterfaceModel only for cases when useOneOfInterfaces is true and for spring
Fix OpenAPITools#5381
NPE fix for tests
* Fix OpenAPITools#5381
fixed handing of composed schema with array
* Fix OpenAPITools#5381
fixed NPE in addOneOfInterfaceModel
* Fix OpenAPITools#5381
fixed generation of oneOf models with descriminator
* Initial merge of 5.0
* Aligned with master formatting
* Corrected spacing for class names to align with samples.
* Merged master
* Updated samples
* Consolidate methods from JavaClient and SpringCodegen (mov up to AbstractJavaCodegen)
* set useLegacyDiscriminator to false, format templates
* Suport JsonTypeName, fq class name for spring.io.Resource
* Generate Samples
* Test full qualified usage of the spring Resource interface.
* Add java-camel to samples.circleci.spring profile
* Add more complex example combining inheritance and oneof-interface
* Remove x-implements Serializable from JavaClientCodegen (moved to AbstractJavaCodegen)
* Fix spacing before opening brace after extends/implements
* Generate Samples
* Add more complex example combining inheritance and oneof-interface
* Generate Samples
* Fix JsonTypeName annotation handling in Java and JavaSpring
* 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
* Fix JsonTypeName annotation handling in Java and JavaSpring (merge)
* Generate Samples
* Generate Samples
* Add oneof sample
* Generate Samples
* Giv example oas spec a meaningful name, demo usage of oneOf in Model
* Generate Samples
* Remove unnecessary JsonTypeName include, add example for JsonTypeName (Bar_Create)
* Generate Samples
* Generate Samples
Co-authored-by: Alexej <oleksejk@gmail.com>
Co-authored-by: JBurgess <joel.burgess@gmail.com>
Co-authored-by: William Cheng <wing328hk@gmail.com>
* Generate @RequestParam when parameter is not a File
* Fix tests to use @RequestParam
* Enhance testMultipartBoot test case
* Update the Petstore sample
* Add MultipartMixedStatus files
* Use @RequestPart for spring-cloud when param is File
* Generate samples
* Delete spring-cloud formParams.mustache file
* Regenerate samples
* update parser to 2.0.29
* better handling of null in dereferencing
* update parser to 2.0.30
* update core to newer version
* add new files
* rollback to previous stable version
* remove files
* Fixes for python-experimental NullableShape component
Co-authored-by: Justin Black <justin.a.black@gmail.com>
Originally, this dummy declaration was needed because there was the
possibility of the generated code doesn't use `context.Context` and then
if it imported that package, go compiler complains that and makes an error.
ref: 3ed1aa8e79/modules/swagger-codegen/src/main/resources/go/api.mustache (L30)
However, now this dummy placement is no longer needed because the
generated code always uses `context.Context`.
Signed-off-by: moznion <moznion@mail.moznion.net>
* remove jdk8 support from spring generators
* update tests, remove commented code in AbstractJavaCodegen
* add back implementation
* add back import
* generate code for non reactive
* 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.
* 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