Changelog
2.3.1
Pydantic validators inheritance fix
fix schema validators passthrough #45
fix doc build
2.3.0
Current Atomic Operation context var
create context var for current atomic operation #46
create example and coverage for universal dependency both for generic views and atomic operations
tests refactoring
Authors
2.2.2
Atomic Operation dependency resolution fixes
fixed Atomic Operation dependency resolution #43
Authors
2.2.1
OpenAPI generation fixes
fixed openapi generation for custom id type #40
Authors
2.2.0
Support for pydantic validators
Pydantic validators are applied to generated schemas now
Authors
2.1.0
Atomic Operations
Atomic Operations (see example, JSON:API doc)
Create view now accepts
BaseJSONAPIItemInSchemaas update view does
Authors
2.0.0
Generic views, process relationships
Note
Backward-incompatible changes
Automatically create all CRUD views based on schemas (see example)
Allow to pass Client-Generated IDs (see example, JSON:API doc)
Process relationships on create / update (see example, JSON:API doc)
Accept pydantic model with any dependencies on it (see example)
handle exceptions (return errors, JSON:API doc)
refactor data layers
tests coverage
Authors
1.1.0
Generic views
Create generic view classes #28
1.0.0
Backward-incompatible changes, improvements, bug fixes
Includes (see example with many-to-many) - any level of includes is now supported (tested with 4);
View Classes generics (Detail View and List View);
View Classes now use instance-level methods (breaking change, previously
classmethodswere used);Pydantic schemas now have to be inherited from custom BaseModel methods (breaking change, previously all schemas were supported). It uses custom registry class, so we can collect and resolve all schemas. Maybe there’s some workaround to collect all known schemas;
Improved interactive docs, request and response examples now have more info, more schemas appear in docs;
Reworked schemas resolving and building;
Fixed filtering (schemas resolving fix);
Create custom sql filters example;
Add linters: black, ruff;
Add pre-commit;
Add autotests with pytest;
Add poetry, configure dependencies groups;
Add GitHub Action with linting and testing;
Upgrade examples;
Update docs.
0.2.1
Enhancements and bug fixes
Fix setup.py for docs in PYPI - @znbiz