Skip to content

gRPC JSON transcoding OpenAPI: Missing step #34771

@darcythomas-coop

Description

@darcythomas-coop

Description

This page is missing a required step of adding <IncludeHttpRuleProtos>true</IncludeHttpRuleProtos> to the .csproj file See here

This prevents the:

option (google.api.http) = {
  get: "/v1/greeter/{name}"
};

from compiling.

(note: the syntax highlighting in greet.proto in VS 17.13.0 is still broken, but it compiles and runs fine)

Page URL

https://learn.microsoft.com/en-us/aspnet/core/grpc/json-transcoding-openapi?view=aspnetcore-9.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/grpc/json-transcoding-openapi.md

Document ID

aeb8fe2e-a57e-74ff-f9d7-3591f24db367

Article author

@JamesNK

Metadata

  • ID: aeb8fe2e-a57e-74ff-f9d7-3591f24db367
  • PlatformId: 2a5b5acc-3fa5-5463-53d4-7298cd296439
  • Service: aspnet-core
  • Sub-service: grpc

Related Issues


Associated WorkItem - 375715

Metadata

Metadata

Assignees

Labels

Source - Docs.msDocs Customer feedback via GitHub Issueaspnet-core/svcgrpc/subsvcokr-healthContent health internal initiativeseQUESTeredIdentifies that an issue has been imported into Quest.

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions