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:
@@ -53,7 +53,6 @@ describe('SearchResultListItemBlueprint', () => {
|
||||
},
|
||||
},
|
||||
"parse": [Function],
|
||||
"schema": [Function],
|
||||
},
|
||||
"disabled": false,
|
||||
"factory": [Function],
|
||||
|
||||
Reference in New Issue
Block a user