Clean up parse output and schema enumerability

Skip assigning undefined keys for absent optional fields in parse,
matching the previous zod-object behavior. Make the schema getter
non-enumerable so JSON.stringify on the portable schema only
serializes parse and _fields.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-04-10 15:09:02 +02:00
parent 27f6fb30e7
commit 461d4fc48b
9 changed files with 14 additions and 9 deletions
@@ -53,7 +53,6 @@ describe('SearchResultListItemBlueprint', () => {
},
},
"parse": [Function],
"schema": [Function],
},
"disabled": false,
"factory": [Function],