diff --git a/src/GitHub/Organizations/OrganizationsRequestBuilder.cs b/src/GitHub/Organizations/OrganizationsRequestBuilder.cs
index 11c64d9f..7d98966b 100644
--- a/src/GitHub/Organizations/OrganizationsRequestBuilder.cs
+++ b/src/GitHub/Organizations/OrganizationsRequestBuilder.cs
@@ -28,7 +28,7 @@ public class OrganizationsRequestBuilder : BaseRequestBuilder {
public OrganizationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organizations{?per_page*,since*}", rawUrl) {
}
///
- /// Lists all organizations, in the order that they were created on GitHub.**Note:** Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers) to get the URL for the next page of organizations.
+ /// Lists all organizations, in the order that they were created.**Note:** Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers) to get the URL for the next page of organizations.
/// API method documentation
///
/// A List<OrganizationSimple>
@@ -46,7 +46,7 @@ public class OrganizationsRequestBuilder : BaseRequestBuilder {
return collectionResult?.ToList();
}
///
- /// Lists all organizations, in the order that they were created on GitHub.**Note:** Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers) to get the URL for the next page of organizations.
+ /// Lists all organizations, in the order that they were created.**Note:** Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers) to get the URL for the next page of organizations.
///
/// A
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -71,7 +71,7 @@ public class OrganizationsRequestBuilder : BaseRequestBuilder {
return new OrganizationsRequestBuilder(rawUrl, RequestAdapter);
}
///
- /// Lists all organizations, in the order that they were created on GitHub.**Note:** Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers) to get the URL for the next page of organizations.
+ /// Lists all organizations, in the order that they were created.**Note:** Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers) to get the URL for the next page of organizations.
///
public class OrganizationsRequestBuilderGetQueryParameters {
/// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
diff --git a/src/GitHub/Repos/Item/Item/Commits/Item/BranchesWhereHead/BranchesWhereHeadRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Commits/Item/BranchesWhereHead/BranchesWhereHeadRequestBuilder.cs
index e6c2f209..946c8e5f 100644
--- a/src/GitHub/Repos/Item/Item/Commits/Item/BranchesWhereHead/BranchesWhereHeadRequestBuilder.cs
+++ b/src/GitHub/Repos/Item/Item/Commits/Item/BranchesWhereHead/BranchesWhereHeadRequestBuilder.cs
@@ -34,6 +34,7 @@ public class BranchesWhereHeadRequestBuilder : BaseRequestBuilder {
/// A List<BranchShort>
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 409 status code
/// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -44,6 +45,7 @@ public class BranchesWhereHeadRequestBuilder : BaseRequestBuilder {
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary> {
+ {"409", BasicError.CreateFromDiscriminatorValue},
{"422", ValidationError.CreateFromDiscriminatorValue},
};
var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, BranchShort.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
diff --git a/src/GitHub/Repos/Item/Item/Commits/Item/Commit_shaItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Commits/Item/Commit_shaItemRequestBuilder.cs
index ba2abd31..dd59a109 100644
--- a/src/GitHub/Repos/Item/Item/Commits/Item/Commit_shaItemRequestBuilder.cs
+++ b/src/GitHub/Repos/Item/Item/Commits/Item/Commit_shaItemRequestBuilder.cs
@@ -70,6 +70,7 @@ public class Commit_shaItemRequestBuilder : BaseRequestBuilder {
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
/// When receiving a 404 status code
+ /// When receiving a 409 status code
/// When receiving a 422 status code
/// When receiving a 500 status code
/// When receiving a 503 status code
@@ -83,6 +84,7 @@ public class Commit_shaItemRequestBuilder : BaseRequestBuilder {
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary> {
{"404", BasicError.CreateFromDiscriminatorValue},
+ {"409", BasicError.CreateFromDiscriminatorValue},
{"422", ValidationError.CreateFromDiscriminatorValue},
{"500", BasicError.CreateFromDiscriminatorValue},
{"503", Commit503Error.CreateFromDiscriminatorValue},
diff --git a/src/GitHub/Repos/Item/Item/Commits/Item/Pulls/PullsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Commits/Item/Pulls/PullsRequestBuilder.cs
index 6538d1d6..66df4f05 100644
--- a/src/GitHub/Repos/Item/Item/Commits/Item/Pulls/PullsRequestBuilder.cs
+++ b/src/GitHub/Repos/Item/Item/Commits/Item/Pulls/PullsRequestBuilder.cs
@@ -34,6 +34,7 @@ public class PullsRequestBuilder : BaseRequestBuilder {
/// A List<PullRequestSimple>
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 409 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -42,7 +43,10 @@ public class PullsRequestBuilder : BaseRequestBuilder {
public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) {
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
- var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, PullRequestSimple.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ var errorMapping = new Dictionary> {
+ {"409", BasicError.CreateFromDiscriminatorValue},
+ };
+ var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, PullRequestSimple.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
return collectionResult?.ToList();
}
///
diff --git a/src/GitHub/Repos/Item/Item/Git/Blobs/Item/WithFile_shaItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Blobs/Item/WithFile_shaItemRequestBuilder.cs
index 7572eda5..c5372227 100644
--- a/src/GitHub/Repos/Item/Item/Git/Blobs/Item/WithFile_shaItemRequestBuilder.cs
+++ b/src/GitHub/Repos/Item/Item/Git/Blobs/Item/WithFile_shaItemRequestBuilder.cs
@@ -36,6 +36,7 @@ public class WithFile_shaItemRequestBuilder : BaseRequestBuilder {
/// Configuration for the request such as headers, query parameters, and middleware options.
/// When receiving a 403 status code
/// When receiving a 404 status code
+ /// When receiving a 409 status code
/// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -48,6 +49,7 @@ public class WithFile_shaItemRequestBuilder : BaseRequestBuilder {
var errorMapping = new Dictionary> {
{"403", BasicError.CreateFromDiscriminatorValue},
{"404", BasicError.CreateFromDiscriminatorValue},
+ {"409", BasicError.CreateFromDiscriminatorValue},
{"422", ValidationError.CreateFromDiscriminatorValue},
};
return await RequestAdapter.SendAsync(requestInfo, Blob.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
diff --git a/src/GitHub/Repos/Item/Item/Git/Commits/CommitsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Commits/CommitsRequestBuilder.cs
index 8a7c6c78..75465ded 100644
--- a/src/GitHub/Repos/Item/Item/Git/Commits/CommitsRequestBuilder.cs
+++ b/src/GitHub/Repos/Item/Item/Git/Commits/CommitsRequestBuilder.cs
@@ -45,6 +45,7 @@ public class CommitsRequestBuilder : BaseRequestBuilder {
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
/// When receiving a 404 status code
+ /// When receiving a 409 status code
/// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -57,6 +58,7 @@ public class CommitsRequestBuilder : BaseRequestBuilder {
var requestInfo = ToPostRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary> {
{"404", BasicError.CreateFromDiscriminatorValue},
+ {"409", BasicError.CreateFromDiscriminatorValue},
{"422", ValidationError.CreateFromDiscriminatorValue},
};
return await RequestAdapter.SendAsync(requestInfo, GitCommit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
diff --git a/src/GitHub/Repos/Item/Item/Git/Commits/Item/WithCommit_shaItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Commits/Item/WithCommit_shaItemRequestBuilder.cs
index 2d3fbbb5..83bc259c 100644
--- a/src/GitHub/Repos/Item/Item/Git/Commits/Item/WithCommit_shaItemRequestBuilder.cs
+++ b/src/GitHub/Repos/Item/Item/Git/Commits/Item/WithCommit_shaItemRequestBuilder.cs
@@ -35,6 +35,7 @@ public class WithCommit_shaItemRequestBuilder : BaseRequestBuilder {
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
/// When receiving a 404 status code
+ /// When receiving a 409 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -45,6 +46,7 @@ public class WithCommit_shaItemRequestBuilder : BaseRequestBuilder {
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary> {
{"404", BasicError.CreateFromDiscriminatorValue},
+ {"409", BasicError.CreateFromDiscriminatorValue},
};
return await RequestAdapter.SendAsync(requestInfo, GitCommit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
diff --git a/src/GitHub/Repos/Item/Item/Git/MatchingRefs/Item/WithRefItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/MatchingRefs/Item/WithRefItemRequestBuilder.cs
index d31bca5e..0ba79477 100644
--- a/src/GitHub/Repos/Item/Item/Git/MatchingRefs/Item/WithRefItemRequestBuilder.cs
+++ b/src/GitHub/Repos/Item/Item/Git/MatchingRefs/Item/WithRefItemRequestBuilder.cs
@@ -34,6 +34,7 @@ public class WithRefItemRequestBuilder : BaseRequestBuilder {
/// A List<GitRef>
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 409 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -42,7 +43,10 @@ public class WithRefItemRequestBuilder : BaseRequestBuilder {
public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) {
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
- var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GitRef.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ var errorMapping = new Dictionary> {
+ {"409", BasicError.CreateFromDiscriminatorValue},
+ };
+ var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GitRef.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
return collectionResult?.ToList();
}
///
diff --git a/src/GitHub/Repos/Item/Item/Git/Ref/Item/WithRefItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Ref/Item/WithRefItemRequestBuilder.cs
index 711f0d09..60819935 100644
--- a/src/GitHub/Repos/Item/Item/Git/Ref/Item/WithRefItemRequestBuilder.cs
+++ b/src/GitHub/Repos/Item/Item/Git/Ref/Item/WithRefItemRequestBuilder.cs
@@ -35,6 +35,7 @@ public class WithRefItemRequestBuilder : BaseRequestBuilder {
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
/// When receiving a 404 status code
+ /// When receiving a 409 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -45,6 +46,7 @@ public class WithRefItemRequestBuilder : BaseRequestBuilder {
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary> {
{"404", BasicError.CreateFromDiscriminatorValue},
+ {"409", BasicError.CreateFromDiscriminatorValue},
};
return await RequestAdapter.SendAsync(requestInfo, GitRef.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
diff --git a/src/GitHub/Repos/Item/Item/Git/Refs/Item/WithRefItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Refs/Item/WithRefItemRequestBuilder.cs
index 23ca85ab..408e6b71 100644
--- a/src/GitHub/Repos/Item/Item/Git/Refs/Item/WithRefItemRequestBuilder.cs
+++ b/src/GitHub/Repos/Item/Item/Git/Refs/Item/WithRefItemRequestBuilder.cs
@@ -33,6 +33,7 @@ public class WithRefItemRequestBuilder : BaseRequestBuilder {
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 409 status code
/// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -43,6 +44,7 @@ public class WithRefItemRequestBuilder : BaseRequestBuilder {
#endif
var requestInfo = ToDeleteRequestInformation(requestConfiguration);
var errorMapping = new Dictionary> {
+ {"409", BasicError.CreateFromDiscriminatorValue},
{"422", ValidationError.CreateFromDiscriminatorValue},
};
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
@@ -55,6 +57,7 @@ public class WithRefItemRequestBuilder : BaseRequestBuilder {
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 409 status code
/// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -66,6 +69,7 @@ public class WithRefItemRequestBuilder : BaseRequestBuilder {
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary> {
+ {"409", BasicError.CreateFromDiscriminatorValue},
{"422", ValidationError.CreateFromDiscriminatorValue},
};
return await RequestAdapter.SendAsync(requestInfo, GitRef.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
diff --git a/src/GitHub/Repos/Item/Item/Git/Refs/RefsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Refs/RefsRequestBuilder.cs
index 6b5b8a8c..5a97b324 100644
--- a/src/GitHub/Repos/Item/Item/Git/Refs/RefsRequestBuilder.cs
+++ b/src/GitHub/Repos/Item/Item/Git/Refs/RefsRequestBuilder.cs
@@ -44,6 +44,7 @@ public class RefsRequestBuilder : BaseRequestBuilder {
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 409 status code
/// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -55,6 +56,7 @@ public class RefsRequestBuilder : BaseRequestBuilder {
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToPostRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary> {
+ {"409", BasicError.CreateFromDiscriminatorValue},
{"422", ValidationError.CreateFromDiscriminatorValue},
};
return await RequestAdapter.SendAsync(requestInfo, GitRef.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
diff --git a/src/GitHub/Repos/Item/Item/Git/Tags/Item/WithTag_shaItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Tags/Item/WithTag_shaItemRequestBuilder.cs
index 3da2c745..c802cbbf 100644
--- a/src/GitHub/Repos/Item/Item/Git/Tags/Item/WithTag_shaItemRequestBuilder.cs
+++ b/src/GitHub/Repos/Item/Item/Git/Tags/Item/WithTag_shaItemRequestBuilder.cs
@@ -35,6 +35,7 @@ public class WithTag_shaItemRequestBuilder : BaseRequestBuilder {
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
/// When receiving a 404 status code
+ /// When receiving a 409 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) {
@@ -45,6 +46,7 @@ public class WithTag_shaItemRequestBuilder : BaseRequestBuilder {
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary> {
{"404", BasicError.CreateFromDiscriminatorValue},
+ {"409", BasicError.CreateFromDiscriminatorValue},
};
return await RequestAdapter.SendAsync(requestInfo, GitTag.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
diff --git a/src/GitHub/Repos/Item/Item/Git/Tags/TagsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Tags/TagsRequestBuilder.cs
index 4c2992f3..c4331d11 100644
--- a/src/GitHub/Repos/Item/Item/Git/Tags/TagsRequestBuilder.cs
+++ b/src/GitHub/Repos/Item/Item/Git/Tags/TagsRequestBuilder.cs
@@ -44,6 +44,7 @@ public class TagsRequestBuilder : BaseRequestBuilder {
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 409 status code
/// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -55,6 +56,7 @@ public class TagsRequestBuilder : BaseRequestBuilder {
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToPostRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary> {
+ {"409", BasicError.CreateFromDiscriminatorValue},
{"422", ValidationError.CreateFromDiscriminatorValue},
};
return await RequestAdapter.SendAsync(requestInfo, GitTag.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
diff --git a/src/GitHub/Repos/Item/Item/Git/Trees/Item/WithTree_shaItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Trees/Item/WithTree_shaItemRequestBuilder.cs
index 0da03163..83ff5da6 100644
--- a/src/GitHub/Repos/Item/Item/Git/Trees/Item/WithTree_shaItemRequestBuilder.cs
+++ b/src/GitHub/Repos/Item/Item/Git/Trees/Item/WithTree_shaItemRequestBuilder.cs
@@ -35,6 +35,7 @@ public class WithTree_shaItemRequestBuilder : BaseRequestBuilder {
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
/// When receiving a 404 status code
+ /// When receiving a 409 status code
/// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -46,6 +47,7 @@ public class WithTree_shaItemRequestBuilder : BaseRequestBuilder {
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary> {
{"404", BasicError.CreateFromDiscriminatorValue},
+ {"409", BasicError.CreateFromDiscriminatorValue},
{"422", ValidationError.CreateFromDiscriminatorValue},
};
return await RequestAdapter.SendAsync(requestInfo, GitTree.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
diff --git a/src/GitHub/Repos/Item/Item/Git/Trees/TreesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Trees/TreesRequestBuilder.cs
index fee4613b..7004279d 100644
--- a/src/GitHub/Repos/Item/Item/Git/Trees/TreesRequestBuilder.cs
+++ b/src/GitHub/Repos/Item/Item/Git/Trees/TreesRequestBuilder.cs
@@ -46,6 +46,7 @@ public class TreesRequestBuilder : BaseRequestBuilder {
/// Configuration for the request such as headers, query parameters, and middleware options.
/// When receiving a 403 status code
/// When receiving a 404 status code
+ /// When receiving a 409 status code
/// When receiving a 422 status code
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -59,6 +60,7 @@ public class TreesRequestBuilder : BaseRequestBuilder {
var errorMapping = new Dictionary> {
{"403", BasicError.CreateFromDiscriminatorValue},
{"404", BasicError.CreateFromDiscriminatorValue},
+ {"409", BasicError.CreateFromDiscriminatorValue},
{"422", ValidationError.CreateFromDiscriminatorValue},
};
return await RequestAdapter.SendAsync(requestInfo, GitTree.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
diff --git a/src/GitHub/kiota-lock.json b/src/GitHub/kiota-lock.json
index c2c9f041..10251dee 100644
--- a/src/GitHub/kiota-lock.json
+++ b/src/GitHub/kiota-lock.json
@@ -1,5 +1,5 @@
{
- "descriptionHash": "DE060A6CF9EFEE14358028B28C66A421969687F96C8EBF96933E452D3043303AB97B244EA2E3B9800382F90BBFF2A8EBB158D61A852738284C655FD2A387E3C8",
+ "descriptionHash": "58EC2F160FFD5574242F7A6CA2B7490F71BCCB733BDE83D3C4F45E78BBE173C1F5709707046D57237BB1BB5CAA0BA8DDC233C230D609A2EA76202F3D94F5F1A9",
"descriptionLocation": "../../../source-generator/schemas/downloaded.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.12.0",