Skip to content

Refit 2.2.0

Compare
Choose a tag to compare
@anaisbetts anaisbetts released this 03 Jan 23:41
· 1570 commits to main since this release

What's New

Refit Serializer Settings

Refit now allows you to control JSON serialization, via passing in a new RefitSettings type into RestService.For<T>:

var gitHubApi = RestService.For<IGitHubApi>("https://api.github.com",
    new RefitSettings {
        JsonSerializerSettings = new JsonSerializerSettings {
            ContractResolver = new SnakeCasePropertyNamesContractResolver()
        }
    });

Diagnostic information (#79, thanks @nekresh)

Refit now prints diagnostic information inside VS when an interface can't be generated

Bug Fixes