1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-02-22 04:32:28 +00:00
deprecated-gotham-restful/CHANGELOG.md
2021-03-03 23:46:13 +01:00

2.1 KiB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

[0.2.1] - 2021-03-04

Changed

  • Pin version of openapiv3 dependency to 0.3.2

[0.2.0] - 2021-02-27

Added

  • Support custom HTTP response headers
  • New endpoint router extension with associated Endpoint trait (!18)
  • Support for custom endpoints using the #[endpoint] macro (!19)
  • Support for anyhow::Error (or any type implementing Into<HandlerError>) in most responses
  • swagger_ui method to the OpenAPI router to render the specification using Swagger UI

Changed

  • The cors handler can now copy headers from the request if desired
  • All fields of Response are now private
  • If not enabling the openapi feature, without-openapi has to be enabled
  • The endpoint macro attributes (read, create, ...) no longer take the resource ident and reject all unknown attributes (!18)
  • The ResourceResult trait has been split into IntoResponse and ResponseSchema
  • HashMap's keys are included in the generated OpenAPI spec (they defaulted to type: string previously)

Removed

  • All pre-defined methods (read, create, ...) from our router extensions (!18)
  • All pre-defined method traits (ResourceRead, ...) (!18)

[0.1.1] - 2020-12-28

Added

  • Support for &mut State parameters in method handlers
  • Support for NonZeroU types in the OpenAPI Specification

Changed

  • cookie auth does not require a middleware for parsing cookies anymore
  • the derive macro produces no more private mods which makes error message more readable
  • documentation now makes use of the [Type] syntax introduced in Rust 1.48

[0.1.0] - 2020-10-02

Previous changes are not tracked by this changelog file. Refer to the releases for the changelog.