Added project schema feature
This commit is contained in:
1 parent
92dfa38294
commit
970b5697bd
16 files changed
+327
-33
No files matched your search
@@ -27,10 +27,10 @@ type Validator struct {
|
||||
Schema *schema.Schema
|
||||
}
|
||||
|
||||
func NewValidator(tree *index.ProjectTree) *Validator {
|
||||
func NewValidator(tree *index.ProjectTree, projectRoot string) *Validator {
|
||||
return &Validator{
|
||||
Tree: tree,
|
||||
Schema: schema.DefaultSchema(),
|
||||
Schema: schema.LoadFullSchema(projectRoot),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user