Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*: allow users to ask for minimal names #324

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Nov 19, 2024

  1. *: allow users to ask for minimal names

    The new --minimal-names flag allows users to ask the generator to come
    up with the most minimal name possible, meaning that redundant context
    prefixes are omitted and collection type names are inferred from field
    names where possible.
    
    A real-world use-case JSON Schema is imported as a test case; some
    examples of names before and after:
    
    RolloutSpecificationOrchestratedStepsElem -> OrchestratedStep
    RolloutSpecificationOrchestratedStepsElemApplicationsApplyAcrossServiceResources
    -> ApplyAcrossServiceResources
    
    Signed-off-by: Steve Kuznetsov <[email protected]>
    stevekuznetsov committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    df9ed50 View commit details
    Browse the repository at this point in the history