Skip to content

[BUG] Deserializing issue with v1.2.X #25

Description

@sikelio

Describe the bug
When making a GET request, the deserialization don't work for the returned data.

To Reproduce
Code to reproduce the behavior:

using System.Text.Json.Serialization;

class Model
{
  [JsonPropertyName("data")]
  public string Data { get; set; }
}

Request request = new("<endpoint>", HttpMethod.Get);
request
  .AddHeader("Authorization","")
  .AcceptJson();

Result<Model> result = await request.Run<Model>();

Desktop (please complete the following information):

  • Project: Request
  • Version: 1.2.0 - 1.2.1 - 1.2.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions