Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-10898

Support snakeCaseName/camelCaseName JSON field name in JsonConverterGenerator

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • protocol
    • None

    Description

      I find many JSON-format command line params for example `kafka-reassign-partitions.sh --reassignment-json-file my.json` which we can use JsonConverter to read and write.

      However, currently, we use camelCaseName when converting protocol data to JSON, but most JSON-format command line params use snakeCaseName, so we should support snakeCaseName in JsonConverterGenerator.

      In the post-KIP-500 world, we will move all configs in zookeeper to kafka-raft, and the data in zookeeper is also stored as snakeCaseName JSON, so it's useful to support snakeCaseName in JsonConverterGenerator in advance.

      Attachments

        Issue Links

          Activity

            People

              dengziming Deng Ziming
              dengziming Deng Ziming
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: