Skip to content

Schema Hooks

Compare
Choose a tag to compare
@wol-soft wol-soft released this 25 Jul 16:46
· 196 commits to master since this release
ac2ae33

Backward incompatible changes

  • Sensitive data (file and line) is stripped from serialized exceptions by default. Set the added parameter $stripSensitiveData to false to include sensitive data
  • The exception structure for models with nested objects has changed (see #20 for more details regarding the change)
  • When instantiating a nested object manually with invalid data an exception will be thrown

Features

  • Added a new builtin post processor: AdditionalPropertyAccessorPostProcessor, adds methods to handle the additional properties of a model (#17) (docs)
  • Optimized exception structure and messages for nested objects to avoid ambiguous error messages (#20)
  • Added schema hooks to the generator which allows post processors to inject code snippets into specified places inside the model by implementing defined interfaces (docs)

Bugfixes

  • Nested objects instantiated manually don't throw exceptions
  • Fix rollback in PopulatePostProcessor with error collection disabled if a validation error is thrown
  • Fix setters don't update the values returned by getRawModelDataInput (docs)