Repository navigation
fix(blog): validate post fields and identity - #183
Conversation
|
fix(blog): validate post fields and identity — final committed content reviewed at Independent source/error/compatibility and chapter-parity, test/resource, and whole-change reviews are CLEAR at this exact pin. The four committed files match the validated content; the package is clean and its dependency lock is unchanged. Final native Windows full check, exact parallel package tests (68 tests / 978 steps), and complete blog tests (4 suites / 45 steps) passed. The separate owned Ubuntu checkout passed full check, the actual CI coverage task (68 / 978), and complete blog tests (4 / 45) on identical content. The actual tutorial request/private native KV regression had 10 passing controls and 32 intended failures before the fix; all 42 steps pass afterward. Every locally owned operation and process has joined. The PR merged at f7dcfc1 after its exact-head checks passed. This records final content review and local validation; the exact-main workflow and actual immutable release are separate verification steps. The public tutorial keeps its existing authentication policy and partial/empty update behavior, with no stored-data migration. |
|
🎉 This PR is included in version 0.17.10 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Why
The blog tutorial forwarded unchecked JSON to its post service. Non-string fields could be persisted, and extra caller fields could replace a record's ID while its KV key stayed unchanged. Validate object/string inputs, project title/content, and retain service-owned identity and metadata. The matching tutorial chapter now teaches the same boundary.
Verification
deno task check, exact parallel package tests (68 tests / 978 steps), and complete blog tests (4 suites / 45 steps) passed.Risk
Door: two-way. Invalid modeled fields now return 400, and unrelated keys are ignored. The tutorial remains public; existing minimum lengths, partial/empty updates and stored legacy properties are preserved. No data migration is included.
Closes
Closes #182