Skip to content

Validator

Validator is a write pipeline component that contains code and logic for validating entity values when the entity is created or updated. The validation rules are generated based on the entity type information and constraints defined in the configuration files, but can be easily extended and customised using a fluent interface.

Configuration

solutionName: "Axellon.Entity.Demo"
dataApi:
    entityGroups:
      - group: default

        readComponents:
          - type: MongoDbComponent

        writeComponents:
          - type: ValidationComponent

          - type: MongoDbComponent
        endpoints:
          - type: WebApiEndpoint
Back to top