Skip to content

[tcgc] Should we support body nested path/query/header params cases? #2361

Open
@MaryGao

Description

@MaryGao

The @body would ignore any inner path/query/header decorators, so these kinds of spec may not be our good practice. My question is if we need to support these cases and if not supported should we report errors in tcgc directly?

playground

op foo(@body body: Test):void;

model Test {
  @path
  prop1: string;

  @query
  prop2: string;

  @header
  prop3: string;
}

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

    lib: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