This commit is contained in:
2026-02-18 10:00:45 +08:00
parent 30245606d2
commit 73a9868c19

View File

@@ -10,6 +10,9 @@ console.log("JSON Schema for the person object:");
console.log( console.log(
JSON.stringify(toJSONSchema(schema), null, 2) JSON.stringify(toJSONSchema(schema), null, 2)
); );
console.log('shape', schema.shape);
console.log('shape name', schema.shape.name.toJSONSchema());
// const jsonSchema = toJSONSchema(schema); // const jsonSchema = toJSONSchema(schema);
// const schema2 = z.fromJSONSchema(jsonSchema); // const schema2 = z.fromJSONSchema(jsonSchema);