Skip to content

Commit 3d90b4b

Browse files
v1.0.1
- Fix the documentation.
1 parent f732347 commit 3d90b4b

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.github/workflows/github-actions-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
type: string
88
description: The version of the library
99
required: true
10-
default: 1.0.0
10+
default: 1.0.1
1111
VersionSuffix:
1212
type: string
1313
description: The version suffix of the library (for example rc.1)

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# PosInformatique.FluentValidation.Json
22
[PosInformatique.FluentValidation.Json](https://www.nuget.org/packages/PosInformatique.FluentValidation.Json/)
3-
is a library based on FluentValidation to validate JSON objects for the Web API.
3+
is a library based on [FluentValidation](https://docs.fluentvalidation.net/) to validate JSON objects for the Web API.
44

5-
By default, when using the [FluentValidation](https://www.nuget.org/packages/FluentValidation)
5+
[![NuGet](https://img.shields.io/nuget/v/PosInformatique.FluentValidation.Json?label=PosInformatique.FluentValidation.Json)](https://www.nuget.org/packages/PosInformatique.FluentValidation.Json/)
6+
7+
By default, when using the [FluentValidation](https://docs.fluentvalidation.net/)
68
library to validate an object, the property name (or related display name) are used in the error message.
79
This can be useful for functional validation to display to users on the views of the application.
810

@@ -41,7 +43,7 @@ public class Product
4143
```
4244

4345
If you want to validate the C# `Product` class, you have to create a validator
44-
which inherit from the `AbstractValidator<T>` class.
46+
which inherit from the `AbstractValidator<T>` class of [FluentValidation](https://docs.fluentvalidation.net/) library.
4547

4648
```csharp
4749
public class ProductValidator : AbstractValidator<Product>
@@ -159,7 +161,7 @@ Next, you use your own validation strategy depending of the context usage.
159161
For example, if you ASP .NET Core to create an Web API, you can use the following code
160162
and returns an error as JSON problem format:
161163

162-
```json
164+
```csharp
163165
[ApiController]
164166
[Route("[controller]")]
165167
public class ProductController : ControllerBase

src/FluentValidation.Json/FluentValidation.Json.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
<PackageProjectUrl>https://github.com/PosInformatique/PosInformatique.FluentValidation.Json</PackageProjectUrl>
1212
<PackageReadmeFile>README.md</PackageReadmeFile>
1313
<PackageReleaseNotes>
14+
1.0.1
15+
- Fix the documentation
16+
1417
1.0.0
1518
- Initial version
1619
</PackageReleaseNotes>

0 commit comments

Comments
 (0)