ramu11 opened a new pull request, #30633:
URL: https://github.com/apache/camel/pull/30633
## Description
This PR enhances `RestModelConverters` to allow customization of model
conversion when generating OpenAPI specifications.
### Changes
- Refactors `RestModelConverters` from a class into an interface.
- Adds `DefaultRestModelConverters` as the default implementation.
- Exposes public methods to:
- Register custom Swagger `ModelConverter` instances.
- Exclude packages from model scanning.
- Exclude specific classes from model scanning.
- Updates `RestOpenApiReader` to look up a custom `RestModelConverters`
implementation from the Camel Registry. If none is registered, it uses the
default implementation.
- Adds a test covering custom `RestModelConverters` registration through the
Registry and class exclusion.
- Documents how to configure custom model converters and exclusions in the
OpenAPI Java component documentation.
### Testing
Executed:
```bash
mvn -pl components/camel-openapi-java -am -DskipITs test
```
**Result:** BUILD SUCCESS
--
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]