Skip to content

Commit 2c75702

Browse files
committedAug 22, 2024
New updates to generated code
1 parent 590247e commit 2c75702

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed
 

‎src/GitHub/Models/CheckRun.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public class CheckRun : IAdditionalDataHolder, IParsable
7373
public string HtmlUrl { get; set; }
7474
#endif
7575
/// <summary>The id of the check.</summary>
76-
public int? Id { get; set; }
76+
public long? Id { get; set; }
7777
/// <summary>The name of the check.</summary>
7878
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
7979
#nullable enable
@@ -152,7 +152,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
152152
{"external_id", n => { ExternalId = n.GetStringValue(); } },
153153
{"head_sha", n => { HeadSha = n.GetStringValue(); } },
154154
{"html_url", n => { HtmlUrl = n.GetStringValue(); } },
155-
{"id", n => { Id = n.GetIntValue(); } },
155+
{"id", n => { Id = n.GetLongValue(); } },
156156
{"name", n => { Name = n.GetStringValue(); } },
157157
{"node_id", n => { NodeId = n.GetStringValue(); } },
158158
{"output", n => { Output = n.GetObjectValue<CheckRun_output>(CheckRun_output.CreateFromDiscriminatorValue); } },
@@ -178,7 +178,7 @@ public virtual void Serialize(ISerializationWriter writer)
178178
writer.WriteStringValue("external_id", ExternalId);
179179
writer.WriteStringValue("head_sha", HeadSha);
180180
writer.WriteStringValue("html_url", HtmlUrl);
181-
writer.WriteIntValue("id", Id);
181+
writer.WriteLongValue("id", Id);
182182
writer.WriteStringValue("name", Name);
183183
writer.WriteStringValue("node_id", NodeId);
184184
writer.WriteObjectValue<CheckRun_output>("output", Output);

‎src/GitHub/Repos/Item/Item/Contents/Item/WithPathItemRequestBuilder.cs

-2
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ public async Task<WithPathGetResponse> GetAsync(Action<RequestConfiguration<With
9797
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
9898
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
9999
/// <exception cref="BasicError">When receiving a 404 status code</exception>
100-
/// <exception cref="BasicError">When receiving a 409 status code</exception>
101100
/// <exception cref="ValidationError">When receiving a 422 status code</exception>
102101
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
103102
#nullable enable
@@ -113,7 +112,6 @@ public async Task<FileCommit> PutAsync(WithPathPutRequestBody body, Action<Reque
113112
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
114113
{
115114
{"404", BasicError.CreateFromDiscriminatorValue},
116-
{"409", BasicError.CreateFromDiscriminatorValue},
117115
{"422", ValidationError.CreateFromDiscriminatorValue},
118116
};
119117
return await RequestAdapter.SendAsync<FileCommit>(requestInfo, FileCommit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);

‎src/GitHub/Repos/Item/Item/Git/Blobs/BlobsRequestBuilder.cs

-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public BlobsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
5454
/// <exception cref="BasicError">When receiving a 403 status code</exception>
5555
/// <exception cref="BasicError">When receiving a 404 status code</exception>
5656
/// <exception cref="BasicError">When receiving a 409 status code</exception>
57-
/// <exception cref="ValidationError">When receiving a 422 status code</exception>
5857
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
5958
#nullable enable
6059
public async Task<ShortBlob?> PostAsync(BlobsPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
@@ -71,7 +70,6 @@ public async Task<ShortBlob> PostAsync(BlobsPostRequestBody body, Action<Request
7170
{"403", BasicError.CreateFromDiscriminatorValue},
7271
{"404", BasicError.CreateFromDiscriminatorValue},
7372
{"409", BasicError.CreateFromDiscriminatorValue},
74-
{"422", ValidationError.CreateFromDiscriminatorValue},
7573
};
7674
return await RequestAdapter.SendAsync<ShortBlob>(requestInfo, ShortBlob.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
7775
}

‎src/GitHub/kiota-lock.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"descriptionHash": "2A275CA0C1BC6884322B17DC1FC9558B61329DE5207AAB92506C0235D5002569BC7341E821733BED96F5763A9D461DB59AB267A12789BFB78632EAAA6AC0F41C",
2+
"descriptionHash": "0D3690030724DAFB97ECAD0A8982B6CBBCFE42B8BF2CF9DA0449ECC00DA8023FEFDDFBB879E522524DF56BB1B0BF645EFF8DAD87CC280FE60AEFA061FC071C23",
33
"descriptionLocation": "../../../../../schemas/api.github.com.json",
44
"lockFileVersion": "1.0.0",
55
"kiotaVersion": "1.14.0",

0 commit comments

Comments
 (0)
Failed to load comments.