Skip to content

v2.0.0

Compare
Choose a tag to compare
@jwaliszko jwaliszko released this 09 Jul 15:23
· 399 commits to master since this release
  • changed concept when compared to EA1:
    • much more complex expressions accepted (restricted to given EBNF grammar),
    • RequiredIfExpression and AssertThatExpression attributes removed - their functionality is now taken over by modified RequiredIf and AssertThat,
    • attributes API does not explicitly expose DependentProperties, TargetValues and RelationalOperators properties as before - all of this should be now provided directly to the expression (types are clearly recognized by their literal identifiers, just like in C#),
    • RequiredIf attribute does allow flase boolean values by default - stronger separation of concepts, where AssertThat should be used for the value correctness verification (is the value correct), and RequiredIf should be used for the value requirement verification (is the value provided),
    • toolchain of utility functions predefined (functions can be used inside expressions now),
    • new custom functions definition is allowed (for server, and for client side also - when ASP.NET MVC client side validation is the concern),
    • expressive.annotations.analysis.js file removed from client side component of ASP.NET MVC - only one file is required, namely expressive.annotations.validate.js.