Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"rollForward": false
},
"microsoft.openapi.kiota": {
"version": "1.31.1",
"version": "1.32.1",
"commands": [
"kiota"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ public partial class ProductsRequestBuilder : BaseRequestBuilder
/// </summary>
/// <param name="pathParameters">Path parameters for the request</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
public ProductsRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/products{?kw*}", pathParameters)
public ProductsRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "", pathParameters)
{
}
/// <summary>
/// Instantiates a new <see cref="global::Swashbuckle.AspNetCore.IntegrationTests.KiotaTests.Products.ProductsRequestBuilder"/> and sets the default values.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
public ProductsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/products{?kw*}", rawUrl)
public ProductsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "", rawUrl)
{
}
/// <summary>
Expand Down Expand Up @@ -118,7 +118,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<gl
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::Swashbuckle.AspNetCore.IntegrationTests.KiotaTests.Products.ProductsRequestBuilder.ProductsRequestBuilderGetQueryParameters>> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
var requestInfo = new RequestInformation(Method.GET, "{+baseurl}/products{?kw*}", PathParameters);
requestInfo.Configure(requestConfiguration);
requestInfo.Headers.TryAdd("Accept", "application/json");
return requestInfo;
Expand All @@ -139,7 +139,7 @@ public RequestInformation ToPostRequestInformation(global::Swashbuckle.AspNetCor
{
#endif
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/products", PathParameters);
requestInfo.Configure(requestConfiguration);
requestInfo.Headers.TryAdd("Accept", "application/json");
requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ public partial class StoresItemRequestBuilder : BaseRequestBuilder
/// </summary>
/// <param name="pathParameters">Path parameters for the request</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
public StoresItemRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/stores/{id}{?id*,location*}", pathParameters)
public StoresItemRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/stores/{id}", pathParameters)
{
}
/// <summary>
/// Instantiates a new <see cref="global::Swashbuckle.AspNetCore.IntegrationTests.KiotaTests.Stores.Item.StoresItemRequestBuilder"/> and sets the default values.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
public StoresItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/stores/{id}{?id*,location*}", rawUrl)
public StoresItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/stores/{id}", rawUrl)
{
}
/// <returns>A <see cref="Stream"/></returns>
Expand Down Expand Up @@ -120,7 +120,7 @@ public RequestInformation ToPutRequestInformation(Action<RequestConfiguration<gl
public RequestInformation ToPutRequestInformation(Action<RequestConfiguration<global::Swashbuckle.AspNetCore.IntegrationTests.KiotaTests.Stores.Item.StoresItemRequestBuilder.StoresItemRequestBuilderPutQueryParameters>> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters);
var requestInfo = new RequestInformation(Method.PUT, "{+baseurl}/stores/{id}{?id*,location*}", PathParameters);
requestInfo.Configure(requestConfiguration);
return requestInfo;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ public partial class StoresRequestBuilder : BaseRequestBuilder
/// </summary>
/// <param name="pathParameters">Path parameters for the request</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
public StoresRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/stores{?id*,location*,locations*}", pathParameters)
public StoresRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "", pathParameters)
{
}
/// <summary>
/// Instantiates a new <see cref="global::Swashbuckle.AspNetCore.IntegrationTests.KiotaTests.Stores.StoresRequestBuilder"/> and sets the default values.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
public StoresRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/stores{?id*,location*,locations*}", rawUrl)
public StoresRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "", rawUrl)
{
}
/// <returns>A List&lt;global::Swashbuckle.AspNetCore.IntegrationTests.KiotaTests.Models.Store&gt;</returns>
Expand Down Expand Up @@ -101,7 +101,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<gl
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::Swashbuckle.AspNetCore.IntegrationTests.KiotaTests.Stores.StoresRequestBuilder.StoresRequestBuilderGetQueryParameters>> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
var requestInfo = new RequestInformation(Method.GET, "{+baseurl}/stores{?locations*}", PathParameters);
requestInfo.Configure(requestConfiguration);
requestInfo.Headers.TryAdd("Accept", "application/json");
return requestInfo;
Expand All @@ -117,7 +117,7 @@ public RequestInformation ToPostRequestInformation(Action<RequestConfiguration<g
public RequestInformation ToPostRequestInformation(Action<RequestConfiguration<global::Swashbuckle.AspNetCore.IntegrationTests.KiotaTests.Stores.StoresRequestBuilder.StoresRequestBuilderPostQueryParameters>> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/stores{?id*,location*}", PathParameters);
requestInfo.Configure(requestConfiguration);
requestInfo.Headers.TryAdd("Accept", "application/json");
return requestInfo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,7 @@ public partial class AnimalsPostRequestBody : IComposedTypeWrapper, IParsable
if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
var mappingValue = parseNode.GetChildNode("animalType")?.GetStringValue();
var result = new global::Swashbuckle.AspNetCore.IntegrationTests.KiotaTests.Animals.AnimalsRequestBuilder.AnimalsPostRequestBody();
if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
{
result.Animal = new global::Swashbuckle.AspNetCore.IntegrationTests.KiotaTests.Models.Animal();
}
else if("Cat".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
if("Cat".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
{
result.Cat = new global::Swashbuckle.AspNetCore.IntegrationTests.KiotaTests.Models.Cat();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,7 @@ public partial class SystemTextJsonAnimalsPostRequestBody : IComposedTypeWrapper
if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
var mappingValue = parseNode.GetChildNode("animalType")?.GetStringValue();
var result = new global::Swashbuckle.AspNetCore.IntegrationTests.KiotaTests.SystemTextJsonAnimals.SystemTextJsonAnimalsRequestBuilder.SystemTextJsonAnimalsPostRequestBody();
if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
{
result.SystemTextJsonAnimal = new global::Swashbuckle.AspNetCore.IntegrationTests.KiotaTests.Models.SystemTextJsonAnimal();
}
else if("Cat".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
if("Cat".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
{
result.SystemTextJsonCat = new global::Swashbuckle.AspNetCore.IntegrationTests.KiotaTests.Models.SystemTextJsonCat();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,7 @@ public partial class SystemTextJsonDefaultDiscriminatorAnimalsPostRequestBody :
if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
var mappingValue = parseNode.GetChildNode("$type")?.GetStringValue();
var result = new global::Swashbuckle.AspNetCore.IntegrationTests.KiotaTests.SystemTextJsonDefaultDiscriminatorAnimals.SystemTextJsonDefaultDiscriminatorAnimalsRequestBuilder.SystemTextJsonDefaultDiscriminatorAnimalsPostRequestBody();
if("".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
{
result.SystemTextJsonDefaultDiscriminatorAnimal = new global::Swashbuckle.AspNetCore.IntegrationTests.KiotaTests.Models.SystemTextJsonDefaultDiscriminatorAnimal();
}
else if("Cat".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
if("Cat".Equals(mappingValue, StringComparison.OrdinalIgnoreCase))
{
result.SystemTextJsonDefaultDiscriminatorCat = new global::Swashbuckle.AspNetCore.IntegrationTests.KiotaTests.Models.SystemTextJsonDefaultDiscriminatorCat();
}
Expand Down
Loading