Skip to content
Permalink
Browse files

Regen clients

  • Loading branch information...
RicoSuter committed Aug 22, 2019
1 parent 0758afb commit d67c06edd8afe25974028659dd00de3e0be2f294
Showing with 118 additions and 104 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. +17 −15 src/NSwag.Integration.ClientPCL/PetStoreClient.cs
  6. +6 −4 src/NSwag.Integration.ClientPCL/ServiceClients.cs
  7. +20 −18 src/NSwag.Integration.ClientPCL/ServiceClientsContracts.cs
  8. +12 −10 src/NSwag.Integration.ClientPCL/UberClient.cs
  9. +1 −1 src/NSwag.Integration.ClientPCL/swagger.json
  10. +19 −17 src/NSwag.Integration.Console/Controllers.cs
  11. +6 −4 src/NSwag.Integration.Console/ServiceClients.cs
  12. +16 −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.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.NetGlobalAsax/swagger.json
@@ -1,5 +1,5 @@
{
"x-generator": "NSwag v13.0.5.0 (NJsonSchema v10.0.22.0 (Newtonsoft.Json v10.0.0.0))",
"x-generator": "NSwag v13.0.5.0 (NJsonSchema v10.0.23.0 (Newtonsoft.Json v10.0.0.0))",
"swagger": "2.0",
"info": {
"title": "My Title",
@@ -1,5 +1,5 @@
{
"x-generator": "NSwag v13.0.5.0 (NJsonSchema v10.0.22.0 (Newtonsoft.Json v11.0.0.0))",
"x-generator": "NSwag v13.0.5.0 (NJsonSchema v10.0.23.0 (Newtonsoft.Json v11.0.0.0))",
"swagger": "2.0",
"info": {
"title": "My Title",
@@ -1,5 +1,5 @@
{
"x-generator": "NSwag v13.0.5.0 (NJsonSchema v10.0.22.0 (Newtonsoft.Json v11.0.0.0))",
"x-generator": "NSwag v13.0.5.0 (NJsonSchema v10.0.23.0 (Newtonsoft.Json v11.0.0.0))",
"swagger": "2.0",
"info": {
"title": "My Title",
@@ -1,5 +1,5 @@
{
"x-generator": "NSwag v13.0.5.0 (NJsonSchema v10.0.22.0 (Newtonsoft.Json v11.0.0.0))",
"x-generator": "NSwag v13.0.5.0 (NJsonSchema v10.0.23.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.0.5.0 (NJsonSchema v10.0.22.0 (Newtonsoft.Json v11.0.0.0)) (http://NSwag.org)
// Generated using the NSwag toolchain v13.0.5.0 (NJsonSchema v10.0.23.0 (Newtonsoft.Json v11.0.0.0)) (http://NSwag.org)
// </auto-generated>
//----------------------

@@ -12,7 +12,9 @@

namespace PetStore
{
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.22.0 (Newtonsoft.Json v11.0.0.0))")]
using System = global::System;

[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.23.0 (Newtonsoft.Json v11.0.0.0))")]
public partial interface IPetStoreClient
{
/// <summary>Update an existing pet</summary>
@@ -262,7 +264,7 @@ public partial interface IPetStoreClient

}

[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.22.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.23.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class PetStoreClient : IPetStoreClient
{
private string _baseUrl = "https://petstore.swagger.io/v2";
@@ -1959,7 +1961,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu
}
}

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

}

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

}

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

}

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

}

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

}

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

}

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

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.23.0 (Newtonsoft.Json v11.0.0.0)")]
public enum OrderStatus
{
[System.Runtime.Serialization.EnumMember(Value = @"placed")]
@@ -2495,7 +2497,7 @@ public enum OrderStatus

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.23.0 (Newtonsoft.Json v11.0.0.0)")]
public enum PetStatus
{
[System.Runtime.Serialization.EnumMember(Value = @"available")]
@@ -2509,7 +2511,7 @@ public enum PetStatus

}

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

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

[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.22.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.23.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.0.5.0 (NJsonSchema v10.0.22.0 (Newtonsoft.Json v11.0.0.0)) (http://NSwag.org)
// Generated using the NSwag toolchain v13.0.5.0 (NJsonSchema v10.0.23.0 (Newtonsoft.Json v11.0.0.0)) (http://NSwag.org)
// </auto-generated>
//----------------------

@@ -14,7 +14,9 @@

namespace NSwag.Integration.ClientPCL
{
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.22.0 (Newtonsoft.Json v11.0.0.0))")]
using System = global::System;

[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.23.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class GeoClient : ClientBase
{
private string _baseUrl = "http://localhost:13452";
@@ -926,7 +928,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu
}
}

[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.22.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.23.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class PersonsClient : ClientBase
{
private string _baseUrl = "http://localhost:13452";
@@ -1840,7 +1842,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu
}
}

[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.22.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.23.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 v13.0.5.0 (NJsonSchema v10.0.22.0 (Newtonsoft.Json v11.0.0.0)) (http://NSwag.org)
// Generated using the NSwag toolchain v13.0.5.0 (NJsonSchema v10.0.23.0 (Newtonsoft.Json v11.0.0.0)) (http://NSwag.org)
// </auto-generated>
//----------------------

@@ -12,9 +12,11 @@

namespace NSwag.Integration.ClientPCL.Contracts
{
using System = global::System;



[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.23.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class GeoPoint
{
[Newtonsoft.Json.JsonProperty("Latitude", Required = Newtonsoft.Json.Required.Always)]
@@ -26,7 +28,7 @@ public partial class GeoPoint

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.23.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)]
@@ -38,7 +40,7 @@ public partial class GenericRequestOfAddressAndPerson

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.23.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class Address
{
[Newtonsoft.Json.JsonProperty("IsPrimary", Required = Newtonsoft.Json.Required.Always)]
@@ -52,7 +54,7 @@ public partial class Address

[Newtonsoft.Json.JsonConverter(typeof(JsonInheritanceConverter), "discriminator")]
[JsonInheritanceAttribute("Teacher", typeof(Teacher))]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.23.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class Person
{
[Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.Always)]
@@ -107,7 +109,7 @@ public partial class Person

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.23.0 (Newtonsoft.Json v11.0.0.0)")]
public enum Gender
{
[System.Runtime.Serialization.EnumMember(Value = @"Male")]
@@ -118,7 +120,7 @@ public enum Gender

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.23.0 (Newtonsoft.Json v11.0.0.0)")]
public enum SkillLevel
{
Low = 0,
@@ -129,7 +131,7 @@ public enum SkillLevel

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.23.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)]
@@ -141,7 +143,7 @@ public partial class Teacher : Person

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.23.0 (Newtonsoft.Json v11.0.0.0)")]
[Newtonsoft.Json.JsonObjectAttribute]
public partial class PersonNotFoundException : System.Exception
{
@@ -152,7 +154,7 @@ public partial class PersonNotFoundException : System.Exception

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.23.0 (Newtonsoft.Json v11.0.0.0)")]
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple = true)]
internal class JsonInheritanceAttribute : System.Attribute
{
@@ -167,7 +169,7 @@ public JsonInheritanceAttribute(string key, System.Type type)
public System.Type Type { get; }
}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.23.0 (Newtonsoft.Json v11.0.0.0)")]
internal class JsonInheritanceConverter : Newtonsoft.Json.JsonConverter
{
internal static readonly string DefaultDiscriminatorName = "discriminator";
@@ -286,7 +288,7 @@ private string GetSubtypeDiscriminator(System.Type objectType)
}
}

[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.22.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.23.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class FileParameter
{
public FileParameter(System.IO.Stream data)
@@ -349,7 +351,7 @@ public void Dispose()
}
}

[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.22.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.23.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class SwaggerResponse
{
public int StatusCode { get; private set; }
@@ -363,7 +365,7 @@ public SwaggerResponse(int statusCode, System.Collections.Generic.IReadOnlyDicti
}
}

[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.22.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.23.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class SwaggerResponse<TResult> : SwaggerResponse
{
public TResult Result { get; private set; }
@@ -375,7 +377,7 @@ public SwaggerResponse(int statusCode, System.Collections.Generic.IReadOnlyDicti
}
}

[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.22.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.23.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class GeoClientException : System.Exception
{
public int StatusCode { get; private set; }
@@ -398,7 +400,7 @@ public override string ToString()
}
}

[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.22.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.23.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class GeoClientException<TResult> : GeoClientException
{
public TResult Result { get; private set; }
@@ -410,7 +412,7 @@ public GeoClientException(string message, int statusCode, string response, Syste
}
}

[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.22.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.23.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class PersonsClientException : System.Exception
{
public int StatusCode { get; private set; }
@@ -433,7 +435,7 @@ public override string ToString()
}
}

[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.22.0 (Newtonsoft.Json v11.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.23.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class PersonsClientException<TResult> : PersonsClientException
{
public TResult Result { get; private set; }

0 comments on commit d67c06e

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