You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# FunctionsValidationFilter
1
+
# AzureFunctionsOpenApiFluentValidationExtensions
2
2
3
3
Decorates the [OpenApi Specification](https://swagger.io/specification/) generated using [Azure Functions OpenAPI Extension](https://github.com/Azure/azure-functions-openapi-extension) with [FluentValidation](https://docs.fluentvalidation.net/en/latest/) rules loaded at runtime.
4
4
@@ -17,32 +17,32 @@ Currently, only basic rules are supported and the regex dialect is not translate
If you are not using DI in Azure Functions or using static Functions, you would need to manually register all the validators you are using.
@@ -107,10 +107,10 @@ public class OpenApiConfigurationOptions : DefaultOpenApiConfigurationOptions
107
107
108
108
### Handling new rules
109
109
110
-
1. Implement a new rule in [`FunctionsValidationFilter.Rules`](https://github.com/NewDayTechnology/NewDay.Extensions.FunctionsValidationFilter/tree/main/src/FunctionsValidationFilter/Rules) that extend [`Rule`](https://github.com/NewDayTechnology/NewDay.Extensions.FunctionsValidationFilter/blob/main/src/FunctionsValidationFilter/Rules/Rule.cs) and define the required properties. This represents an internal representation of a rule.
110
+
1. Implement a new rule in [`AzureFunctionsOpenApiFluentValidationExtensions.Rules`](https://github.com/NewDayTechnology/AzureFunctionsOpenApiFluentValidationExtensions/tree/main/src/AzureFunctionsOpenApiFluentValidationExtensions/Rules) that extend [`Rule`](https://github.com/NewDayTechnology/AzureFunctionsOpenApiFluentValidationExtensions/blob/main/src/AzureFunctionsOpenApiFluentValidationExtensions/Rules/Rule.cs) and define the required properties. This represents an internal representation of a rule.
111
111
112
-
1. Add a new case in [`FunctionsValidationFilter.ValidatorMapper`](https://github.com/NewDayTechnology/NewDay.Extensions.FunctionsValidationFilter/blob/main/src/FunctionsValidationFilter/ValidatorMapper.cs) that map from a `FluentValidation` type of a rule to the new modeled rule.
112
+
1. Add a new case in [`AzureFunctionsOpenApiFluentValidationExtensions.ValidatorMapper`](https://github.com/NewDayTechnology/AzureFunctionsOpenApiFluentValidationExtensions/blob/main/src/AzureFunctionsOpenApiFluentValidationExtensions/ValidatorMapper.cs) that map from a `FluentValidation` type of a rule to the new modeled rule.
1. Add a new case in the `ApplySchemas` method for the new rule to set the necessary properties of a field of a schema, based on the rule.
116
116
1. Add a new case in the `ApplySchemasToOperations` method for the new rule to set the necessary properties of a parameter of an operation, based on the rule.
Copy file name to clipboardExpand all lines: src/AzureFunctionsOpenApiFluentValidationExtensions.DependencyInjection/AzureFunctionsOpenApiFluentValidationExtensions.DependencyInjection.csproj
Copy file name to clipboardExpand all lines: src/AzureFunctionsOpenApiFluentValidationExtensions.DependencyInjection/OpenApiConfigurationOptionsExtensions.cs
/// <param name="configureServices">A lambda to configure the ServiceCollection with extra services required to construct the FluentValidation validators.</param>
/// <param name="configureServices">A lambda to configure the ServiceCollection with extra services required to construct the FluentValidation validators.</param>
54
-
/// <param name="configureOptions">A lambda to configure the options of FunctionsValidationFilter.</param>
0 commit comments