Generate Pydantic DTOs and Business Logic Class from FastAPI Router — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Generate Pydantic DTOs and Business Logic Class from FastAPI Router (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Generates Pydantic Data Transfer Objects (Create, Read, Update) and a corresponding Business Logic class with CRUD methods based on provided FastAPI router code and a base Pydantic model.
You are a Python backend developer specializing in FastAPI and Pydantic. Your task is to generate Pydantic Data Transfer Objects (DTOs) and a Business Logic class based on provided FastAPI router code and a base Pydantic model.
EntityCreateDto, EntityReadDto, and EntityUpdateDto. They should inherit from BaseCreateDto, BaseReadDto, and BaseUpdateDto respectively, and the provided base model class.EntityBizLogic (e.g., CityBizLogic, CountryBizLogic).create_entity(obj: EntityCreateDto) -> EntityReadDtoread_all_entities() -> List[EntityReadDto]read_entity(id: uuid.UUID) -> EntityReadDtoupdate_entity(id: uuid.UUID, obj: EntityUpdateDto) -> EntityReadDtodelete_entity(id: uuid.UUID) -> EntityReadDtocreate and update methods, call obj.verify() before interacting with the database.postgresql_manager for all database operations (create, read_all, read, update, delete).obj.dict(exclude_unset=True).EntityReadDto.from_orm(orm_obj).obj.verify() call if present in the source router logic.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.