[
https://issues.apache.org/jira/browse/KAFKA-16881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17851628#comment-17851628
]
黃竣陽 commented on KAFKA-16881:
-----------------------------
I'm interesting in this issue, I can handle it.
> InitialState type leaks into the Connect REST API OpenAPI spec
> --------------------------------------------------------------
>
> Key: KAFKA-16881
> URL: https://issues.apache.org/jira/browse/KAFKA-16881
> Project: Kafka
> Issue Type: Task
> Components: connect
> Affects Versions: 3.7.0
> Reporter: Mickael Maison
> Priority: Major
>
> In our [OpenAPI spec
> file|https://kafka.apache.org/37/generated/connect_rest.yaml] we have the
> following:
> {noformat}
> CreateConnectorRequest:
> type: object
> properties:
> config:
> type: object
> additionalProperties:
> type: string
> initialState:
> type: string
> enum:
> - RUNNING
> - PAUSED
> - STOPPED
> initial_state:
> type: string
> enum:
> - RUNNING
> - PAUSED
> - STOPPED
> writeOnly: true
> name:
> type: string{noformat}
> Only initial_state is a valid field, InitialState should not be present.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)