Update to NJsonSchema v11.3.2 & Namotion.Reflection v3.4.2 #908
pr.yml
on: pull_request
windows-latest
3m 58s
ubuntu-latest
1m 42s
macos-latest
1m 43s
Annotations
12 errors and 1 warning
ubuntu-latest
[xUnit.net 00:00:04.04] NSwag.CodeGeneration.CSharp.Tests.ClientGenerationTests.CanGenerateFromJiraOpenApiSpecification [FAIL]
|
NSwag.CodeGeneration.CSharp.Tests.ClientGenerationTests.CanGenerateFromJiraOpenApiSpecification
VerifyException : Directory: /home/runner/work/NSwag/NSwag/src/NSwag.CodeGeneration.CSharp.Tests/Snapshots
NotEqual:
- Received: JIRA_OpenAPI.received.txt
Verified: JIRA_OpenAPI.verified.txt
FileContent:
NotEqual:
Received: JIRA_OpenAPI.received.txt
namespace MyNamespace
{
using System = global::System;
public partial class Client
{
#pragma warning disable 8618
private string _baseUrl;
#pragma warning restore 8618
private System.Net.Http.HttpClient _httpClient;
private static System.Lazy<Newtonsoft.Json.JsonSerializerSettings> _settings = new System.Lazy<Newtonsoft.Json.JsonSerializerSettings>(CreateSerializerSettings, true);
private Newtonsoft.Json.JsonSerializerSettings _instanceSettings;
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
public Client(System.Net.Http.HttpClient httpClient)
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
{
BaseUrl = "https://your-domain.atlassian.net";
_httpClient = httpClient;
Initialize();
}
private static Newtonsoft.Json.JsonSerializerSettings CreateSerializerSettings()
{
var settings = new Newtonsoft.Json.JsonSerializerSettings();
UpdateJsonSerializerSettings(settings);
return settings;
}
public string BaseUrl
{
get { return _baseUrl; }
set
{
_baseUrl = value;
if (!string.IsNullOrEmpty(_baseUrl) && !_baseUrl.EndsWith("/"))
_baseUrl += '/';
}
}
protected Newtonsoft.Json.JsonSerializerSettings JsonSerializerSettings { get { return _instanceSettings ?? _settings.Value; } }
static partial void UpdateJsonSerializerSettings(Newtonsoft.Json.JsonSerializerSettings settings);
partial void Initialize();
partial void PrepareRequest(System.Net.Http.HttpClient client, System.Net.Http.HttpRequestMessage request, string url);
partial void PrepareRequest(System.Net.Http.HttpClient client, System.Net.Http.HttpRequestMessage request, System.Text.StringBuilder urlBuilder);
partial void ProcessResponse(System.Net.Http.HttpClient client, System.Net.Http.HttpResponseMessage response);
/// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
/// <summary>
/// Get announcement banner configuration
/// </summary>
/// <remarks>
/// Returns the current announcement banner configuration.
/// <br/>
/// <br/>**[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg).
/// </remarks>
/// <returns>Returned if the request is successful.</returns>
/// <exception cref="ApiException">A server side error occurred.</exception>
public virtual async System.Threading.Tasks.Task<AnnouncementBannerConfiguration> GetBannerAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
var client_ = _httpClient;
var disposeClient_ = false;
try
{
using (var request_ = new System.Net.Http.HttpRequestMessage())
{
request_.Method = new System.Net.Http.HttpMethod("GET");
request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json"));
var urlBuilder_ = new System.Text.StringBuilder();
if (!string.IsNullOrEmpty(_baseUrl)) urlBuilder_.Append(_baseUrl);
// Operation Path: "rest/api/3/announcementBanner"
urlBuilder_.Append("rest/api/3/announcem
|
ubuntu-latest
Target "Test" has thrown an exception
|
ubuntu-latest
Process completed with exit code 255.
|
ubuntu-latest
$GITHUB_STEP_SUMMARY upload aborted, supports content up to a size of 1024k, got 11613k. For more information see: https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-markdown-summary
|
macos-latest
[xUnit.net 00:00:02.78] NSwag.CodeGeneration.CSharp.Tests.ClientGenerationTests.CanGenerateFromJiraOpenApiSpecification [FAIL]
|
NSwag.CodeGeneration.CSharp.Tests.ClientGenerationTests.CanGenerateFromJiraOpenApiSpecification
VerifyException : Directory: /Users/runner/work/NSwag/NSwag/src/NSwag.CodeGeneration.CSharp.Tests/Snapshots
NotEqual:
- Received: JIRA_OpenAPI.received.txt
Verified: JIRA_OpenAPI.verified.txt
FileContent:
NotEqual:
Received: JIRA_OpenAPI.received.txt
namespace MyNamespace
{
using System = global::System;
public partial class Client
{
#pragma warning disable 8618
private string _baseUrl;
#pragma warning restore 8618
private System.Net.Http.HttpClient _httpClient;
private static System.Lazy<Newtonsoft.Json.JsonSerializerSettings> _settings = new System.Lazy<Newtonsoft.Json.JsonSerializerSettings>(CreateSerializerSettings, true);
private Newtonsoft.Json.JsonSerializerSettings _instanceSettings;
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
public Client(System.Net.Http.HttpClient httpClient)
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
{
BaseUrl = "https://your-domain.atlassian.net";
_httpClient = httpClient;
Initialize();
}
private static Newtonsoft.Json.JsonSerializerSettings CreateSerializerSettings()
{
var settings = new Newtonsoft.Json.JsonSerializerSettings();
UpdateJsonSerializerSettings(settings);
return settings;
}
public string BaseUrl
{
get { return _baseUrl; }
set
{
_baseUrl = value;
if (!string.IsNullOrEmpty(_baseUrl) && !_baseUrl.EndsWith("/"))
_baseUrl += '/';
}
}
protected Newtonsoft.Json.JsonSerializerSettings JsonSerializerSettings { get { return _instanceSettings ?? _settings.Value; } }
static partial void UpdateJsonSerializerSettings(Newtonsoft.Json.JsonSerializerSettings settings);
partial void Initialize();
partial void PrepareRequest(System.Net.Http.HttpClient client, System.Net.Http.HttpRequestMessage request, string url);
partial void PrepareRequest(System.Net.Http.HttpClient client, System.Net.Http.HttpRequestMessage request, System.Text.StringBuilder urlBuilder);
partial void ProcessResponse(System.Net.Http.HttpClient client, System.Net.Http.HttpResponseMessage response);
/// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
/// <summary>
/// Get announcement banner configuration
/// </summary>
/// <remarks>
/// Returns the current announcement banner configuration.
/// <br/>
/// <br/>**[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg).
/// </remarks>
/// <returns>Returned if the request is successful.</returns>
/// <exception cref="ApiException">A server side error occurred.</exception>
public virtual async System.Threading.Tasks.Task<AnnouncementBannerConfiguration> GetBannerAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
var client_ = _httpClient;
var disposeClient_ = false;
try
{
using (var request_ = new System.Net.Http.HttpRequestMessage())
{
request_.Method = new System.Net.Http.HttpMethod("GET");
request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json"));
var urlBuilder_ = new System.Text.StringBuilder();
if (!string.IsNullOrEmpty(_baseUrl)) urlBuilder_.Append(_baseUrl);
// Operation Path: "rest/api/3/announcementBanner"
urlBuilder_.Append("rest/api/3/announce
|
macos-latest
Target "Test" has thrown an exception
|
macos-latest
Process completed with exit code 255.
|
macos-latest
$GITHUB_STEP_SUMMARY upload aborted, supports content up to a size of 1024k, got 11613k. For more information see: https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-markdown-summary
|
windows-latest
Canceling since a higher priority waiting request for 'pr @ RicoSuter:feature/update-packages' exists
|
windows-latest
The operation was canceled.
|
windows-latest
D:\a\NSwag\NSwag\src\NSwagStudio.Installer\NSwagStudio.Installer.wixproj : warning NU1503: Skipping restore for project 'D:\a\NSwag\NSwag\src\NSwagStudio.Installer\NSwagStudio.Installer.wixproj'. The project file may be invalid or missing targets required for restore. [D:\a\NSwag\NSwag\src\NSwag.sln]
|