Skip to content

Commit e80478d

Browse files
author
Bart Koelman
committed
Fixed schema error in VS
1 parent 64671c0 commit e80478d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/OpenApiTests/OpenApiTests.csproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,11 @@
2323
<ItemGroup>
2424
<EmbeddedResource Include="openapi.json" />
2525
</ItemGroup>
26+
27+
<!-- Fixes IntelliSense errors on openapi.json in Visual Studio 2019, which uses the schema for OpenAPI 3.1 by default. -->
28+
<ProjectExtensions>
29+
<VisualStudio>
30+
<UserProperties openapi_1json__JsonSchema="https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json" />
31+
</VisualStudio>
32+
</ProjectExtensions>
2633
</Project>

0 commit comments

Comments
 (0)