Skip to content

Pattern Properties

Compare
Choose a tag to compare
@wol-soft wol-soft released this 08 Jul 14:45
· 122 commits to master since this release

Backwards incompatible changes

  • The schema hook interfaces SetterBeforeValidationHookInterface and SetterAfterValidationHookInterface have been changed with an additional parameter to determine wether it's an update of a single property or a batch update (eg. via the PopulatePostProcessor). The function signature of the getCode implementation must be updated to match the interface.
  • Drop support for the setPrettyPrint option (#37)
  • If a schema defines additionalProperties the additional properties will be included in a serialized object by default without the requirement to use the AdditionalPropertiesAccessorPostProcessor (docs)

Features

  • Added support for pattern properties (docs)
  • Added a new builtin post processor (PatternPropertiesAccessorPostProcessor) to access pattern properties (docs)
  • Added new hook to hook into seerialization by adding a schema hook implementing the SerializationHookInterface (docs)
  • Added code coverage ignore annotations to generated code

Bugfixes

  • Adding AdditionalPropertiesAccessorPostProcessor to a mutable object without an additional property definition breaks the rendering
  • Invalid pattern provided for a string property now throws an exception while generating the model classes
  • Rollback of additional properties and pattern properties in populate in case a later validation fails
  • setAdditionalProperty must not check if the provided property key matches an internal property

Internal

  • Moved CI from travis.ci to GitHub Actions