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
andwith_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
supportsurl
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 therequired
fields. - Actix plugin: Path tuples now inherit field names and descriptions from doc comments
What's Changed
- Preserve newlines in docstring description by @sfisol in #271
- Fix optional type aliases by @omid in #272
- Some code styling, thanks to nightly fmt and clippy by @omid in #273
- Fix clippy::field_reassign_with_default in macros by @sfisol in #275
- Support actix-files by @amarjanica in #277
- Define list items on query parameters by @platy in #278
- Provide the --no-root flag to the CLI which allows the crate to be embedded by @erikh in #281
- Update itertools requirement from 0.9 to 0.10 by @dependabot-preview in #283
- fix(tuples): make doc work in tuple struct path by @tiagolobocastro in #287
- fix(doc): missing documentation on types by @tiagolobocastro in #297
- feat(macro): add macro helpers for method routing by @tiagolobocastro in #289
- fix(tests): PR#289 needs an update after PR#297 by @tiagolobocastro in #302
- Adding impl for actix_web::Scope::app_data by @Jake-S6 in #303
- Actix plugin: add an empty impl for actix-web ReqData by @dsferruzza in #315
- chore: remove travis in preparation for GHA by @tiagolobocastro in #338
- ci: added github-actions by @ansrivas in #339
- ci: added linters by @ansrivas in #340
- feat(skip): add support for serde skip by @tiagolobocastro in #309
- Update paperclip version by @JackBocresion in #326
- properties with a leading '@' should be renamed to 'at_' to allow both variants (e.g. @type and type) at the same time by @jens1205 in #344
- feat: expose openapi v3 spec by @tiagolobocastro in #311
- feat(error responses): error responses definitions by @tiagolobocastro in #307
- chore: update cicd to include v3 feature test by @tiagolobocastro in #345
- fix: add missing Configure app_data and trim paths by @tiagolobocastro in #312
- Upgrade to GitHub-native Dependabot by @dependabot-preview in #319
- Update strum_macros requirement from 0.19 to 0.22 by @dependabot in #348
- Update strum requirement from 0.19 to 0.22 by @dependabot in #347
- Add Url feature by @patrickelectric in #334
- swagger-ui: Add feature by @patrickelectric in #331
- chore: prepare release of version 0.6 by @tiagolobocastro in #349
New Contributors
- @amarjanica made their first contribution in #277
- @erikh made their first contribution in #281
- @tiagolobocastro made their first contribution in #287
- @Jake-S6 made their first contribution in #303
- @dsferruzza made their first contribution in #315
- @JackBocresion made their first contribution in #326
- @jens1205 made their first contribution in #344
- @dependabot made their first contribution in #348
- @patrickelectric made their first contribution in #334
Full Changelog: v0.5.0...v0.6.0