Releases: mdconaway/fastapi-cruddy-framework
Releases · mdconaway/fastapi-cruddy-framework
Release 1.5.1
- Updates
ResourceRegistry
instance return types (removesNone
as a possible return type)
Release 1.5.0
- Adds config options
disable_relationship_getters
,custom_sql_identity_function
andcustom_link_identity
toResource
andRepository
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 allowcustom_link_identity
function to alter Swagger documentation.
Release 1.4.10
- Correct swagger examples for pure string IDs
- Add CruddyStringIDModel class (with good default ID validation opinion)
Release 1.4.9
- 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
- Fixes controller hook emulation bug on many-to-one relational endpoint.
Release 1.4.7
- 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
- Adds openapi.json example fallbacks for scenarios where a field defaults to
PydanticUndefined
Release 1.4.5
- Adds type squashing to openapi example generator
Release 1.4.4
- Adds additional openapi.json "meta" object examples for POST/PATCH/DELETE actions
Release 1.4.3
- 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.