Skip to content

[Bug]: TCGC reports wrong diagnostics "conflicting-multipart-model-usage" for valid multipart cases #1510

Closed

Description

Describe the bug

For the valid cases, TCGC reports wrong diagnostics "conflicting-multipart-model-usage"

Reproduction

    @service({title: "Test Service"}) namespace TestService;

    model MultiPartRequest {
      id: string;
      profileImage: bytes;
    }
    
    @post op basic1(@header contentType: "multipart/form-data", @body body: MultiPartRequest): NoContentResponse;
    @put op basic2(@header contentType: "multipart/form-data", @body body: MultiPartRequest): NoContentResponse;

Checklist

  • Follow our Code of Conduct
  • Check that this issue is about the Azure libraries for typespec. For bug in the typespec language or core libraries file it in the TypeSpec repo
  • Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugSomething isn't workinglib: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