All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- The OpenAPI operation id will now be generated from the function name instead of the operation verb
openapi_type
has been updated to 0.5jsonwebtoken
has been updated to 9.3
base64
has been updated to 0.22
- Some dependency versions were increased to ensure compatibility with
-Z minimal-versions
syn
has been updated to 2.0- The requirement on
quote
has been relaxed afterdiesel
got updated.
- Updated
base64
to 0.21
quote
decided to integrate breaking changes into a patch release, which breaks compilingdiesel
. We now require a non-broken version of quote.
- Fixed proc macro UI that regressed between Rust 1.64 and 1.66: The compiler produced unhelpful and misleading suggestions
- Updated
diesel
to 2.0
- Fixed a compile error when using the
openapi
feature without theauth
feature
- small documentation improvements
This version introduced a compiler error in #259 when using the openapi
feature without the auth
feature enabled.
- The
gotham_restful_redoc
crate was updated to version 0.2
- The linked redoc version has been updated to 2.0.0-rc.74
- From now on, the redoc handler sits in the
gotham_restful_redoc
crate. The version ofgotham_restful
will not be bumped for every new release of redoc.
- The linked redoc version has been updated to 2.0.0-rc.71
- The linked redoc version has been updated to 2.0.0-rc.69
- The linked redoc version has been updated to 2.0.0-rc.68
- The linked redoc version has been updated to 2.0.0-rc.67
jsonwebtoken
crate to 8.0openapi_type
crate to 0.4
- When logging errors, the
Debug
implementation is now used (errorlog
feature only) AuthStatus::Invalid
now contains the jsonwebtoken error (auth
feature only)AuthStatus::Expired
has been removed (auth
feature only)AuthError
is now a struct and will include an error message in the payload
- The linked redoc version has been updated to 2.0.0-rc.66
- The linked redoc version has been updated to 2.0.0-rc.65
- The linked redoc version has been updated to 2.0.0-rc.64
- rustdoc comments from endpoints are now properly trimmed (
openapi
feature only)
parking_lot
crate to 0.12
- The linked redoc version has been updated to 2.0.0-rc.63
- The documentation now makes more clear that two types with the same name cause problems (
openapi
feature only)
- The linked redoc version has been updated to 2.0.0-rc.62
- Improved some error messages from the derive macros
- The linked redoc version has been updated to 2.0.0-rc.61
openapi_type
crate to 0.3
- The linked redoc version has been updated to 2.0.0-rc.59
- The linked redoc version has been updated to 2.0.0-rc.58
- gotham to 0.7
- Support for "dynamic" schema where the endpoint macro creates a new response type for you
- The linked redoc version has been updated to 2.0.0-rc.57
- The linked redoc version has been updated to 2.0.0-rc.55
- The
IntoResponseError
trait is now implemented for all errors that can be converted toanyhow::Error
, not juststd::error::Error
- The linked redoc version has been updated to 2.0.0-rc.54, which, among other changes, reduces the file size
- Use the
lazy-regex
crate for all regular expressions
- Improved error message when
T
does not implementClone
inAuthStatus<T>
(auth
feature only) - Set viewport in ReDoc HTML so that it can be viewed on mobile devices (
openapi
feature only)
- The readme is now extracted using cargo-doc2readme to support doc links
dbg!
call inside the auth checking code
- Rename endpoint macro
change
toupdate
andremove
todelete
- All endpoints with a known operation verb (like
read
orupdate
) now have an auto-generated operation id (openapi
feature only) - Endpoint macros now place the rustdoc into the operation's description (
openapi
feature only) - Update
openapi_type
crate to 0.2 - Replace swagger-ui with redoc and a semi-dark theme (
openapi
feature only) - Rename
get_openapi
toopenapi_spec
andswagger_ui
toopenapi_doc
(that now serves redoc)
- The
OpenapiType
trait and derive macro have been "outsourced" into theopenapi_type
crate - Updated
gotham
to version 0.6
Previous releases were hosted on GitLab. Please see https://gitlab.com/msrd0/gotham-restful/-/blob/master/CHANGELOG.md