- Improvement: Updated module documentation to use centralized documentation site.
- Fixed: Removed unnecessary
MediatRusing directive for Dependency Injection.
- Improvement: Methods with no auto-implementation will now generate with an
IntentManagedBody mode of Merge and theirthrow new NotImplemented()statements have been commented with IntentInitialGen to prevent them from returning when deleted. (Note: A side effect of this improvement is that entries may appear in the Customizations tab of the Software Factory or existing entries may no longer be approved and they will need to reviewed).
- Improvement: Updated referenced packages versions
- Improvement:
CancellationTokenis now used as an argument to thenext()delegate in the MediatR behaviour template. - Improvement: Updated NuGet package versions.
⚠️ NOTEThis module update may cause a compilation breaks if you have written any custom code which uses FluentValidation features which are not supported on v12. Any generated code will be compliant. For details on what the breaking changes are check out the upgrade guide.
- Fixed: Unique constraint enabled wrongfully enhances DTO validation on DTO representing a composite Entity that doesn't even have a unique index applied.
- Improvement: Ability to set a timeout on
Regular Expressionvalidations
- Improvement: Included module help topic.
- Improvement: Ability to set a custom message on
Regular ExpressionandMustvalidations
- Improvement: Help topics added to documentation.
- Improvement: Updated module icon
- Improvement: New fluent validation setting to toggle the creation of empty
ValidatorsforCommandsandQueries.
- Improvement: Updated NuGet package versions.
- Improvement: Comment added to
Command/Queryvalidators to provide context of empty method
- Improvement: Updated
ValidationBehaviourtemplate to use the Builder pattern. Updated styling to more align with best practices - Fixed: Fixed warning around
catch (ValidationException ex)whereexis not used inUnnhandledExceptionHandler. - Fixed: Validator now generated for a base DTO, with the child DTO validator calling the base validator
- Fixed: Domain constraints are not being propagated into validators when the data graph is more than two levels deep.
- Fixed: Validations not being applied when mapping to constructor parameters.
- Fixed: Update the
UnhandledExceptionBehaviourinIntent.Application.MediatR.Behavioursto not allow logging ofValidationExceptionsas part of unhandled exceptions.
- Improvement: Updated module NuGet packages infrastructure.
- Improvement: Updated NuGet packages to latest stables.
- Improvement: Added
TODOcomments onNotImplementedException. - Fix: Unique Constraint validation ignores Included columns.
- Improvement: Added Regular Expressions for Validation.
- Improvement: Module project updated to .NET 8.
- Fix: Fixed the issue where DTO's for compositional entities does not include validation rules.
- Improvement: Ignore custom validation rules when generating service proxies.
- Improvement: Added IntentManaged Body Merge attribute to the
ConfigureValidationRulesmethod to prevent it from being updated when the Software Factory is re-executed.
- Improvement: Upgraded module to support new 4.1 SDK features.
- Improvement: Removed
// IntentMatch(...)code management instructions from templates which are no longer needed since version4.4.0of theIntent.OutputManager.RoslynWeavermodule. - Improvement: Added CascadeMode option on Fluent Validations to specify this behaviour.
- Fixed: Text constraint and Index unique constraints will work again with advanced mapping scenarios.
- Fixed: Migration improvement using Roslyn instead of Regex to avoid updating incorrect IntentManaged attributes.
- Improvement: Added support for the new Email Address option on the Validation stereotype.
- Fixed: A Software Factory crash around
DTO Unique Constraint validationfor DTO's mapping to constructors / operations.
- Improvement:
[IntentManaged(Mode.Fully)]is no longer added to theConfigureValidationRulesmethod as it's redundant. - Fixed: Nested DTO Validators introduced and will inject
IServiceProviderto resolve Validators via DI.
- Improvement: Further consolidated/generalized logic with other FluentValidation modules.
- Update : Upgraded MediatR Package v12.
- Updated: All common logic for generating validations has been centralized into the
Intent.Application.FluentValidationmodule version3.7.2to ensure consistency and parity between allFluentValidationmodules. - Updated:
Has Custom Validationstereotype property has been replaced with, and its value will be automatically migrated to, a newMustproperty named in alignment with theMustAsync()method call being created. - Updated:
Customstereotype property has been added which creates aCustomAsync()method call and corresponding method.
- Fixed spelling mistake in generated exception message.
- Updated:
FluentValidationto version11.6.0.
- Upgrade:
CommandValidatorTemplatemoved to theCSharpFileBuilderparadigm.
- Updated dependencies and supported client versions to prevent warnings when used with Intent Architect 4.x.
- Update: Refactored module based on new developments.