-- tests/spec/schema_spec.lua local schema = require("notex.schema") describe("Schema Inference", function() it("should infer schema from a document", function() local doc = { type = "person", properties = { name = "John Doe", age = 30, is_student = false, }, } local inferred_schema = schema.infer(doc) assert.are.same({ name = "string", age = "number", is_student = "boolean", }, inferred_schema) end) end)