[
https://issues.apache.org/jira/browse/CAMEL-28068?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Guillaume Nodet reassigned CAMEL-28068:
---------------------------------------
Assignee: Guillaume Nodet
> camel-package-maven-plugin, camel-api-component-maven-plugin - API
> components: APIs without parameters missing from the catalog, and
> signature/optional slips
> -------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-28068
> URL: https://issues.apache.org/jira/browse/CAMEL-28068
> Project: Camel
> Issue Type: Bug
> Components: tooling
> Reporter: Claus Ibsen
> Assignee: Guillaume Nodet
> Priority: Minor
> Fix For: 4.25.0
>
>
> h4. 1. APIs whose methods have no parameters are missing from the catalog
> EndpointSchemaGeneratorMojo (camel-package-maven-plugin, around line 1450)
> creates an API in the component JSON only from @UriParam fields of its
> configuration, and adds parameterless methods only to an API that already
> exists. So an API whose methods have no parameters is missing from
> apis/apiProperties, although it is in the apiName enum and works: braintree
> addOn and discount (all()), google-calendar colors (get), google-drive
> drive-about (get).
> h4. 2. Wildcard types in catalog signatures get the package prefix
> The signatures show com.braintreegateway.Result<com.braintreegateway.?
> extends PaymentMethod> create(...): the ? of a wildcard type is qualified
> like a class name.
> h4. 3. optional is per field, not per method
> The optional flag of an API parameter comes from the configuration field, so
> a parameter that is required for one method and optional for another shows
> one value: google-drive files/export mimeType and google-mail history/list
> startHistoryId show optional although required; twilio pathAccountSid shows
> optional: false although every method has an overload without it.
> h4. 4. The generator cache ignores the plugin
> target/camel-api-component-maven-plugin-cache.properties hashes the inputs
> but not the plugin itself, so after a plugin change the sources are not
> generated again until the file is deleted.
> Found while writing the API method and parameter descriptions of CAMEL-27980
> (https://github.com/apache/camel/pull/31273).
> _Filed by Claude Code on behalf of Claus Ibsen_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)