Skip to content

Commit

Permalink
fix webhook response serialization error
Browse files Browse the repository at this point in the history
  • Loading branch information
duygu.tekin committed Sep 20, 2022
1 parent 9436af0 commit b11c748
Show file tree
Hide file tree
Showing 4 changed files with 338 additions and 200 deletions.
6 changes: 4 additions & 2 deletions src/Crowdin.Api/Webhooks/Webhook.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

using System;
using System.Collections;
using System.Collections.Generic;
using JetBrains.Annotations;
using Newtonsoft.Json;

Expand All @@ -24,10 +26,10 @@ public class Webhook
public EventType[] Events { get; set; }

[JsonProperty("headers")]
public string[] Headers { get; set; }
public IDictionary<string, string> Headers { get; set; }

[JsonProperty("payload")]
public string[] Payload { get; set; }
public IDictionary<string, IDictionary<string, string>> Payload { get; set; }

[JsonProperty("isActive")]
public bool IsActive { get; set; }
Expand Down
317 changes: 165 additions & 152 deletions tests/Crowdin.Api.Tests/Core/Resources/Webhooks.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b11c748

Please sign in to comment.