Skip to content

Commit 06b5068

Browse files
committed
add option to test nonPublicApi
1 parent 9721b6f commit 06b5068

13 files changed

Lines changed: 17 additions & 15 deletions

File tree

.github/workflows/samples-dotnet9.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
- samples/client/petstore/csharp/restsharp/net9/EnumMappings
4444
# httpclient
4545
- samples/client/petstore/csharp/httpclient/net9/Petstore
46+
- samples/client/petstore/csharp/httpclient/net9/Petstore-nonPublicApi
4647
# unity
4748
#- samples/client/petstore/csharp/unityWebRequest/net9/Petstore
4849
steps:

bin/configs/csharp-httpclient-net9-nonPublicApi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ additionalProperties:
1111
useOneOfDiscriminatorLookup: true
1212
targetFramework: net9.0
1313
equatable: true
14+
nonPublicApi: true

samples/client/petstore/csharp/httpclient/net9/Petstore-nonPublicApi/src/Org.OpenAPITools/Api/PetApi.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Org.OpenAPITools.Api
2424
/// <summary>
2525
/// Represents a collection of functions to interact with the API endpoints
2626
/// </summary>
27-
public interface IPetApiSync : IApiAccessor
27+
internal interface IPetApiSync : IApiAccessor
2828
{
2929
#region Synchronous Operations
3030
/// <summary>
@@ -51,7 +51,7 @@ public interface IPetApiSync : IApiAccessor
5151
/// <summary>
5252
/// Represents a collection of functions to interact with the API endpoints
5353
/// </summary>
54-
public interface IPetApiAsync : IApiAccessor
54+
internal interface IPetApiAsync : IApiAccessor
5555
{
5656
#region Asynchronous Operations
5757
/// <summary>
@@ -83,15 +83,15 @@ public interface IPetApiAsync : IApiAccessor
8383
/// <summary>
8484
/// Represents a collection of functions to interact with the API endpoints
8585
/// </summary>
86-
public interface IPetApi : IPetApiSync, IPetApiAsync
86+
internal interface IPetApi : IPetApiSync, IPetApiAsync
8787
{
8888

8989
}
9090

9191
/// <summary>
9292
/// Represents a collection of functions to interact with the API endpoints
9393
/// </summary>
94-
public partial class PetApi : IDisposable, IPetApi
94+
internal partial class PetApi : IDisposable, IPetApi
9595
{
9696
private Org.OpenAPITools.Client.ExceptionFactory _exceptionFactory = (name, response) => null;
9797

samples/client/petstore/csharp/httpclient/net9/Petstore-nonPublicApi/src/Org.OpenAPITools/Client/ApiClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public string ContentType
193193
/// <remarks>
194194
/// The Dispose method will manage the HttpClient lifecycle when not passed by constructor.
195195
/// </remarks>
196-
public partial class ApiClient : IDisposable, ISynchronousClient, IAsynchronousClient
196+
internal partial class ApiClient : IDisposable, ISynchronousClient, IAsynchronousClient
197197
{
198198
private readonly string _baseUrl;
199199

samples/client/petstore/csharp/httpclient/net9/Petstore-nonPublicApi/src/Org.OpenAPITools/Client/ApiException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace Org.OpenAPITools.Client
1515
/// <summary>
1616
/// API Exception
1717
/// </summary>
18-
public class ApiException : Exception
18+
internal class ApiException : Exception
1919
{
2020
/// <summary>
2121
/// Gets or sets the error code (HTTP status code)

samples/client/petstore/csharp/httpclient/net9/Petstore-nonPublicApi/src/Org.OpenAPITools/Client/Configuration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace Org.OpenAPITools.Client
2525
/// <summary>
2626
/// Represents a set of configuration settings
2727
/// </summary>
28-
public class Configuration : IReadableConfiguration
28+
internal class Configuration : IReadableConfiguration
2929
{
3030
#region Constants
3131

samples/client/petstore/csharp/httpclient/net9/Petstore-nonPublicApi/src/Org.OpenAPITools/Client/ExceptionFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ namespace Org.OpenAPITools.Client
1818
/// <param name="methodName">Method name</param>
1919
/// <param name="response">Response</param>
2020
/// <returns>Exceptions</returns>
21-
public delegate Exception ExceptionFactory(string methodName, IApiResponse response);
21+
internal delegate Exception ExceptionFactory(string methodName, IApiResponse response);
2222
}

samples/client/petstore/csharp/httpclient/net9/Petstore-nonPublicApi/src/Org.OpenAPITools/Client/GlobalConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace Org.OpenAPITools.Client
2020
/// A customized implementation via partial class may reside in another file and may
2121
/// be excluded from automatic generation via a .openapi-generator-ignore file.
2222
/// </remarks>
23-
public partial class GlobalConfiguration : Configuration
23+
internal partial class GlobalConfiguration : Configuration
2424
{
2525
#region Private Members
2626

samples/client/petstore/csharp/httpclient/net9/Petstore-nonPublicApi/src/Org.OpenAPITools/Client/IApiAccessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace Org.OpenAPITools.Client
1515
/// <summary>
1616
/// Represents configuration aspects required to interact with the API endpoints.
1717
/// </summary>
18-
public interface IApiAccessor
18+
internal interface IApiAccessor
1919
{
2020
/// <summary>
2121
/// Gets or sets the configuration object

samples/client/petstore/csharp/httpclient/net9/Petstore-nonPublicApi/src/Org.OpenAPITools/Model/AbstractOpenAPISchema.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace Org.OpenAPITools.Model
1717
/// <summary>
1818
/// Abstract base class for oneOf, anyOf schemas in the OpenAPI specification
1919
/// </summary>
20-
public abstract partial class AbstractOpenAPISchema
20+
internal abstract partial class AbstractOpenAPISchema
2121
{
2222
/// <summary>
2323
/// Custom JSON serializer

0 commit comments

Comments
 (0)