Skip to content

v7.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 27 Oct 18:34

New features:

  • Ability to explicitly setup validation at the argument level when needed (as opposed to implicit validation)
    • [Validate(typeof(FooValidator)], [DontValidate], DontImplicitlyValidate]
    • argDef.ValidateWith<FooValidator>() / argDef.DontValidate(), argDef.DontImplicitlyValidate()

Breaking changes:
(sorry, I know this is a minor version, but v8 was already taken for a HCv12 compat release)

  • IValidationErrorsHandler / ArgumentValidationResult
  • IValidatorRegistry

Notable changes:

  • Error output now includes argumentName (as in your GQL schema) and validatorName (for finding where that rule came from).