ramu11 opened a new pull request, #25684:
URL: https://github.com/apache/camel/pull/25684
## Description
Adds a Preview TOON data format to Apache Camel for converting between
JSON-compatible Java data and TOON.
The data format is available through:
- `.marshal().toon()`
- `.unmarshal().toon()`
- `<toon/>`
The implementation uses `dev.toonformat:jtoon:2.0.2` and does not implement
a TOON parser in Camel.
## Implementation
- Adds new `camel-toon` component.
- Adds Camel Java DSL, XML, and YAML DSL support.
- Adds core model/reifier integration.
- Adds catalog and generated metadata.
- Supports configurable indentation, delimiter, length marker, strict
decoding, and content-type header.
- Uses `text/toon` as the content type when enabled.
- JSON `String` bodies are treated as JSON documents during marshal.
## Testing
Successfully executed:
./mvnw -pl components/camel-toon -am install -DskipTests
./mvnw -pl components/camel-toon test
Result:
- Build successful.
- 22 tests executed.
- 0 failures.
- 0 errors.
- 0 skipped.
Also verified:
git diff --check
No whitespace errors were reported.
## Notes
TOON support is introduced as Preview because the TOON specification is
currently a working draft.
--
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]