You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is related to this one. I'm facing the same issue with the Kotlin implementation.
I'll briefly describe the problem.
When Spring uses WebClient, it sets a special attribute URI_TEMPLATE_ATTRIBUTE which represents the URI path. However, the only function that does not set this attribute is public RequestBodySpec uri(Function<UriBuilder, URI> uriFunction) (see here).
Description
This issue is related to this one. I'm facing the same issue with the Kotlin implementation.
I'll briefly describe the problem.
When Spring uses WebClient, it sets a special attribute
URI_TEMPLATE_ATTRIBUTE
which represents the URI path. However, the only function that does not set this attribute ispublic RequestBodySpec uri(Function<UriBuilder, URI> uriFunction)
(see here).This attribute is needed to correctly set the URI tag for
http_client_requests_seconds_*
metrics (see DefaultClientRequestObservationConvention.java#L106 and DefaultWebClient.java#L464).Currently, the Kotlin OpenAPI Generator implementation does not support this attribute (see ApiClient.kt.mustache#L42).
However, the Java implementation does include this attribute (see ApiClient.mustache#L684).
Could you add this attribute to the Kotlin implementation as well?
openapi-generator version
Related issues/PRs
#15143
Suggest a fix
Update this file with the following implementation.
#21020
The text was updated successfully, but these errors were encountered: