revert-upgrade-openapiprocessor-spring-back-to-2022-5 and fix bookingItem.validFrom assertion #45
@ -151,7 +151,7 @@ openapiProcessor {
|
|||||||
}
|
}
|
||||||
springHsBooking {
|
springHsBooking {
|
||||||
processorName 'spring'
|
processorName 'spring'
|
||||||
processor 'io.openapiprocessor:openapi-processor-spring:2024.2'
|
processor 'io.openapiprocessor:openapi-processor-spring:2022.5'
|
||||||
apiPath "$projectDir/src/main/resources/api-definition/hs-booking/hs-booking.yaml"
|
apiPath "$projectDir/src/main/resources/api-definition/hs-booking/hs-booking.yaml"
|
||||||
mapping "$projectDir/src/main/resources/api-definition/hs-booking/api-mappings.yaml"
|
mapping "$projectDir/src/main/resources/api-definition/hs-booking/api-mappings.yaml"
|
||||||
targetDir "$buildDir/generated/sources/openapi-javax"
|
targetDir "$buildDir/generated/sources/openapi-javax"
|
||||||
@ -175,6 +175,8 @@ project.tasks.compileJava.dependsOn processSpring
|
|||||||
|
|
||||||
// Rename javax to jakarta in OpenApi generated java files because
|
// Rename javax to jakarta in OpenApi generated java files because
|
||||||
// io.openapiprocessor.openapi-processor 2022.2 does not yet support the openapiprocessor useSpringBoot3 config option.
|
// io.openapiprocessor.openapi-processor 2022.2 does not yet support the openapiprocessor useSpringBoot3 config option.
|
||||||
|
// TODO.impl: Upgrade to io.openapiprocessor.openapi-processor >= 2024.2
|
||||||
|
// and use either `bean-validation: true` in api-mapping.yaml or `useSpringBoot3 true` (not sure where exactly).
|
||||||
task openApiGenerate(type: Copy) {
|
task openApiGenerate(type: Copy) {
|
||||||
from "$buildDir/generated/sources/openapi-javax"
|
from "$buildDir/generated/sources/openapi-javax"
|
||||||
into "$buildDir/generated/sources/openapi"
|
into "$buildDir/generated/sources/openapi"
|
||||||
|
Loading…
Reference in New Issue
Block a user