Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix webhook response serialization error #77

Merged
merged 2 commits into from
Sep 22, 2022
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
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