Marco Minerva
Marco Minerva
I have a Web API that returns a `ProblemDetails` with the `application/problem+json` content type:  Then, I have the following Refit interface: ``` public interface IPeopleServiceApi { [Post("/people")] Task GetAsync(Person...
Besides the library, it is necessary to create also a sample project.
The `TinyHelpers.AspNetCore.Attributes` namespace should be renamed to `TinyHelpers.AspNetCore.DataAnnotations`, to be aligned with the standard.
The project uses **nullable reference types**. The `IsValid` method in the [FileSizeAttribute.cs](https://github.com/marcominerva/TinyHelpers/blob/develop/src/TinyHelpers.AspNetCore/Attributes/FileSizeAttribute.cs#L18): `protected override ValidationResult IsValid(object value, ValidationContext validationContext)` Does not respect the nullability of the input and output parameters.
It is necessary to add the **net70** Target Framework and then update the code accordingly (i.e., removing the JSON converters that are no more needed).
### Is there an existing issue for this? - [X] I have searched the existing issues ### Describe the bug There is a different behavior in the `swagger.json` file that...
Trimming strings in JSON document is a common requirement. It is useful to have a converter to automatically perform this task.
Methods that contain optional parameters cannot be used in lambda expressions unless you explicitly specify all parameters. So, it is necessary to define proper overload for the `StringExtensions.GetValueOrDefault()` method to...
**TinyHelpers**, **TinyHelpers.AspNetCore** and **TinyHelpers.EntityFrameworkCore** projects must support Source Link, as described here: https://devblogs.microsoft.com/dotnet/producing-packages-with-source-link. At https://github.com/ErikEJ/SqlClientExtensions/blob/main/src/SqlClientExtensions/SqlClientExtensions.csproj you can find a real example of a library with Source Link enabled.