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

gRPC FieldMask not rendered correctly in Swagger Page #2579

Open
ricknbaker opened this issue Dec 5, 2024 · 0 comments
Open

gRPC FieldMask not rendered correctly in Swagger Page #2579

ricknbaker opened this issue Dec 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ricknbaker
Copy link

What version of gRPC and what language are you using?

Microsoft.AspNetCore.Grpc.Swagger v 0.8.11
C#

What operating system (Linux, Windows,...) and version?

Windows 10

What runtime / compiler are you using (e.g. .NET Core SDK version dotnet --info)

MSVC 17.9.6 / net 8.04

What did you do?

Updated Microsoft.AspNetCore.Grpc.Swagger from 0.3.4 to 0.8.11

What did you expect to see?

Swagger page allowing me to add repeated paths to a fieldmask.
Rendering an 'Add String Value' button and a removal option:

swagger-01

What did you see instead?

Swagger page allowing only one path.

The option to 'Add String Value' has gone:

swagger-02

Example .proto:

// The request message 
message EntityRequest {
  string EntityTypeCode = 1;  
  string SearchCriteria = 2;     
  bool ActiveOnly = 3;
  google.protobuf.FieldMask mask = 4;
  bool ExplicitPathing = 5;    
}

If I create my own FieldMask type, it all starts to work again:

message FieldMask2 {
    repeated string paths = 1;
}

...
 bool ActiveOnly = 3;
  FieldMask2 mask = 4;
  bool ExplicitPathing = 5;    
...

Any idea why it doesn't like the regular FieldMask?

@ricknbaker ricknbaker added the bug Something isn't working label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant