confluentinc / vscode

Confluent for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=confluentinc.vscode-confluent
Apache License 2.0
13 stars 3 forks source link

Augment ce-kafka-rest OpenAPI spec for Produce Records API to include schema parameters #613

Open rohitsanj opened 2 days ago

rohitsanj commented 2 days ago

We have to manually augment the OpenAPI spec for the Produce Records endpoint in ce-kafka-rest.openapi.yaml because it is currently modeled after the Confluent Cloud Kafka REST endpoint.

The CCloud Kafka REST endpoint for Produce Records does not accept schema details (because it only supports TopicNameStrategy), this is fine for CCloud.

However, given we plan to use the same API interface for producing records to other clusters, we need to add the schema parameters that the sidecar Produce Records endpoint supports. Namely: schema_version, subject and subject_name_strategy.