Skip to content

Commit

Permalink
New updates to generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
octokitbot committed Nov 8, 2024
1 parent 46760ff commit 7f452a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions src/GitHub/Models/EnterpriseTeam.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ public partial class EnterpriseTeam : IAdditionalDataHolder, IParsable
/// <summary>The created_at property</summary>
public DateTimeOffset? CreatedAt { get; set; }
/// <summary>The group_id property</summary>
public int? GroupId { get; set; }
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? GroupId { get; set; }
#nullable restore
#else
public string GroupId { get; set; }
#endif
/// <summary>The html_url property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
Expand Down Expand Up @@ -97,7 +103,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
return new Dictionary<string, Action<IParseNode>>
{
{ "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } },
{ "group_id", n => { GroupId = n.GetIntValue(); } },
{ "group_id", n => { GroupId = n.GetStringValue(); } },
{ "html_url", n => { HtmlUrl = n.GetStringValue(); } },
{ "id", n => { Id = n.GetLongValue(); } },
{ "members_url", n => { MembersUrl = n.GetStringValue(); } },
Expand All @@ -116,7 +122,7 @@ public virtual void Serialize(ISerializationWriter writer)
{
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteDateTimeOffsetValue("created_at", CreatedAt);
writer.WriteIntValue("group_id", GroupId);
writer.WriteStringValue("group_id", GroupId);
writer.WriteStringValue("html_url", HtmlUrl);
writer.WriteLongValue("id", Id);
writer.WriteStringValue("members_url", MembersUrl);
Expand Down
2 changes: 1 addition & 1 deletion src/GitHub/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"descriptionHash": "6EF5B0829FBA2898CFABEB2EC18D7D334A65B05ECCDA76F161E634281001836CAE4BB574D3BBBAC169572D44410B31922C594AA90BA20C9266C0F5423357CE42",
"descriptionHash": "192FF0E68BFCECD544F385CFE30A1F0C4C603CA47F8EC874C4A1DA4DA77F8C0EB599E619241DC8C87822B7BB04BB992B810942432572656BECD68CC7D6AA04B3",
"descriptionLocation": "../../../../../schemas/api.github.com.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.19.0",
Expand Down

0 comments on commit 7f452a1

Please sign in to comment.