Structural Defensive Parsing

Reading a response whose shape drifts — classify each field by the marker the payload itself declares rather than by its position, treat a filtering map as data loss and count what it drops, refuse to substitute a placeholder for a failed parse, and parse composite strings from their stable end. Use when a parser works in one locale and not another, when a list arrives shorter than the source shows, or when a made-up value turns up somewhere it was never entered.

maxrave-dev 7a78382 9.3 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/structural-defensive-parsing commit 7a78382572

Frequently asked questions

npx skillmds@latest add maxrave-dev/structural-defensive-parsing