Validates a data schema against the Vana meta-schema
The data schema to validate
Validates data against a JSON Schema from a data schema
The data to validate
The data schema containing the schema
const validator = new SchemaValidator();
const schema = {
name: "User Profile",
version: "1.0.0",
dialect: "json",
schema: {
type: "object",
properties: {
name: { type: "string" },
age: { type: "number" }
},
required: ["name"]
}
};
const userData = { name: "Alice", age: 30 };
validator.validateDataAgainstSchema(userData, schema);
Validates a SQLite DDL string for basic syntax Note: This is a basic validation, full SQL parsing would require a proper SQL parser
The DDL string to validate
Optional
dialectVersion: stringOptional SQLite version (e.g., "3" for SQLite v3)
Fetches and validates a schema from a URL
The URL to fetch the schema from
The validated data schema
Schema validation utility class