From bfb45f0025aef93a9268432e5324da5854a33edd Mon Sep 17 00:00:00 2001 From: croway Date: Fri, 4 Sep 2026 10:17:15 +0200 Subject: [PATCH] Fix rest-openapi-simple example: note PetStore demo flakiness, drop redundant version The getPetById operation depends on the publicly hosted petstore3.swagger.io demo, which can intermittently fail (e.g. 500 errors) since it is outside our control. Document this in the README so it isn't mistaken for a bug in the example. Also remove the redundant explicit ${project.version} on camel-rest-openapi-starter, since it is already managed by the Camel BOM. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01HseDjsECuZhsCXxxioiD1k --- rest-openapi-simple/README.adoc | 7 +++++++ rest-openapi-simple/pom.xml | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/rest-openapi-simple/README.adoc b/rest-openapi-simple/README.adoc index 30bda6411..cd5e2b863 100644 --- a/rest-openapi-simple/README.adoc +++ b/rest-openapi-simple/README.adoc @@ -30,6 +30,13 @@ $ java -jar target/camel-example-spring-boot-rest-openapi-*.jar \ --petId=14 .... +NOTE: This example depends on the publicly hosted PetStore demo at +https://petstore3.swagger.io. That demo is occasionally flaky or +unavailable (for instance, `+getPetById+` may intermittently return a +500 error for any ID) since it is outside of our control. If an +operation fails unexpectedly, check the demo's availability before +assuming there is a problem with the example itself. + === Help and contributions If you hit any problem using Camel or have some feedback, then please diff --git a/rest-openapi-simple/pom.xml b/rest-openapi-simple/pom.xml index 9268f97fe..018597787 100644 --- a/rest-openapi-simple/pom.xml +++ b/rest-openapi-simple/pom.xml @@ -69,7 +69,6 @@ org.apache.camel.springboot camel-rest-openapi-starter - ${project.version}