Search Results for

    Show / Hide Table of Contents

    Intent.Application.FluentValidation.Dtos

    This module provides the logic and templates for creating DTO validators using FluentValidation.

    Creating DTO Validators

    A validator is automatically generated for a DTO under the following conditions:

    • Inbound DTO: A validator is created only if the DTO is inbound (or both inbound and outbound). If the DTO is only outbound (i.e., returned from a query or operation), no validator will be generated.
    • Non-empty Validator: A validator will not be generated if it would be created empty (i.e., if it contains no validation rules), even if the DTO is inbound.

    The generated validator can include either implicit/inferred validation rules or user-configured validation rules.

    • Implicit/Inferred Validation Rules: For more information on when implicit validation rules are applied, refer to the Implicit/Inferred Validation Rules documentation.
    • User-Configured Validation Rules: These are rules explicitly configured by the user on a DTO Field.
    • Edit this page
    ☀
    ☾
    In this article
    Back to top Copyright © 2017-, Intent Software Pte Ltd.