Marco Minerva

Results 44 issues of Marco Minerva

I have a Web API that returns a `ProblemDetails` with the `application/problem+json` content type: ![image](https://user-images.githubusercontent.com/3522534/173522324-4fd28ff7-d370-436b-9aaa-8ec741d6ec7b.png) Then, I have the following Refit interface: ``` public interface IPeopleServiceApi { [Post("/people")] Task GetAsync(Person...

bug

Besides the library, it is necessary to create also a sample project.

enhancement

The `TinyHelpers.AspNetCore.Attributes` namespace should be renamed to `TinyHelpers.AspNetCore.DataAnnotations`, to be aligned with the standard.

warning

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.

warning

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).

enhancement

### 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...

feature-openapi
feature-minimal-actions
area-web-frameworks

Trimming strings in JSON document is a common requirement. It is useful to have a converter to automatically perform this task.

enhancement

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...

enhancement

**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.

documentation
enhancement