Skip to content

Conversation

@JamesNK
Copy link
Member

@JamesNK JamesNK commented Mar 12, 2023

Follow up to #47123

During manual testing I found the verb also needs to be included in the swagger (OpenAPI) path.

@JamesNK JamesNK added the area-grpc Includes: GRPC wire-up, templates label Mar 12, 2023
@JamesNK JamesNK changed the title Include verb in swagger path Include verb in gRPC JSON transcoding swagger path Mar 12, 2023
sb.Append(httpRoutePattern.Segments[i]);
}
}
if (httpRoutePattern.Verb != null)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:

Suggested change
if (httpRoutePattern.Verb != null)
if (!string.IsNullOrEmpty(httpRoutePattern.Verb))

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Purposefully using != null for trailing colon. (i.e. empty verb)

@JamesNK JamesNK merged commit 09e9ed7 into main Mar 13, 2023
@JamesNK JamesNK deleted the jamesnk/swagger-verb branch March 13, 2023 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-grpc Includes: GRPC wire-up, templates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants