Skip to content
Permalink
Browse files

Regen

  • Loading branch information
RicoSuter committed Jan 13, 2020
1 parent 42d3b64 commit ba726d2f999d969c4212a24c05f7c7d8e9f51e74
Showing with 154 additions and 142 deletions.
  1. +1 −1 samples/WithoutMiddleware/Sample.AspNetCore20/nswag_project_swagger.json
  2. +1 −1 samples/WithoutMiddleware/Sample.AspNetCore21/nswag_assembly_swagger.json
  3. +1 −1 samples/WithoutMiddleware/Sample.AspNetCore21/nswag_project_swagger.json
  4. +1 −1 samples/WithoutMiddleware/Sample.AspNetCore21/nswag_reflection_swagger.json
  5. +23 −21 src/NSwag.Integration.ClientPCL/PetStoreClient.cs
  6. +20 −16 src/NSwag.Integration.ClientPCL/ServiceClients.cs
  7. +18 −18 src/NSwag.Integration.ClientPCL/ServiceClientsContracts.cs
  8. +18 −16 src/NSwag.Integration.ClientPCL/UberClient.cs
  9. +1 −1 src/NSwag.Integration.ClientPCL/swagger.json
  10. +17 −17 src/NSwag.Integration.Console/Controllers.cs
  11. +20 −16 src/NSwag.Integration.Console/ServiceClients.cs
  12. +14 −14 src/NSwag.Integration.Console/ServiceClientsContracts.cs
  13. +1 −1 src/NSwag.Integration.TypeScriptWeb/scripts/serviceClientsAngular.ts
  14. +2 −2 src/NSwag.Integration.TypeScriptWeb/scripts/serviceClientsAngularJS.ts
  15. +1 −1 src/NSwag.Integration.TypeScriptWeb/scripts/serviceClientsAurelia.ts
  16. +1 −1 src/NSwag.Integration.TypeScriptWeb/scripts/serviceClientsFetch.ts
  17. +1 −1 src/NSwag.Integration.TypeScriptWeb/scripts/serviceClientsJQueryCallbacks.ts
  18. +1 −1 src/NSwag.Integration.TypeScriptWeb/scripts/serviceClientsJQueryPromises.ts
  19. +1 −1 src/NSwag.Integration.TypeScriptWeb/scripts/serviceClientsJQueryPromisesKO.ts
  20. +1 −1 src/NSwag.Integration.TypeScriptWeb/scripts/serviceClientsPetStoreFetch.ts
  21. +1 −1 src/NSwag.Integration.TypeScriptWeb/scripts/serviceClientsUberFetch.ts
  22. +1 −1 src/NSwag.Sample.NETCore11/swagger.json
  23. +1 −1 src/NSwag.Sample.NETCore20/swagger.json
  24. +1 −1 src/NSwag.Sample.NETCore21/swagger_assembly_cli.json
  25. +1 −1 src/NSwag.Sample.NETCore21/swagger_project_cli.json
  26. +1 −1 src/NSwag.Sample.NETCore22/openapi_project_cli.json
  27. +1 −1 src/NSwag.Sample.NETCore22/swagger_assembly_cli.json
  28. +1 −1 src/NSwag.Sample.NETCore22/swagger_project_cli.json
  29. +1 −1 src/NSwag.Sample.NETCore30/openapi.json
  30. +1 −1 src/NSwag.Sample.NetGlobalAsax/swagger.json
@@ -1,5 +1,5 @@
{
"x-generator": "NSwag v13.2.0.0 (NJsonSchema v10.1.2.0 (Newtonsoft.Json v10.0.0.0))",
"x-generator": "NSwag v13.2.1.0 (NJsonSchema v10.1.3.0 (Newtonsoft.Json v10.0.0.0))",
"swagger": "2.0",
"info": {
"title": "My Title",
@@ -1,5 +1,5 @@
{
"x-generator": "NSwag v13.2.0.0 (NJsonSchema v10.1.2.0 (Newtonsoft.Json v11.0.0.0))",
"x-generator": "NSwag v13.2.1.0 (NJsonSchema v10.1.3.0 (Newtonsoft.Json v11.0.0.0))",
"swagger": "2.0",
"info": {
"title": "My Title",
@@ -1,5 +1,5 @@
{
"x-generator": "NSwag v13.2.0.0 (NJsonSchema v10.1.2.0 (Newtonsoft.Json v11.0.0.0))",
"x-generator": "NSwag v13.2.1.0 (NJsonSchema v10.1.3.0 (Newtonsoft.Json v11.0.0.0))",
"swagger": "2.0",
"info": {
"title": "My Title",
@@ -1,5 +1,5 @@
{
"x-generator": "NSwag v13.2.0.0 (NJsonSchema v10.1.2.0 (Newtonsoft.Json v11.0.0.0))",
"x-generator": "NSwag v13.2.1.0 (NJsonSchema v10.1.3.0 (Newtonsoft.Json v11.0.0.0))",
"swagger": "2.0",
"info": {
"title": "My Title",
@@ -1,6 +1,6 @@
//----------------------
// <auto-generated>
// Generated using the NSwag toolchain v13.2.0.0 (NJsonSchema v10.1.2.0 (Newtonsoft.Json v11.0.0.0)) (http://NSwag.org)
// Generated using the NSwag toolchain v13.2.1.0 (NJsonSchema v10.1.3.0 (Newtonsoft.Json v11.0.0.0)) (http://NSwag.org)
// </auto-generated>
//----------------------

@@ -14,7 +14,7 @@ namespace PetStore
{
using System = global::System;

[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.2.0.0 (NJsonSchema v10.1.2.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.2.1.0 (NJsonSchema v10.1.3.0 (Newtonsoft.Json v11.0.0.0))")]
public partial interface IPetStoreClient
{
/// <summary>Find pet by ID</summary>
@@ -264,20 +264,22 @@ public partial interface IPetStoreClient

}

[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.2.0.0 (NJsonSchema v10.1.2.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.2.1.0 (NJsonSchema v10.1.3.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class PetStoreClient : IPetStoreClient
{
private string _baseUrl = "https://petstore.swagger.io/v2";
private System.Lazy<Newtonsoft.Json.JsonSerializerSettings> _settings;

public PetStoreClient()
{
_settings = new System.Lazy<Newtonsoft.Json.JsonSerializerSettings>(() =>
{
var settings = new Newtonsoft.Json.JsonSerializerSettings();
UpdateJsonSerializerSettings(settings);
return settings;
});
_settings = new System.Lazy<Newtonsoft.Json.JsonSerializerSettings>(CreateSerializerSettings);
}

private Newtonsoft.Json.JsonSerializerSettings CreateSerializerSettings()
{
var settings = new Newtonsoft.Json.JsonSerializerSettings();
UpdateJsonSerializerSettings(settings);
return settings;
}

public string BaseUrl
@@ -1961,7 +1963,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu
}
}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.2.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.3.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class Category : System.ComponentModel.INotifyPropertyChanged
{
private long? _id;
@@ -2007,7 +2009,7 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.2.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.3.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class Pet : System.ComponentModel.INotifyPropertyChanged
{
private long? _id;
@@ -2117,7 +2119,7 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.2.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.3.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class Tag : System.ComponentModel.INotifyPropertyChanged
{
private long? _id;
@@ -2163,7 +2165,7 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.2.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.3.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class ApiResponse : System.ComponentModel.INotifyPropertyChanged
{
private int? _code;
@@ -2224,7 +2226,7 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.2.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.3.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class Order : System.ComponentModel.INotifyPropertyChanged
{
private long? _id;
@@ -2332,7 +2334,7 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.2.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.3.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class User : System.ComponentModel.INotifyPropertyChanged
{
private long? _id;
@@ -2469,7 +2471,7 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.2.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.3.0 (Newtonsoft.Json v11.0.0.0)")]
public enum Anonymous
{
[System.Runtime.Serialization.EnumMember(Value = @"available")]
@@ -2483,7 +2485,7 @@ public enum Anonymous

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.2.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.3.0 (Newtonsoft.Json v11.0.0.0)")]
public enum PetStatus
{
[System.Runtime.Serialization.EnumMember(Value = @"available")]
@@ -2497,7 +2499,7 @@ public enum PetStatus

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.2.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.3.0 (Newtonsoft.Json v11.0.0.0)")]
public enum OrderStatus
{
[System.Runtime.Serialization.EnumMember(Value = @"placed")]
@@ -2511,7 +2513,7 @@ public enum OrderStatus

}

[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.2.0.0 (NJsonSchema v10.1.2.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.2.1.0 (NJsonSchema v10.1.3.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class FileParameter
{
public FileParameter(System.IO.Stream data)
@@ -2538,7 +2540,7 @@ public FileParameter(System.IO.Stream data, string fileName, string contentType)
public string ContentType { get; private set; }
}

[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.2.0.0 (NJsonSchema v10.1.2.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.2.1.0 (NJsonSchema v10.1.3.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class SwaggerException : System.Exception
{
public int StatusCode { get; private set; }
@@ -2561,7 +2563,7 @@ public override string ToString()
}
}

[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.2.0.0 (NJsonSchema v10.1.2.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.2.1.0 (NJsonSchema v10.1.3.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class SwaggerException<TResult> : SwaggerException
{
public TResult Result { get; private set; }
@@ -1,6 +1,6 @@
//----------------------
// <auto-generated>
// Generated using the NSwag toolchain v13.2.0.0 (NJsonSchema v10.1.2.0 (Newtonsoft.Json v11.0.0.0)) (http://NSwag.org)
// Generated using the NSwag toolchain v13.2.1.0 (NJsonSchema v10.1.3.0 (Newtonsoft.Json v11.0.0.0)) (http://NSwag.org)
// </auto-generated>
//----------------------

@@ -16,7 +16,7 @@ namespace NSwag.Integration.ClientPCL
{
using System = global::System;

[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.2.0.0 (NJsonSchema v10.1.2.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.2.1.0 (NJsonSchema v10.1.3.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class GeoClient : ClientBase
{
private string _baseUrl = "http://localhost:13452";
@@ -26,12 +26,14 @@ public partial class GeoClient : ClientBase
public GeoClient(System.Net.Http.HttpClient httpClient)
{
_httpClient = httpClient;
_settings = new System.Lazy<Newtonsoft.Json.JsonSerializerSettings>(() =>
{
var settings = new Newtonsoft.Json.JsonSerializerSettings { PreserveReferencesHandling = Newtonsoft.Json.PreserveReferencesHandling.All, Converters = new Newtonsoft.Json.JsonConverter[] { new Newtonsoft.Json.Converters.StringEnumConverter(), new JsonExceptionConverter() } };
UpdateJsonSerializerSettings(settings);
return settings;
});
_settings = new System.Lazy<Newtonsoft.Json.JsonSerializerSettings>(CreateSerializerSettings);
}

private Newtonsoft.Json.JsonSerializerSettings CreateSerializerSettings()
{
var settings = new Newtonsoft.Json.JsonSerializerSettings { PreserveReferencesHandling = Newtonsoft.Json.PreserveReferencesHandling.All, Converters = new Newtonsoft.Json.JsonConverter[] { new Newtonsoft.Json.Converters.StringEnumConverter(), new JsonExceptionConverter() } };
UpdateJsonSerializerSettings(settings);
return settings;
}

public string BaseUrl
@@ -928,7 +930,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu
}
}

[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.2.0.0 (NJsonSchema v10.1.2.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.2.1.0 (NJsonSchema v10.1.3.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class PersonsClient : ClientBase
{
private string _baseUrl = "http://localhost:13452";
@@ -938,12 +940,14 @@ public partial class PersonsClient : ClientBase
public PersonsClient(System.Net.Http.HttpClient httpClient)
{
_httpClient = httpClient;
_settings = new System.Lazy<Newtonsoft.Json.JsonSerializerSettings>(() =>
{
var settings = new Newtonsoft.Json.JsonSerializerSettings { PreserveReferencesHandling = Newtonsoft.Json.PreserveReferencesHandling.All, Converters = new Newtonsoft.Json.JsonConverter[] { new Newtonsoft.Json.Converters.StringEnumConverter(), new JsonExceptionConverter() } };
UpdateJsonSerializerSettings(settings);
return settings;
});
_settings = new System.Lazy<Newtonsoft.Json.JsonSerializerSettings>(CreateSerializerSettings);
}

private Newtonsoft.Json.JsonSerializerSettings CreateSerializerSettings()
{
var settings = new Newtonsoft.Json.JsonSerializerSettings { PreserveReferencesHandling = Newtonsoft.Json.PreserveReferencesHandling.All, Converters = new Newtonsoft.Json.JsonConverter[] { new Newtonsoft.Json.Converters.StringEnumConverter(), new JsonExceptionConverter() } };
UpdateJsonSerializerSettings(settings);
return settings;
}

public string BaseUrl
@@ -1842,7 +1846,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu
}
}

[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.2.0.0 (NJsonSchema v10.1.2.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.2.1.0 (NJsonSchema v10.1.3.0 (Newtonsoft.Json v11.0.0.0))")]
internal class JsonExceptionConverter : Newtonsoft.Json.JsonConverter
{
private readonly Newtonsoft.Json.Serialization.DefaultContractResolver _defaultContractResolver = new Newtonsoft.Json.Serialization.DefaultContractResolver();

0 comments on commit ba726d2

Please sign in to comment.
You can’t perform that action at this time.