From 6e83fad31dbb9ad0a5ef11226af07552bc1cab5e Mon Sep 17 00:00:00 2001 From: jaakko Date: Tue, 14 Apr 2026 12:14:36 +0300 Subject: [PATCH] =?UTF-8?q?CodeBench:=203=20uutta=20promptis=C3=A4=C3=A4nt?= =?UTF-8?q?=C3=B6=C3=A4=205-kierroksen=20virheanalyysist=C3=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Aikaleimakentät: server_default=func.now(), ei pakollisia Create-schemassa 2. Ei ylimääräisiä filter/search-endpointeja 3. Ei ylimääräisiä kenttiä spekin ulkopuolelta --- kipina-codebench/prompts/code.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kipina-codebench/prompts/code.md b/kipina-codebench/prompts/code.md index b7c2753..7e8f99f 100644 --- a/kipina-codebench/prompts/code.md +++ b/kipina-codebench/prompts/code.md @@ -31,6 +31,9 @@ RULES: - Python type unions: str | None (not Optional[str]) - Tests: unique descriptive data per test, NOT generic "test_title" strings - Tests: PUT/update test data MUST include ALL required (non-nullable) fields, not just the field being updated +- Timestamp fields (created_at, updated_at): ALWAYS use server_default=func.now() so they are NOT required in Create schema +- Do NOT add filter/search endpoints — only standard CRUD (create, list, get, update, delete) +- Do NOT add fields beyond what the spec defines — no extra created_at/updated_at unless in spec - Absolute imports only (from models import ..., from schemas import ...) - NO markdown fences inside file content — just raw code - Only test endpoints that exist in main.py — no extra tests