Skip to content

v0.6.0

Compare
Choose a tag to compare
@tiagolobocastro tiagolobocastro released this 14 Oct 08:51
· 136 commits to master since this release
c411f85

Added

  • Add support for actix-web-macros methods routing PR#289
  • Actix plugin: add an empty impl for actix-web ReqData<T>
  • Add support for the #[serde(skip)] attribute in structs and enums.
  • Expose openapi v3 spec through with_json_spec_v3_at and with_raw_json_spec_v3 - this is done through a conversion from
    the v2 types to v3 and so all existing code should be valid. It also means that we're not yet exposing any specific
    v3 features.
  • Added new method trim_base_path to trim the api base path from all method paths.
  • Apiv2Schema supports url PR#334
  • Add swagger-ui for visualization/test of API via with_swagger_ui_at PR#331.

Changed

  • Actix plugin: #[api_v2_errors] macro now supports adding different error schemes per response code.
  • Actix plugin: Add new #[api_v2_errors_overlay] macro which can be used to filter out unwanted responses from an existing error type.

Fixed

  • Optional type aliases like type Email = Option<String> will not be added to the required fields.
  • Actix plugin: Path tuples now inherit field names and descriptions from doc comments

What's Changed

New Contributors

Full Changelog: v0.5.0...v0.6.0