Skip to content

[Modular] Prompting the parameter to middle-layer operation group or client is not supported #3494

@v-jiaodi

Description

@v-jiaodi

https://github.com/Azure/typespec-azure/pull/3258/files#diff-4dd36bd890dc7c62663da0ab05713fb52a5aaf0e011a202dba5bbf5efd0ee1cbR124

typespec: https://github.com/Azure/typespec-azure/blob/main/packages/azure-http-specs/specs/azure/client-generator-core/client-location/main.tsp

namespace _Specs_.Azure.ClientGenerator.Core.ClientLocation;

namespace MoveMethodParameterToClient {
  model Blob {
    id: string;
    name: string;
    size: int32;
    path: string;
  }

  interface BlobOperations {
    @route("/blob")
    @get
    getBlob(
      @query
      @global.Azure.ClientGenerator.Core.clientLocation(MoveMethodParameterToClient)
      storageAccount: string,

      @query container: string,
      @query blob: string,
    ): Blob;
  }
}

generate code build error:

Image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions