v0.6.3
Installation
This is packaged as a .NET Tool and is published to nuget.org. You can install this specific version of this tool like this:
dotnet tool install --global Refitter --version 0.6.3
Features
- Generate single file containing Refit interface and contract types from an OpenAPI spec file
- Supports OpenAPI v2 and v3
- Supports OpenAPI specifications in JSON and YAML formats
- Supports generating route, query, header, and body request parameters
--no-auto-generated-header
CLI tool argument to skip prefixing output file with header--interface-only
CLI tool argument to skip contract type generation--use-api-response
CLI Tool argument to returnIApiResponse<T>
instead ofTask<T>
--internal
CLI tool argument to generate types with theinternal
accessibility modifier--cancellation-tokens
CLI tool argument to generate the Refit interface with CancellationTokens--no-operation-headers
CLI tool argument to skip generating[Header]
parameters--no-logging
CLI tool argument to disable error logging and feature usage tracking--use-iso-date-format
CLI tool argument to explicitly format date query string parameters in ISO standard date format using delimiters (2023-06-15)
What's Changed
- check if query parameter is an array by @angelofb in #70
- make use of new language features by @angelofb in #72
- Introduce
--use-iso-date-format
CLI tool argument by @christianhelle in #73 - Enhanced HTTP status code 200 handling for API responses by @NoGRo in #74
- Fix DirectoryNotFoundException by @christianhelle in #77
- Fix support for spaces in
operationId
by @christianhelle in #79 - Additonal Namespaces for generated Types by @angelofb in #80
- General improvements on code, docs, and workflows by @christianhelle in #84
- Add .editorconfig by @angelofb in #85
New Contributors
- @angelofb made their first contribution in #70
- @NoGRo made their first contribution in #74
- @brease-colin reported the issues #66 and #68
Full Changelog: 0.5.30...0.6.3