diff --git a/samples/openapi3/client/petstore/spring-cloud-3-with-optional/pom.xml b/samples/openapi3/client/petstore/spring-cloud-3-with-optional/pom.xml
index e191f154c595..c8a16f737381 100644
--- a/samples/openapi3/client/petstore/spring-cloud-3-with-optional/pom.xml
+++ b/samples/openapi3/client/petstore/spring-cloud-3-with-optional/pom.xml
@@ -57,7 +57,7 @@
org.springframework.security
spring-security-oauth2-client
- 6.1.1
+ 7.0.0
com.fasterxml.jackson.datatype