Initial vibecoded proof of concept

This commit is contained in:
Alex Selimov 2025-10-05 20:16:33 -04:00
parent 74812459af
commit 461318a656
Signed by: aselimov
GPG key ID: 3DDB9C3E023F1F31
61 changed files with 13306 additions and 0 deletions

View file

@ -0,0 +1,23 @@
-- 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)