Skip to content

Latest commit

 

History

History
533 lines (370 loc) · 21.7 KB

CHANGELOG.md

File metadata and controls

533 lines (370 loc) · 21.7 KB

Changelog - utoipa-gen

5.3.1 - Jan 6 2025

Fixed

  • Fix bug in generic schemas on OpenApi derive macro (#1277)

Changed

  • Update axum to v0.8 (#1269)
  • Replace assert-json-diff with snapshot testing via insta (#1253)
  • scripts/test.sh: Fix auto_into_responses feature declaration (#1252)

5.3.0 - Dec 19 2024

Fixed

  • Fix tagged enum with flatten fields (#1208)

Added

  • Add encoding support for request_body (#1237)
  • Add support for #[schema(pattern = "...")] on new type structs (#1241)

Changed

  • Adjust params code to not set nullable on Option for Query params (#1248)
  • Use insta for snapshot testing (#1247)
  • Make parse_named_attributes a method of MediaTypeAttr (#1236)
  • Use a re-exported serde_json dependency in macros instead of implicitly requiring it as dependency in end projects (#1243)
  • Simplified ToTokensDiagnostics for request_body (#1235)
  • Info::from_env() sets License::identifier (#1233)

5.2.0 - Nov 2 2024

Fixed

  • Fix alias support for IntoParams (#1179)

Changed

  • Added missing formats for KnownFormat parsing (#1178)
  • The #[schema(ignore)] attribute now accepts an optional bool value/function path (#1177)

5.1.3 - Oct 27 2024

Fixed

  • Fix no_recursion support on maps (#1167)

5.1.2 - Oct 16 2024

Added

  • Add implementation for utoipa-actix-web bindings (#1158)

Changed

  • Finalize actix-web utoipa bindings (#1160)

5.1.1 - Oct 16 2024

Changed

  • Enhance no_recursion rule to apply also containers (#1144)

5.1.0 - Oct 16 2024

Added

  • Add identifier for Info (#1140)
  • Add no_recursion feature for ToSchema (#1137)

Fixed

  • Chore explicit FromIterator for edition 2018 (#1131)

Changed

  • Switch to oneOf instead allOf to handle nullable values (#1135)

5.0.0 - Oct 14 2024

Added

  • Add support for title and description for unit struct schema (#1122)
  • Add support for schema(ignore) and param(ignore) (#1090)
  • Add support for property_names for object (#1084)
  • Add bound attribute for customizing generic impl bounds. (#1079)
  • Add auto collect schemas for utoipa-axum (#1072)
  • Add global config for utiopa (#1048)
  • Add support for links in #[utoipa::path] (#1047)
  • Add support for termsOfService to OpenApi derive (#1046)
  • Add typos to CI (#1036)
  • Add test for logical or security requirement
  • Add macros feature flag (#1015)
  • Add parsing support for non strict integers (#1012)
  • Add utoipa-axum binding example and update docs (#1007)
  • Add utoipa axum bindings (#1004)
  • Add some deprecated attributes for example method
  • Add support for inlined enum variants (#963)
  • Add description attribute on ToSchema (#949)
  • Add support for description and summary overriding (#948)
  • Add nest OpenApi support (#930)
  • Add support for additional tags via tags (#916)

Fixed

  • Fix path rewrite (#1120)
  • Chore filter const generics (#1118)
  • Fix impl ToSchema for container types (#1107)
  • Fix description on inline field (#1102)
  • Fix title on unnamed struct and references (#1101)
  • Fix generic references (#1097)
  • Fix non generic root generic references (#1095)
  • Fix option wrapped tailing query parameters (#1089)
  • Fix doc comment trimming to keep relative indentation. (#1082)
  • Fix generic aliases (#1083)
  • Fix nest path config struct name (#1081)
  • Fix as attribute path format (#1080)
  • Fix allow response content_type without schema (#1073)
  • Fix negative value parsing on schema attributes (#1031)
  • Fix parameter inline for tuple path params (#1014)
  • Fix some typos
  • Fix default tag logic for paths (#1002)
  • Fix respect required attribute (#990)
  • Fix find actual request body TypeTree (#977)
  • Fix summary / description split on empty lines (#947)
  • Fix compile error propagation (#929)
  • Fix tuple params missing features (#928)
  • fix(utoipa-gen): remove unnecessary allocation with to_string in expanded code (#982)

Changed

  • Chore enhance generic schema collection (#1116)
  • Enhance file uploads (#1113)
  • Move schemas into ToSchema for schemas (#1112)
  • Refactor KnownFormat
  • Add path rewrite support (#1110)
  • Fix broken tests
  • Fix typos
  • Update utoipa-config version
  • Remove commit commit id from changelogs (#1077)
  • Update to rc version
  • Chore unify request body and ext request body (#1067)
  • Refactor structs processing (#1060)
  • Disable unused default features of rust_decimal (#1029)
  • Make referenced schemas required (#1018)
  • Update next beta versions
  • Chore refactor OpenApi derive macro (#1011)
  • Chore refactor Name trait usage in features (#1009)
  • Chore refactor features (#1008)
  • Chore update docs and relax url version (#1001)
  • Bump up versions (#998)
  • Clean up some unused fields
  • Bump up to next alplha
  • Update versions
  • Address clippy lints and refactor serde parsing (#931)
  • Clean up imports for utoipa-gen
  • change pub(super) enum to pub enum (#926)
  • Migrate out from proc macro error (#920)

Breaking

  • Adds support for prefixItems on Array (#1103)
  • Auto collect tuple responses schema references (#1071)
  • Implement automatic schema collection for requests (#1066)
  • Refactor enums processing (#1059)
  • Add support for real generics (#1034)
  • Add support to define multiple operation methods (#1006)
  • Feature openapi 31 (#981)
  • Enhance OpenApi nesting with tags support (#932)
  • allow for multiple req body content_type (#876)

4.3.1 - October 7 2024

Changes

  • Bump up utoipa-gen patch version
  • change pub(super) enum to pub enum (#926) @cuiihaoo

4.3.0 - May 5 2024

Added

  • Add additional check to ensure generic type resolution is only for generics (#904)
  • Add default-features = false to the optional axum dependency to avoid pulling in tokio in non-tokio environments (#874)

Fixed

  • Fix spelling (#846)

Changed

  • Seems like the zip_next is nowadays just zip again
  • Update docs and next versions
  • Skip 1st line in path macro description expansion (#881)
  • Implement include_str! for tags (#893)

4.2.0 - Jan 9 2024

Added

  • Add support for specifying multiple security requirement keys (#813)

Changed

  • Update next versions
  • Allowing utoipa/utoipa-swagger-ui successfully build on Windows and made path proc macro attribute more permissive (#830)
  • Update Rocket v0.5 (#825)
  • Update docs
  • Path impl_for override. PathBuilder::path_from (#759)
  • Support serde deny_unknown_fields (#816)
  • Misc document improvements (#814)
  • Hide Debug behind debug feature (#815)
  • Axum 0.7 bindings (#807)

4.1.0 - Nov 13 2023

Added

  • feat: add HashSet and BTreeSet (#791)

Changed

  • Update next versions
  • Support #[serde(flatten)] for maps. (#799)

4.0.0 - Oct 7 2023

Added

  • Add test for date types in actix params (#758)
  • Add decimal_float feature. (#750)

Changed

  • Update next versions and dependencies
  • Allow expression as macro arg (#762)
  • enable required usage with schema_with attribute (#764)
  • Feat std::collections::LinkedList as a known field type for schema (#748)
  • Feat url type (#747)

3.5.0 - Aug 20 2023

Added

  • Add support for serde skip in IntoParams derive (#743)

Changed

  • Update next versions
  • Support ULID (#733)

3.4.5 - Aug 3 2023

Added

  • Add more axum path parameter tests
  • Add descriptions to 2 variants of complex enums (#714)
  • Add support for #[schema(default = )] on user-defined types (#712) (#713)

Fixed

  • Fix generics actix example (#716)
  • Fix typos in doc (#709)

Changed

  • Update next versions
  • allow and ignore #[doc(...)] tags in ToSchema derive (#708)
  • Allow setting titles on all OpenApi Schema types and allow descriptions to propagate for UnnamedStructSchema (#694)

3.4.4 - Jul 23 2023

Fixed

  • Fix automatic request body (#701)

Changed

  • Update next versions

3.4.3 - Jul 23 2023

Fixed

  • Fix Arc<T> and Rc<T> and SmallVec<[T]> (#699)
  • Fix broken link and enforce workspace resolver

3.4.2 - Jul 22 2023

Added

  • Added support for Arc fields to be treated like Box or RefCell (#690)
  • Add support for deprecation using schema attribute (#688)
  • Add enum path param test (#680)
  • Add tests for uuid path params (#676)

Fixed

  • Fix Option<Query<T>> type support (#678)

Changed

  • Update next versions
  • Disable automatic parameter recognition (#696)

3.4.1 - Jul 13 2023

Fixed

  • Fix utoipa-gen feature and update versions

3.4.0 Jul 13 2023

Added

  • Add automatic body recognition for rocket (#670)
  • Add automatic type recognition for axum (#668)
  • Add automatic query parameter recognition (#666)
  • Add support for chrono::NaiveTime (#641)
  • Add automatic request body recognition (#589)
  • Add docs and tests for aliases (#587)
  • Add basic auto response type support (#582)

Fixed

  • Fix broken links (#669)
  • Fix tests for feature non_strict_integers (#619)

Changed

  • Update next versions
  • Rename auto_types feature flag (#665)
  • Chore add more feature flag checks for auto types
  • Remove type: object restriction in empty() (#648)
  • exclude const generic arguments from generic_types (#627)
  • Make sure to parse a comma token after the status in IntoResponses (#630)
  • Omit decimal zeros when serializing minimum/maximum/multiple (#618)
  • Correct with_schema to schema_with in docs (#586)

3.3.0 - Apr 16 2023

Added

  • Add indexmap feature support for TypeTree

Fixed

  • Fix Schema as additional properties (#580)

Changed

  • Update next release versions
  • Allow additional integer types (#575)
  • Bump rocket to v0.5.0-rc.3 (#577)
  • Allow value_type serde_json::Value (#568)
  • Rename AdditionalProperties (#564)

3.2.1 - May 31 2023

Changed

  • Update next release versions (#555)
  • Dont rely on listed serde_json crate

3.2.0 - May 28 2023

Added

  • Add support for partial schema (#544)
  • Add tuple support for component schema (#541)
  • Add missing enum variant examples (#538)
  • Add support for auto-populating field default values (#533)

Fixed

  • Fix untagged enum unit variant support (#545)
  • bugfix: use map() instead of unwrap() (#536)

Changed

  • Update next release versions
  • Refactor aliases support on ToSchema derive (#546)
  • Upgrade to syn2 (#542)

3.1.2 - May 20 2023

Added

  • Add support for double number format (#526)

Changed

  • Update next versions
  • Make Option non-required & add required attr (#530)
  • Remove needles ToTokens import
  • Clean up & clippy lint
  • Unify component schema tokenization (#525)

3.1.1 - May 16 2023

Added

  • Add missing As attribute to complex enum (#516)
  • Add support for chrono NaiveDateTime (#514)

Fixed

  • Fix empty contact creation (#517)

Changed

  • Update next versions
  • Remove superfluous deprecated path attribute (#520)
  • Cargo format
  • Make unsigned integers implicityly minimum zero (#515)

3.1.0 - Mar 10 2023

Added

  • Add full support for nullable field detection (#498)
  • Add support for free form additional properties (#495)

Fixed

  • Fix nullable ref schema inline (#510)
  • Fix nullable ref schema (#509)

Changed

  • Update next versions

3.0.3 - Feb 19 2023

Added

  • Add description support for object field. (#492)

Fixed

  • Fix clippy lint
  • Fix function argument support for #[utoipa::path] (#489)
  • Fix parsed version in info being ignored (#485)

Changed

  • Update next versions
  • Improve description support on ToSchema fields (#490)
  • Update OpenApi derive docs and tests

3.0.2 - Feb 10 2023

Added

  • Add support for unit type () (#464)

Changed

  • Update next versions
  • Enhance unit type support (#476)
  • Support arbitrary exprs in operation_id (#472)

3.0.1 - Jan 29 2023

Fixed

  • Fix explicit lifetimes for consts (#467)

Changed

  • Update next versions

3.0.0 - Jan 26 2023

Added

  • Add support for serde skip_serializing (#438)
  • Add derive IntoResponses support (#433)
  • Add ToResponse derive implementation (#416)
  • Add support for repeated schema(...) definition (#410)
  • Add external ref(...) attribute (#409)
  • Add example attributes for request body (#406)
  • Add auto detect application/octet-stream type (#405)
  • Add support for chrono NaiveDate (#404)
  • Add support for multiple examples in response (#403)
  • Add Example type to OpenApi types (#402)
  • Add derive info support for derive OpenApi (#400)
  • Add merge functionality for OpenApi (#397)
  • Add derive servers attribute for OpenApi (#395)
  • Add support for unit sructs (#392)
  • Add support for schema_with custom fn reference (#390)
  • Add support for multiple serde definitions (#389)
  • Add support for tuple Path parameters for axum (#388)
  • Add derive validation attributes to IntoParams (#386)
  • Add support for derive validation attributes (#385)
  • Add support for multiple return types (#377)
  • Add support for self referencing schema (#375)
  • Add missing features to IntoParams (#374)

Fixed

  • Fix spelling (#450)
  • Fix empty string path parameter name for Axum (#424)
  • Fix typo in doc
  • Fix make untagged enum object variants required (#407)
  • Fix time-crate typo in schema format tokens (#401)
  • Fix primitive type generic aliases (#393)
  • Fix TypeTree for slice and array types (#387)

Changed

  • Refactor ToResponse trait (#460)
  • Refactor to schema casting as (#459)
  • Enhance generic aliases with lifetimes support (#458)
  • Enhance path tuple argument support (#455)
  • Update versions
  • Improve docs (#444)
  • Enhance responses derive support (#443)
  • Feat/serde enum representation (#414)
  • Enhance ToResponse implementation (#419)
  • Address clippy lint
  • Improve documentation
  • Enhance repeated attributes support (#411)
  • Make derive OpenApi server variable names LitStr
  • Refactor Type to TypeTree (#408)
  • Update ToSchema documentation
  • Chore make serde_json mandatory dependency (#378)
  • Feature http status codes (#376)
  • Refactor some path derive with IntoParmas tests
  • Chore refine description attribute (#373)
  • cargo format
  • Update to axum 0.6.0 (#369)