Skip to content

[tcgc] how can we rename an options bag's name? #2370

Open
@iscai-msft

Description

@iscai-msft
// By default, spread is spread: follow the TypeSpec blindly

// Make option bag generation the default for Java for the entire TypeSpec namespace.
// Use default strategy to pick up the name
@@optionBag(MyNamespace, "", "java")

// Use option bag for this operation, for rust. Generate name
@@optionBag(MyOperationn, "", "rust")

// Use option bag for this operation in Go, and name it explicitly
@@optionBag(MyOperation, "MyOperatitonOptions", "go")

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    design:neededA design request has been raised that needs a proposallib:tcgcIssues for @azure-tools/typespec-client-generator-core library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions