Skip to content

Validation: generator for attribute rules #3376

Backlog

Description

@david-driscoll

Part of #3374. Spec: docs/design/validation.md. Pull request: #3382.

  • src/Validation.Analyzers (Rocket.Surgery.LaunchPad.Validation.Analyzers), an exception to ADR-0004 as Primitives' analyzer is.
  • One validator per type from LaunchPad rule attributes and the known DataAnnotations attributes, compiled inline; other DataAnnotations constructs are diagnostics.
  • Per-member rule methods and the rule manifest.
  • [ValidateNested], [SkipValidation], collections, and the analyzer for unmarked members whose type has rules.
  • AddLaunchPadValidators() and the IValidateOptions<T> adapter.
  • Generator snapshot tests and behaviour tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions