davsclaus opened a new pull request, #24602:
URL: https://github.com/apache/camel/pull/24602

   ## Summary
   
   - Fix the OpenAPI REST DSL generators (YAML and XML) to always emit the 
`type` field on `<param>` definitions, even when the value is the default `path`
   - The root cause was in the XML model writer 
(`ModelWriter.doWriteAttribute`) which skips attributes matching their default 
value — so `type="path"` was silently dropped from the intermediate XML, 
causing the generated YAML/XML to omit it
   - The YAML generator's `fixParamNodes()` now adds `type: "path"` when 
missing, and the XML generator adds a similar post-processing step on the DOM
   
   ## Test plan
   
   - [x] All 13 existing tests in `openapi-rest-dsl-generator` pass with 
updated expected outputs
   - [x] `camel-yaml-dsl` RestTest "load rest (generated)" now passes with 
schema validation enabled (previously needed validation skip workaround)
   - [x] Updated 7 test resource files (5 YAML, 2 XML) to include `type: 
"path"` for all 48 path parameter entries
   
   _Claude Code on behalf of davsclaus_
   
   Co-Authored-By: Claude Opus 4.6 <[email protected]>


-- 
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]

Reply via email to