Граф коммитов

26 Коммитов

Автор SHA1 Сообщение Дата
Chris Pulman f7f9c00bf4
Housekeeping fix some of the code analyser warnings (#1866) 2024-10-06 21:43:07 +01:00
Hans Bakker 1c56e32a5e
Add MemberNotNullWhen annotation for Content / HasContent pair (#1779)
* Add MemberNotNullWhen annotation for Content / HasContent pair

* Add missing using statement

* Update API Tests

Bump Version due to API change

---------

Co-authored-by: Chris Pulman <chris.pulman@yahoo.com>
2024-08-17 02:31:22 +00:00
Tim M dcb9da28de
feat: run csharpier (#1715)
Co-authored-by: Chris Pulman <chris.pulman@yahoo.com>
2024-06-14 06:32:26 +00:00
Chris Pulman aa78fc08b1
Housekeeping Update tests to remove need for comments (#1697)
* Housekeeping Update tests to remove need for comments

* Reduce unnecessary warnings
2024-05-24 10:15:52 +10:00
Tim M 2dff048afa
housekeeping: run csharpier (#1617) 2023-11-27 09:50:46 +11:00
Tim M cb9a5b7f64
chore: remove unused using statements (#1618)
Co-authored-by: Chris Pulman <chris.pulman@yahoo.com>
2023-11-21 00:59:29 +00:00
Laurent Keusch 2c23aec026 -Added comments for ApiException.
-Added comments for ApiResponse.
-Added comments for most of the attributes.
-Added comments for RestService.
2021-11-10 14:57:46 +01:00
Claire Novotny 0dd5a2293c
Rename IContentSerializer to IHttpContentSerializer and related methods to better reflect what it does 2021-02-04 17:28:39 -05:00
Claire Novotny 1e62b20fe6
Wrap Deserialization exceptions as an ApiException 2020-12-09 10:19:43 -05:00
Claire Novotny fc263f9da9
First pass at NRT annotations 2020-11-25 16:52:50 -05:00
Claire Novotny 765ef2cac5
Update the default serializer to use System.Text.Json 2020-11-25 11:25:47 -05:00
Drake Lambert f758e8104c
Merge branch 'master' into keep-string-content-on-validation-exception 2020-09-18 10:15:15 -05:00
Oleksandr Liakhevych 0abca64113 Add ability to provide custom ExceptionFactory 2020-09-04 15:28:42 +03:00
Drake Lambert cb0267f4fe Support string ApiException.Content when actual
type is ValidationApiException.

fixes reactiveui/refit#636
2020-07-31 08:48:41 -05:00
Sergio Pedri b70e4918fb Removed unnecessary using directives 2020-02-10 14:21:38 +01:00
Hans De Mulder ac4188e662 check for null values in handling (exception) content 2019-04-07 19:03:04 +02:00
Oren Novotny 00b9d8185b
Code style formatting 2019-02-16 17:11:56 -05:00
Steve Ward 6d3a5f4742 Added missing ConfigureAwait(false) & fixed deadlock on ValidationApiException.Content 2018-11-26 22:01:42 +00:00
Steve Ward 7a387ed26d Changes made in response to PR feedback
IContentSeriaizer
- all methods made async
- removed 2nd deserialize method
- type safe operation

ApiException
- Added GetContentAsAsync<T>() method
- Marked GetContentAs<T>() as obsolete
2018-11-26 20:16:07 +00:00
Steve Ward 27d6fb4865 Isolated Content Serialization
- Added IContentSerializer, JsonContentSerializer, XmlContentSerializer
- RefitSettings allows the IContentSerializer to be specified
- Refit defaults to JsonContentSerializer for back-compat
- Tests modified to exercise Json and Xml Serialization
- .NET Standard 1.4 has package dep on System.Xml.XmlSerializer
2018-11-14 20:28:05 +00:00
Fanie Reynders 2b89e4f7ad Added support for handling validation-based exceptions according to the RFC 7807 specification. 2018-11-09 10:38:36 +01:00
Oren Novotny 38961a7a56
Add serializable attribute 2018-10-05 19:22:52 -04:00
Oren Novotny 0e3b7e5077
Add request to ApiException #409 2018-01-28 12:50:46 -05:00
windischb 2a048ddea7 MethodOverload (#416)
Fixes #82
2018-01-27 16:50:46 -05:00
Oren Novotny 2cc549bf06
Reformat code to be consistent 2018-01-14 14:58:24 -05:00
Oren Novotny fd381f4432 Extract types to files 2017-06-21 11:58:02 -04:00