refactor(config): migrate Server + Layout to Effect Schema (#23216)

This commit is contained in:
Kit Langton
2026-04-17 21:20:06 -04:00
committed by GitHub
parent 23a2d01282
commit 826fd3350c
4 changed files with 43 additions and 27 deletions

View File

@@ -2,8 +2,6 @@ import { Schema } from "effect"
import { zod } from "@/util/effect-zod"
import { withStatics } from "@/util/schema"
// Positive integer: emits JSON Schema `type: integer, exclusiveMinimum: 0`
// via the effect-zod walker's well-known refinement translation.
const PositiveInt = Schema.Number.check(Schema.isInt()).check(Schema.isGreaterThan(0))
export const Model = Schema.Struct({