Skip to content

Commit 72fb125

Browse files
author
Bart Koelman
committed
Use autogenerated controllers in legacy test project
1 parent 5eafe40 commit 72fb125

9 files changed

+6
-60
lines changed

test/OpenApiTests/LegacyOpenApiIntegration/Airplane.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
namespace OpenApiTests.LegacyOpenApiIntegration;
77

88
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
9+
[Resource(ControllerNamespace = "OpenApiTests.LegacyOpenApiIntegration")]
910
public sealed class Airplane : Identifiable<string>
1011
{
1112
[Attr(Capabilities = AttrCapabilities.AllowView | AttrCapabilities.AllowCreate | AttrCapabilities.AllowChange)]

test/OpenApiTests/LegacyOpenApiIntegration/AirplanesController.cs

Lines changed: 0 additions & 15 deletions
This file was deleted.

test/OpenApiTests/LegacyOpenApiIntegration/Flight.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
namespace OpenApiTests.LegacyOpenApiIntegration;
88

99
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
10+
[Resource(ControllerNamespace = "OpenApiTests.LegacyOpenApiIntegration")]
1011
public sealed class Flight : Identifiable<string>
1112
{
1213
[Attr(Capabilities = AttrCapabilities.AllowView | AttrCapabilities.AllowChange)]

test/OpenApiTests/LegacyOpenApiIntegration/FlightAttendant.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
namespace OpenApiTests.LegacyOpenApiIntegration;
77

88
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
9+
[Resource(ControllerNamespace = "OpenApiTests.LegacyOpenApiIntegration")]
910
public sealed class FlightAttendant : Identifiable<string>
1011
{
1112
[Attr(Capabilities = AttrCapabilities.AllowView | AttrCapabilities.AllowFilter)]

test/OpenApiTests/LegacyOpenApiIntegration/FlightAttendantsController.cs

Lines changed: 0 additions & 15 deletions
This file was deleted.

test/OpenApiTests/LegacyOpenApiIntegration/FlightsController.cs

Lines changed: 0 additions & 15 deletions
This file was deleted.

test/OpenApiTests/LegacyOpenApiIntegration/Passenger.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
namespace OpenApiTests.LegacyOpenApiIntegration;
77

88
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
9+
[Resource(ControllerNamespace = "OpenApiTests.LegacyOpenApiIntegration")]
910
public sealed class Passenger : Identifiable<string>
1011
{
1112
[Attr(PublicName = "document-number", Capabilities = AttrCapabilities.AllowCreate | AttrCapabilities.AllowChange)]

test/OpenApiTests/LegacyOpenApiIntegration/PassengersController.cs

Lines changed: 0 additions & 15 deletions
This file was deleted.

test/OpenApiTests/OpenApiTests.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
</PropertyGroup>
55

66
<ItemGroup>
7+
<ProjectReference Include="..\..\src\JsonApiDotNetCore.SourceGenerators\JsonApiDotNetCore.SourceGenerators.csproj" OutputItemType="Analyzer"
8+
ReferenceOutputAssembly="false" />
79
<ProjectReference Include="..\..\src\JsonApiDotNetCore.OpenApi\JsonApiDotNetCore.OpenApi.csproj" />
810
<ProjectReference Include="..\TestBuildingBlocks\TestBuildingBlocks.csproj" />
911
</ItemGroup>

0 commit comments

Comments
 (0)