Skip to content

Add support for camel casing#540

Merged
pseudomuto merged 4 commits intopseudomuto:masterfrom
Ekrekr:add-camel-case-option
Feb 11, 2025
Merged

Add support for camel casing#540
pseudomuto merged 4 commits intopseudomuto:masterfrom
Ekrekr:add-camel-case-option

Conversation

@Ekrekr
Copy link
Copy Markdown
Contributor

@Ekrekr Ekrekr commented Aug 5, 2024

Introduce support for additional options that come after a second colon, starting with camelCasing of fields.

  • Currently doc_opts takes the form of <type>,<output>:<excludes>
  • This PR introduces the new structure of <type>,<output>:<excludes>:<additional options>.
  • See the update to the --doc_opt comment for the full new structure details.
  • This seems like a clean way to support the new camel_case_fields option, which is both backwards compatible without it being populated, and is forwards compatible with additional options being added.

Additional notes:

  • I've implemented additional options parsing in a very simplistic way, splitting by , can be added later if needed.
  • Passing plugin options seems like the most extensible way to support further additional options.
  • I had to bump the protobuf dependency version for the master branch to build.

Fixes #539 - looking closer, I don't think docs_out is possible, so this implements the desired functionality directly.

@Ekrekr
Copy link
Copy Markdown
Contributor Author

Ekrekr commented Aug 5, 2024

@pseudomuto are you the right person to review? Thanks!

@pseudomuto
Copy link
Copy Markdown
Owner

Thanks for the PR!

@pseudomuto pseudomuto merged commit 129dc82 into pseudomuto:master Feb 11, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to use the docs_out flag rather than doc_out

2 participants