File tree 6 files changed +5
-17
lines changed
src/Examples/JsonApiDotNetCoreExampleClient
ClientLibrary/GeneratedCode
6 files changed +5
-17
lines changed Original file line number Diff line number Diff line change 3
3
4
4
namespace JsonApiDotNetCoreExampleClient . GeneratedCode
5
5
{
6
- // ReSharper disable once MemberCanBeInternal
7
- public partial class ExampleApiClient : JsonApiClient
6
+ internal partial class ExampleApiClient : JsonApiClient
8
7
{
9
8
partial void UpdateJsonSerializerSettings ( JsonSerializerSettings settings )
10
9
{
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 21
21
<ClassName >ExampleApiClient</ClassName >
22
22
<CodeGenerator >NSwagCSharp</CodeGenerator >
23
23
<Namespace >JsonApiDotNetCoreExampleClient.GeneratedCode</Namespace >
24
- <Options >/UseBaseUrl:false /GenerateClientInterfaces:true </Options >
24
+ <Options >/UseBaseUrl:false /ClientClassAccessModifier:internal </Options >
25
25
</OpenApiReference >
26
26
</ItemGroup >
27
27
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ private static async Task Main()
17
17
BaseAddress = new Uri ( "http://localhost:14140" )
18
18
} ;
19
19
20
- IExampleApiClient exampleApiClient = new ExampleApiClient ( httpClient ) ;
20
+ ExampleApiClient exampleApiClient = new ( httpClient ) ;
21
21
22
22
try
23
23
{
Original file line number Diff line number Diff line change 3
3
4
4
namespace OpenApiTests . ClientLibrary . GeneratedCode
5
5
{
6
- // ReSharper disable once MemberCanBeInternal
7
- public partial class OpenApiClient : JsonApiClient
6
+ internal partial class OpenApiClient : JsonApiClient
8
7
{
9
8
partial void UpdateJsonSerializerSettings ( JsonSerializerSettings settings )
10
9
{
Original file line number Diff line number Diff line change 5
5
6
6
<ItemGroup >
7
7
<ProjectReference Include =" ..\..\src\JsonApiDotNetCore.OpenApi.Client\JsonApiDotNetCore.OpenApi.Client.csproj" />
8
- <ProjectReference Include =" ..\..\src\JsonApiDotNetCore.OpenApiClient\JsonApiDotNetCore.OpenApiClient.csproj" />
9
8
<ProjectReference Include =" ..\..\src\JsonApiDotNetCore.OpenApi\JsonApiDotNetCore.OpenApi.csproj" />
10
9
<ProjectReference Include =" ..\TestBuildingBlocks\TestBuildingBlocks.csproj" />
11
10
</ItemGroup >
34
33
<Namespace >OpenApiTests.ClientLibrary.GeneratedCode</Namespace >
35
34
<ClassName >OpenApiClient</ClassName >
36
35
<CodeGenerator >NSwagCSharp</CodeGenerator >
37
- <Options >/UseBaseUrl:false /GenerateClientInterfaces:true</Options >
36
+ <Options >/UseBaseUrl:false /GenerateClientInterfaces:true /ClientClassAccessModifier:internal </Options >
38
37
</OpenApiReference >
39
38
</ItemGroup >
40
39
You can’t perform that action at this time.
0 commit comments