JSON Schema Multi-Generator - Generate one JSON Schema from multiple samples

by•
Hey hunters šŸ‘‹ I'm Pasindu, the maker. Most JSON Schema generators use one sample and assume every field is required and every type fixed — almost never true for real APIs. Paste 2–5 real samples and this merges them: missing fields become optional, mixed types become nullable unions. A schema that matches reality, not one lucky response. 100% client-side, no signup, free. Part of jsondevtools.org. Feedback on the merge logic welcome — what JSON pain should I solve next?

Add a comment

Replies

Best
Maker
šŸ“Œ
Hey hunters šŸ‘‹ I'm Pasindu, the maker. Most JSON Schema generators take one sample and assume every field is required and every type is fixed. That's almost never true for real APIs — phone is missing on half your records, deletedAt is null most of the time, and your schema breaks the moment real data shows up. This tool fixes that. Paste 2–5 real samples and it merges them: • a field missing from any sample → becomes optional • a field with mixed types → becomes a nullable union (e.g. ["string","null"]) • nested objects merge recursively, same rules at every depth So instead of writing a schema off one lucky response, you get one that reflects how your API actually behaves across real traffic. A few things I cared about building it: • 100% client-side — your JSON never leaves your browser, nothing uploaded • no signup, no paywall, no limits • draft-07 output you can drop straight into validation It's part of a larger set of JSON tools I've been building at jsondevtools.org (validator, diff, schema validator, converters). I'd love feedback on two things: does the merge logic match how you'd expect optional/nullable to be inferred, and what other JSON pain points would you want solved next? Happy to answer anything in the comments šŸ™