You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Mickael Maison (Jira)" <ji...@apache.org> on 2024/06/03 12:47:00 UTC

[jira] [Created] (KAFKA-16881) InitialState type leaks into the Connect REST API OpenAPI spec

Mickael Maison created KAFKA-16881:
--------------------------------------

             Summary: 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


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)