Skip to content

v0.4

Compare
Choose a tag to compare
@f3l1x f3l1x released this 26 Aug 20:16
· 180 commits to master since this release

Bump! 🎉

Diff: v0.3...v0.4

Changes:

  • Strict types and native typehints (#18)
  • phpstan 0.10
  • rewrited exceptions - more consistent and meaningful
  • normalized behavior for tags - all tags could have an optional value (#27)
  • router throws 405 instead of 404 for methods which are unsupported by endpoint (#54)
  • removed BadRequestException and RequestException (api should use ClientErrorException and ServerErrorException only) (#60)
  • fully implemented request parameters (#44, #40, #52)
    • check format of variable instead of magical typecasting
    • implemented datetime and boolean
    • removed scalar (use string instead) and object (not implemented)
    • removed support for custom types (in consistence with openapi - only object type may be returned in future)
  • validations
    • each request parameter in path must be defined in mask and each mask parameter must be defined in request parameters
    • check validity of request parameter attributes and validity of combination of these attributes
    • allow only one default suffix for response mappers and require all suffixes to be unique
    • check validity of negotiations (#28)
  • optimizations
    • check renderers, request and response entities validity in compile-time
  • fixes
    • fix case where non-last decorator returned null
    • Method::addArguments - arguments order (affects only very low-level usage)