Skip to content

[Bug]: Multipart requests is not working correctly with Guid and DateOnly #2016

@arthurlomakin11

Description

@arthurlomakin11

Describe the bug 🐞

Using Refit for integration testing for our internal API. When working with it, discovered a problem with Guid processing in request. Guid is added with "..." in it that causes incorrect processing and gives BadRequest in test:

Image

Step to reproduce

  1. Go to 'Reproduction repository'
  2. Run test
  3. I've also added RequestMiddleware and LoggingHandler for easier investigation in debug mode

Reproduction repository

https://github.com/arthurlomakin11/RefitInvalidMultipartGuidTest

Expected behavior

Here's the correct request(used Swagger from 'Reproduction repository'):

Image Image

As you can see, Guid is shown in plain form, without "..."

Screenshots 🖼️

No response

IDE

Rider Windows

Operating system

No response

Version

No response

Device

No response

Refit Version

8.0.0

Additional information ℹ️

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions