Skip to content

Releases: mdconaway/fastapi-cruddy-framework

Release 1.5.1

05 Jun 12:15
Compare
Choose a tag to compare
  • Updates ResourceRegistry instance return types (removes None as a possible return type)

Release 1.5.0

28 May 18:50
33398e4
Compare
Choose a tag to compare
  • Adds config options disable_relationship_getters, custom_sql_identity_function and custom_link_identity to Resource and Repository classes.
  • Leveraging custom_sql_identity_function, allows app builders to declare models with composite primary keys that will still work with the auto-generated CRUD routes.
  • Adds tests for new functionality.
  • Adds .enable_foreignkey_constraints() method to sqlite adapter, to allow effortless enabling of foreign key constraints for sqlite-based applications.
  • Reorganizes internal Resource class code to allow proper PK selection when building shadow models (beyond 'id'), and to allow custom_link_identity function to alter Swagger documentation.

Release 1.4.10

16 May 18:08
Compare
Choose a tag to compare
  • Correct swagger examples for pure string IDs
  • Add CruddyStringIDModel class (with good default ID validation opinion)

Release 1.4.9

15 May 17:37
Compare
Choose a tag to compare
  • Allows echo parameter to be adjusted on DB adapters
  • Always closes DB sessions, even if commit succeeds. This fixes a possible issue where very long running DB connection's sessions could become stale if the session timeout was very high.

Release 1.4.8

12 Apr 17:43
Compare
Choose a tag to compare
  • Fixes controller hook emulation bug on many-to-one relational endpoint.

Release 1.4.7

12 Apr 17:02
Compare
Choose a tag to compare
  • Adds emulated controller lifecycle hook invocations to auto-generated controller relationship functions / endpoints. This enables a controller hook defined for resource A to be actuated via a relational endpoint on resource B when that endpoint is for some resource A relationship.

Release 1.4.6

10 Apr 21:03
Compare
Choose a tag to compare
  • Adds openapi.json example fallbacks for scenarios where a field defaults to PydanticUndefined

Release 1.4.5

10 Apr 15:43
Compare
Choose a tag to compare
  • Adds type squashing to openapi example generator

Release 1.4.4

04 Apr 01:39
Compare
Choose a tag to compare
  • Adds additional openapi.json "meta" object examples for POST/PATCH/DELETE actions

Release 1.4.3

04 Apr 01:02
Compare
Choose a tag to compare
  • Adds default "simple" example generation for openapi.json to support mock servers like imposter.sh

The simple examples automatically generated only apply if a json_schema_extra example is not already set for a particular field for a model.