Permalink
Browse files

Regenerate clients

  • Loading branch information...
RSuter committed Nov 5, 2018
1 parent 4f43152 commit f9857ce3ef7f0a284734a8751ada39877fbffddb
Showing with 99 additions and 99 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. +15 −15 src/NSwag.Integration.ClientPCL/PetStoreClient.cs
  6. +4 −4 src/NSwag.Integration.ClientPCL/ServiceClients.cs
  7. +18 −18 src/NSwag.Integration.ClientPCL/ServiceClientsContracts.cs
  8. +10 −10 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. +4 −4 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. +1 −1 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.NetGlobalAsax/swagger.json
@@ -1,5 +1,5 @@
{
"x-generator": "NSwag v11.20.1.0 (NJsonSchema v9.11.0.0 (Newtonsoft.Json v10.0.0.0))",
"x-generator": "NSwag v11.20.1.0 (NJsonSchema v9.12.0.0 (Newtonsoft.Json v10.0.0.0))",
"swagger": "2.0",
"info": {
"title": "My Title",
@@ -1,5 +1,5 @@
{
"x-generator": "NSwag v11.20.1.0 (NJsonSchema v9.11.0.0 (Newtonsoft.Json v11.0.0.0))",
"x-generator": "NSwag v11.20.1.0 (NJsonSchema v9.12.0.0 (Newtonsoft.Json v11.0.0.0))",
"swagger": "2.0",
"info": {
"title": "My Title",
@@ -1,5 +1,5 @@
{
"x-generator": "NSwag v11.20.1.0 (NJsonSchema v9.11.0.0 (Newtonsoft.Json v11.0.0.0))",
"x-generator": "NSwag v11.20.1.0 (NJsonSchema v9.12.0.0 (Newtonsoft.Json v11.0.0.0))",
"swagger": "2.0",
"info": {
"title": "My Title",
@@ -1,5 +1,5 @@
{
"x-generator": "NSwag v11.20.1.0 (NJsonSchema v9.11.0.0 (Newtonsoft.Json v11.0.0.0))",
"x-generator": "NSwag v11.20.1.0 (NJsonSchema v9.12.0.0 (Newtonsoft.Json v11.0.0.0))",
"swagger": "2.0",
"info": {
"title": "My Title",
@@ -1,14 +1,14 @@
//----------------------
// <auto-generated>
// Generated using the NSwag toolchain v11.20.1.0 (NJsonSchema v9.11.0.0 (Newtonsoft.Json v11.0.0.0)) (http://NSwag.org)
// Generated using the NSwag toolchain v11.20.1.0 (NJsonSchema v9.12.0.0 (Newtonsoft.Json v11.0.0.0)) (http://NSwag.org)
// </auto-generated>
//----------------------
namespace PetStore
{
#pragma warning disable // Disable all warnings
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.11.0.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.12.0.0 (Newtonsoft.Json v11.0.0.0))")]
public partial interface IPetStoreClient
{
/// <summary>Update an existing pet</summary>
@@ -258,7 +258,7 @@ public partial interface IPetStoreClient
}
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.11.0.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.12.0.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class PetStoreClient : IPetStoreClient
{
private string _baseUrl = "https://petstore.swagger.io/v2";
@@ -1977,7 +1977,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.11.0.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.12.0.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class Order : System.ComponentModel.INotifyPropertyChanged
{
private long? _id;
@@ -2094,7 +2094,7 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.11.0.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.12.0.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class User : System.ComponentModel.INotifyPropertyChanged
{
private long? _id;
@@ -2240,7 +2240,7 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.11.0.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.12.0.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class Category : System.ComponentModel.INotifyPropertyChanged
{
private long? _id;
@@ -2295,7 +2295,7 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.11.0.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.12.0.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class Tag : System.ComponentModel.INotifyPropertyChanged
{
private long? _id;
@@ -2350,7 +2350,7 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.11.0.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.12.0.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class ApiResponse : System.ComponentModel.INotifyPropertyChanged
{
private int? _code;
@@ -2420,7 +2420,7 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.11.0.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.12.0.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class Pet : System.ComponentModel.INotifyPropertyChanged
{
private long? _id;
@@ -2539,7 +2539,7 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.11.0.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.12.0.0 (Newtonsoft.Json v11.0.0.0)")]
public enum Anonymous
{
[System.Runtime.Serialization.EnumMember(Value = "available")]
@@ -2553,7 +2553,7 @@ public enum Anonymous
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.11.0.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.12.0.0 (Newtonsoft.Json v11.0.0.0)")]
public enum OrderStatus
{
[System.Runtime.Serialization.EnumMember(Value = "placed")]
@@ -2567,7 +2567,7 @@ public enum OrderStatus
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.11.0.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.12.0.0 (Newtonsoft.Json v11.0.0.0)")]
public enum PetStatus
{
[System.Runtime.Serialization.EnumMember(Value = "available")]
@@ -2581,7 +2581,7 @@ public enum PetStatus
}
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.11.0.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.12.0.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class FileParameter
{
public FileParameter(System.IO.Stream data)
@@ -2600,7 +2600,7 @@ public FileParameter(System.IO.Stream data, string fileName)
public string FileName { get; private set; }
}
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.11.0.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.12.0.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class SwaggerException : System.Exception
{
public int StatusCode { get; private set; }
@@ -2623,7 +2623,7 @@ public override string ToString()
}
}
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.11.0.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.12.0.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 v11.20.1.0 (NJsonSchema v9.11.0.0 (Newtonsoft.Json v11.0.0.0)) (http://NSwag.org)
// Generated using the NSwag toolchain v11.20.1.0 (NJsonSchema v9.12.0.0 (Newtonsoft.Json v11.0.0.0)) (http://NSwag.org)
// </auto-generated>
//----------------------
@@ -10,7 +10,7 @@ namespace NSwag.Integration.ClientPCL
{
#pragma warning disable // Disable all warnings
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.11.0.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.12.0.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class GeoClient : ClientBase
{
private string _baseUrl = "http://localhost:13452";
@@ -889,7 +889,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu
}
}
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.11.0.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.12.0.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class PersonsClient : ClientBase
{
private string _baseUrl = "http://localhost:13452";
@@ -1859,7 +1859,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.11.0.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.12.0.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();
@@ -1,6 +1,6 @@
//----------------------
// <auto-generated>
// Generated using the NSwag toolchain v11.20.1.0 (NJsonSchema v9.11.0.0 (Newtonsoft.Json v11.0.0.0)) (http://NSwag.org)
// Generated using the NSwag toolchain v11.20.1.0 (NJsonSchema v9.12.0.0 (Newtonsoft.Json v11.0.0.0)) (http://NSwag.org)
// </auto-generated>
//----------------------
@@ -14,7 +14,7 @@ namespace NSwag.Integration.ClientPCL.Contracts
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.11.0.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.12.0.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class GeoPoint
{
[Newtonsoft.Json.JsonProperty("Latitude", Required = Newtonsoft.Json.Required.Always)]
@@ -35,7 +35,7 @@ public static GeoPoint FromJson(string data)
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.11.0.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.12.0.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class GenericRequestOfAddressAndPerson
{
[Newtonsoft.Json.JsonProperty("Item1", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
@@ -56,7 +56,7 @@ public static GenericRequestOfAddressAndPerson FromJson(string data)
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.11.0.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.12.0.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class Address
{
[Newtonsoft.Json.JsonProperty("IsPrimary", Required = Newtonsoft.Json.Required.Always)]
@@ -79,7 +79,7 @@ public static Address FromJson(string data)
[Newtonsoft.Json.JsonConverter(typeof(JsonInheritanceConverter), "discriminator")]
[JsonInheritanceAttribute("Teacher", typeof(Teacher))]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.11.0.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.12.0.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class Person
{
[Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.Always)]
@@ -143,7 +143,7 @@ public static Person FromJson(string data)
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.11.0.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.12.0.0 (Newtonsoft.Json v11.0.0.0)")]
public enum Gender
{
[System.Runtime.Serialization.EnumMember(Value = "Male")]
@@ -154,7 +154,7 @@ public enum Gender
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.11.0.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.12.0.0 (Newtonsoft.Json v11.0.0.0)")]
public enum SkillLevel
{
Low = 0,
@@ -165,7 +165,7 @@ public enum SkillLevel
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.11.0.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.12.0.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class Teacher : Person
{
[Newtonsoft.Json.JsonProperty("Course", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
@@ -186,7 +186,7 @@ public static Teacher FromJson(string data)
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.11.0.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.12.0.0 (Newtonsoft.Json v11.0.0.0)")]
[Newtonsoft.Json.JsonObjectAttribute]
public partial class PersonNotFoundException : System.Exception
{
@@ -206,7 +206,7 @@ public static PersonNotFoundException FromJson(string data)
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "11.20.1.0 (NJsonSchema v9.11.0.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "11.20.1.0 (NJsonSchema v9.12.0.0 (Newtonsoft.Json v11.0.0.0))")]
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple = true)]
internal class JsonInheritanceAttribute : System.Attribute
{
@@ -221,7 +221,7 @@ public JsonInheritanceAttribute(string key, System.Type type)
public System.Type Type { get; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "11.20.1.0 (NJsonSchema v9.11.0.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "11.20.1.0 (NJsonSchema v9.12.0.0 (Newtonsoft.Json v11.0.0.0))")]
internal class JsonInheritanceConverter : Newtonsoft.Json.JsonConverter
{
internal static readonly string DefaultDiscriminatorName = "discriminator";
@@ -334,7 +334,7 @@ private string GetSubtypeDiscriminator(System.Type objectType)
}
}
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.11.0.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.12.0.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class FileParameter
{
public FileParameter(System.IO.Stream data)
@@ -389,7 +389,7 @@ public void Dispose()
}
}
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.11.0.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.12.0.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class SwaggerResponse
{
public int StatusCode { get; private set; }
@@ -403,7 +403,7 @@ public SwaggerResponse(int statusCode, System.Collections.Generic.Dictionary<str
}
}
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.11.0.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.12.0.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class SwaggerResponse<TResult> : SwaggerResponse
{
public TResult Result { get; private set; }
@@ -415,7 +415,7 @@ public SwaggerResponse(int statusCode, System.Collections.Generic.Dictionary<str
}
}
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.11.0.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.12.0.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class GeoClientException : System.Exception
{
public int StatusCode { get; private set; }
@@ -438,7 +438,7 @@ public override string ToString()
}
}
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.11.0.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.12.0.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class GeoClientException<TResult> : GeoClientException
{
public TResult Result { get; private set; }
@@ -450,7 +450,7 @@ public GeoClientException(string message, int statusCode, string response, Syste
}
}
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.11.0.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.12.0.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class PersonsClientException : System.Exception
{
public int StatusCode { get; private set; }
@@ -473,7 +473,7 @@ public override string ToString()
}
}
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.11.0.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "11.20.1.0 (NJsonSchema v9.12.0.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class PersonsClientException<TResult> : PersonsClientException
{
public TResult Result { get; private set; }
Oops, something went wrong.

0 comments on commit f9857ce

Please sign in to comment.