Can I generate nested models from JSON?
Yes. The generator supports nested objects and arrays and outputs corresponding nested model definitions.
Generate TypeScript Effect Schema definitions from JSON examples for runtime decoding and validation in Effect-based apps.
{
"id": 101,
"name": "Ada Lovelace",
"active": true,
"roles": ["admin", "editor"],
"profile": {
"email": "ada@example.com",
"score": 9.8
}
}
import { Schema } from "effect";
export const UserModelSchema = Schema.Struct({
id: Schema.Number,
name: Schema.String,
active: Schema.Boolean
});
Yes. The generator supports nested objects and arrays and outputs corresponding nested model definitions.
Yes. Use the Force Optional toggle in the app toolbar when you need optional fields in the generated output.
Use Effect Schema when your app already uses Effect for decoding, validation, and typed runtime workflows rather than Zod-specific tooling.