* 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
* * Use Relative Imports for org.springframework.core.io.Resource
* api.mustache: Add operationId to atOperation annotation
* Overhaul atSchema annotation in model
* Add spring-stubs-oas3.yaml test config
* Optimize mustache templates
* Use Relative Imports for DateTimeFormat, Pageable and ApiIgnore
* Add spring-stubs-oas3.yaml test config
* Generate all samples
* Explain fromOperation override to support more logic-less templates.
* Support RootUriTemplateHandler from spring-boot
* Revert "Support RootUriTemplateHandler from spring-boot"
This reverts commit 1915f8b19e391b1c570f1025931690a67afba3ea.
* Evaluate additional property useSpringfox as Boolean
* Generate all samples after merge (java-camel)
* Fix typo
* Move java-camel test deom samples.circleci.spring to samples.circleci profile.
* re-generate all samples after merge
* Generate samples and docs after merge
* Generate samples after merge conflicts resolved
* remove import mapping logic in model generation, better handle of file, list
* add new files for file, list
* fix some tests
* update tests, doc
* skip file as reserved word in feign client
* add new files
* remove file from reserved word list in spring generator
* Oas3: Remove swagger2 ApiModel and ApiModelProperty from imports when oas3 is true.
* Oas3: Use either swagger v2 or v3; add test config
* Oas3: allowableValues and defaultValues belong to the Schema annotation
* Oas3: use swagger-core.version property in all pom.xml
* gh-11165 remove io.swagger.v3.oas.annotations.parameters.RequestBody
* gh-11168 add import for io.swagger.v3.oas.annotations.Hidden
* Fix formParams.mustache, add dedicated test scripts for the spring generator using oas3.
* Run ./bin/generate-samples.sh
* Run ./bin/generate-samples.sh - new samples
* fix indentation
* Revert to threetenbp 2.9.10 because customInstantDeserializer.mustache is not compatible with threetenbp > 2.9.10.
* apiController.mustache: pull in osa3 imports.
* apiDelegate.mustache: remove io.swagger.annotations.* import
* Remove Hidden (import and usage). Wrap atApiIgnore with useSpringfox.
* fully qualify org.springframework.data.domain.Pageable because endorExtensions.x-spring-paginated is not set during import processing.
* align spring-cloud and spring-boot pom.mustache regarding springfox and oas versions.
* introduce dateTimeParam.mustache
* Apply DateTimeFormat consistently across different parameter types
* revert to springfox 2.9.2
* add newline after parameter
* fix atSchema annotation (use empty description)
* add more spring-*-oas3 test configs
* Update bin/config/spring* test samples
* Fix implicitHeader.mustache - add import, generate use paramDoc.
* rename spring-boot-implicitHeaders-oal3.yaml to spring-boot-implicitHeaders-oas3.yaml
* Add spring oas3 configs to samples.circleci profiles module list
* Use groupId 'org.openapitools.openapi3' for oas3 configs
* Run all spring test configs.
* In OAS3, allowableValues is a String[] array.
* formParams.mustache: Align spacing and newlines with other param templates
* Support @Parameter(hidden = true) instead of ApiIgnore, Formatting: One parameter per line.
* Format method level annotations in api.mustache
* Introduce samples.circleci.spring profile
* Generate all spring samples
* [Java] deserialize to LinkedHashSet when unique items
* [Java] fix deserialization of readonly properties
* [Java] deserialize to LinkedHashSet when unique items
* Resolve#9774
- Add in `oas3` option for Spring codegen to use newer annotations
- Add `useSpringController` option for Spring codegen
- Use `useSpringfox` to fix some unwanted imports for Spring codegen
- Use `jdk8` to add OffsetDateTime import for models in Spring codegen
- Add `JsonValue` to `enumOuterClass.mustache` to allow enums to be
generated properly
* Update spring examples
* Update with a clean maven install and regenerate samples
* Remove newling at end of param files and regenerate samples
* Update codegen with merge from master
* Update tests and samples
* Remove #vendorParams from API
* Update generated and tests
* Get closer to master
* Remove SpringFox setter boolean
- Annotation was altered to be fully qualified, doesn't need import
removed anymore
* Update examples and tests
* FIx pojo.mustache (missed update to master) and regenerate tests
* Fix pojo.mustache extra `(`
* Update tests and documentation
* Update models and documentation
* Handle boolean property correctly
- Use `convertPropertyToBoolean` and `writePropertyBack`
* Fix more @ApiParam usage with @Parameter
- Also replace allowableValues with @Scheme(allowableValues =
`
* Update samples
* Update maven `pom.xml` mustache to use OAS3 annotations
* FIx typo in variable name
* Write back `useSpringfox` property
* Migrate javax.annotation:javax.annotation-api to
jakarta.annotation:jakarta.annotation-api:1.3.5
* Migrate javax.annotation:javax.annotation-api to
jakarta.annotation:jakarta.annotation-api:1.3.5 for sbt
* Migrate javax.annotation:javax.annotation-api to
jakarta.annotation:jakarta.annotation-api:1.3.5 for gradle
* Commit samples files after the execution of the command
"generate-samples.sh for configs java and kotlin
* Delete org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec
from the exclusion section of org.jboss.resteasy:resteasy-client in the
resteasy module because jboss-annotations-api_1.2_spec isn't a
transitive dependency
* Migrate javax.validation:validation-api to
jakarta.validation:jakarta.validation-api:2.0.2 for maven
* Migrate javax.validation:validation-api to
jakarta.validation:jakarta.validation-api:2.0.2 for gradle
* Migrate javax.validation:validation-api to
jakarta.validation:jakarta.validation-api:2.0.2 for sbt
* Commit samples files after the execution of the command
"generate-samples.sh for configs java, spring, jaxrs and kotlin
* Migrate javax.ws.rs:javax.ws.rs-api to
jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 for maven
* Commit samples files after the execution of the command
"generate-samples.sh for configs java, spring, jaxrs and kotlin
* Migrate javax.json.bind:javax.json.bind-api to
jakarta.json.bind:jakarta.json.bind-api:1.0.2 for maven
* Commit samples files after the execution of the command
"generate-samples.sh for configs java, spring, jaxrs and kotlin
* Migrate javax.json:javax.json-api to jakarta.json:jakarta.json-api:1.1.6
for maven
* Commit samples files after the execution of the command
"generate-samples.sh for configs java, spring, jaxrs and kotlin
* Migrate javax.xml.bind:jaxb-api to
jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 for maven
* Commit samples files after the execution of the command
"generate-samples.sh for configs java, spring, jaxrs and kotlin
* Migrate javax.el:el-api to jakarta.el:jakarta.el-api:3.0.3 for maven
* Migrate javax.servlet:servlet-api to
jakarta.servlet:jakarta.servlet-api:4.0.4 for maven
* Delete the property servlet-api-version in pom files because it is
useless
* Commit samples files after the execution of the command
"generate-samples.sh for configs java, spring, jaxrs and kotlin
* Migrate javax.activation:activation to
jakarta.activation:jakarta.activation-api:1.2.2 for maven
* Delete javax.activation:activation from the exclusion section of
org.jboss.resteasy:resteasy-client in the resteasy module because
javax.activation:activation isn't a transitive dependency
* Commit samples files after the execution of the command
"generate-samples.sh for configs java, spring, jaxrs and kotlin
* Fix the name of property jakarta.activation-version
* Fix a missing property 'jakarta-annotation-version' in
JavaJaxRS/resteasy/pom.mustache
* generate samples
* Fix version value of jakarta.validation-api artifact in
Java/libraries/rest-assured/pom.mustache
* Fix missing property jakarta-annotation-version in
jaxrs-resteasy/eap/pom.mustache
* generate samples
* Revert changes in sample files after running the command
generate-samples.sh in gitBash
* Fix files in
samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8
* Replace the old dependency javax.validation:validation-api by the new
Jakarta EE 8 jakarta.validation:jakarta.validation-api in
openapi-generator-online
Co-authored-by: rpruvost <rpruvost@ITEM-S78402.emea.msad.sopra>
Co-authored-by: rpruvost <romain.pruvost@soprasteria.com>
* Spring codegen - fix equals and hashCode methods for byte array and binary
- they should be compared using Arrays.equals
- they're hash code generated using Arrays.hashCode
* Corrected checkstyle issues
* Revert changes for binary types