Created by: parenko
Fix for #14398 (closed)
Schema#required
is deprecated since 2.2.5 and replaced by requiredMode
.
OAS3 required
parameter is of type boolean
and defaults to false
thus I used Schema.RequiredMode.NOT_REQUIRED
when required
is false.
I have checked following samples for compilation, such that min >= 2.2.5 swagger-annotations library is used.
- samples/openapi3/client/petstore/spring-cloud-3/
- samples/openapi3/client/petstore/spring-cloud-async/
- samples/openapi3/client/petstore/spring-cloud-date-time/
- samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/
- samples/openapi3/client/petstore/spring-cloud-spring-pageable/
- samples/openapi3/client/petstore/spring-cloud/
- samples/openapi3/client/petstore/spring-stubs-skip-default-interface/
- samples/openapi3/client/petstore/spring-stubs/
- samples/openapi3/server/petstore/spring-boot-oneof/
- samples/openapi3/server/petstore/spring-boot-springdoc/
- samples/openapi3/server/petstore/springboot-3/
- samples/openapi3/server/petstore/springboot-beanvalidation-no-nullable/
- samples/openapi3/server/petstore/springboot-delegate/
- samples/openapi3/server/petstore/springboot-implicitHeaders/
- samples/openapi3/server/petstore/springboot-reactive/
- samples/openapi3/server/petstore/springboot-useoptional/
- samples/openapi3/server/petstore/springboot/
- samples/server/petstore/java-camel/
- samples/server/petstore/java-micronaut-server/pom.xml
- samples/server/petstore/java-micronaut-server/
- samples/server/petstore/spring-boot-defaultInterface-unhandledException/
- samples/server/petstore/spring-boot-nullable-set/
- samples/server/petstore/springboot-virtualan/
PR checklist
-
Read the contribution guidelines. -
Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community. -
Run the following to build the project and update samples: ./mvnw clean package ./bin/generate-samples.sh ./bin/configs/java-* ./bin/generate-samples.sh ./bin/configs/spring-* ./bin/generate-samples.sh ./bin/configs/kotlin-* ./bin/utils/export_docs_generators.sh
./bin/generate-samples.sh bin/configs/java*
. For Windows users, please run the script in Git BASH. -
File the PR against the correct branch: master
(6.3.0) (minor release - breaking changes with fallbacks),7.0.x
(breaking changes without fallbacks) -
If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.