Skip to content

Conditional compositions and format validations

Compare
Choose a tag to compare
@wol-soft wol-soft released this 10 Feb 11:38
· 145 commits to master since this release
9a25740

Backwards incompatible changes

  • Custom post processors must extend the abstract class PHPModelGenerator\SchemaProcessor\PostProcessor\PostProcessor instead of implementing the PHPModelGenerator\SchemaProcessor\PostProcessor\PostProcessorInterface (docs)
  • A schema with an empty enum will throw a SchemaException during the generation process

Features

  • Post processors now support pre- and post-execution hooks to execute code before and after the processor is applied to each generated schema (docs)
  • Support for conditional compositions (docs)
  • Added an option to default arrays to an empty array (#32) (docs)
  • Added an option to restrict additional properties by default (#31) (docs)
  • If a single filter with options is applied to a property it must no longer be wrapped in a list (#27) (docs)
  • Added support for string format validators (docs)

Bugfixes