oscerd opened a new pull request, #2900:
URL: https://github.com/apache/camel-kamelets/pull/2900
## Summary
Adds a regression-guard rule to `script/validator`: a property may not list
the same `x-descriptor` more than once.
This closes the loop on #2882 — that fix removed a duplicate
`urn:camel:group:credentials` that was introduced when the deprecated
`urn:alm:descriptor:com.tectonic.ui:password` descriptor was *converted*
(rather than removed) on properties that already carried the canonical
descriptor. The validator did not catch it (thanks @apupier for spotting it in
review). This rule makes that class of mistake fail fast.
## Verification
- `go vet` / `gofmt`: clean.
- Validator exits `0` on the current catalog (no duplicate descriptors exist
after #2882).
- Verified to **fire** on an injected duplicate:
`ERROR: property "authUsername" in kamelet "http-secured-sink" lists the
x-descriptor "urn:camel:group:credentials" more than once`.
---
_AI-generated by Claude Code on behalf of Andrea Cosentino (@oscerd)._
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]