extendable_fastapi
⧉ View on GitHubPurpose
This Odoo module integrates extendable classes and extendable_pydantic models into FastAPI applications within the Odoo framework.
Features
- fastapi: Enables the use of extendable classes in FastAPI endpoint handler implementations
- extendable_pydantic: Allows defining FastAPI endpoint request and response models using extendable_pydantic models
- PagedCollection: Provides a base schema for defining paged collections of extendable model resources
- FastApiDispatcher: Manages extendable registry context during FastAPI request dispatching
- validation: Supports strict validation for extendable models with configurable extra field handling
- security: Prevents leakage of private attributes from derived model types in API responses
- generics: Enables use of generic types with extendable models in FastAPI endpoints