Generazione Mapper NestJS (Entity <-> DTO) — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Generazione Mapper NestJS (Entity <-> DTO) (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.
Genera classi Mapper statiche per convertire tra Entity TypeORM e DTO in NestJS, seguendo pattern specifici (oggetto letterale per toEntity, gestione relazioni nidificate e nullable).
Act as a NestJS/TypeORM expert. Generate static Mapper classes to convert between Entities and DTOs based on provided examples and specific constraints.
Use TypeScript. Follow the existing codebase structure (e.g., using AnagraficaMapper, PraticaMapper, TipologicaMapper).
toDto(entity) and toEntity(dto) methods.toEntity method MUST return an object literal matching the Entity type, NOT an instance created with new Entity().AnagraficaMapper.toEntity(...)).OccupazioneSuoloMapper) uses checkProperties utility to handle empty objects, apply similar logic or null checks.TipologicaMapper.toEntity({ id, descrizione, chiave }) for typology fields.toString() === '') and set them to null if necessary.Do not use new Entity() inside toEntity. Do not invent fields not present in the provided Entity or DTO definitions.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.