tombentley commented on code in PR #12306:
URL: https://github.com/apache/kafka/pull/12306#discussion_r908280202
##########
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/rest/resources/ConnectorPluginsResource.java:
##########
@@ -105,7 +115,28 @@ private <T> void
addConnectorPlugins(Collection<PluginDesc<T>> plugins, Collecti
@PUT
@Path("/{pluginName}/config/validate")
- @Operation(summary = "Validate the provided configuration against the
configuration definition for the specified pluginName")
+ @Operation(
+ summary = "Validate the provided configuration against the
configuration definition for the specified pluginName",
+ parameters = {
+ @Parameter(in = ParameterIn.PATH, schema =
@Schema(implementation = StringSchema.class), name = "pluginName"),
Review Comment:
`StringSchema` doesn't get rendered as a `type: string` as I'd expect, but
rather as a `StringSchema` schema object with `type: object` and a whole bunch
of schema properties. I think `@Schema(type = "string")` will give you what you
need.
--
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]