Skip to content

PascalCase conversion on structs in codegen #15

@clux

Description

@clux

Prost also converts aggressive PascalACRONYMCase names (with allcaps somewhere inside) like APIService to ApiService.
In general, this is a good improvement to the rust conventions, but, like #2, it has some problems:

1. have to disambiguate / break names used in kube

  • ApiResource is an abstraction for APIResource in discovery/core
  • ApiGroup similarly similarly for APIGroup in discovery

2. we break even further from official names

it's already a bit awkward that we convert their camelCased variable names to snake_case, this will also break some of the main structs.


personally, i don't really think 2. is a problem (everyone has been happy with the snake_case conversion in in k8s-openapi despite my earlier reservations), and this extra change only affects a small amount of structs who uses a decidedly bad naming convention.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions