Skip to content

Extraneous lines in new webapi project http file #65317

@mikekistler

Description

@mikekistler

In .NET 11, preview 1, a new webapi project created with dotnet new:

dotnet new webapi

contains a .http file with extraneous lines:

@buggy_HostAddress = http://localhost:5157

#if (EnableOpenAPI)                                      <<< extraneous
GET {{buggy_HostAddress}}/openapi/v1.json
Accept: application/json

###
#endif                                                   <<< extraneous

GET {{buggy_HostAddress}}/weatherforecast/
Accept: application/json

###

This problem was very likely introduced by this recent PR: #64951

Metadata

Metadata

Labels

area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-openapi

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions