Initialize to empty lists of classes
@@ -97,10 +97,12 @@ func (l *LocalSchemaManager) load() error {
// Fill in empty ontologies if there is no schema file.
if !stateFileExists {
l.schemaState.ActionSchema = &models.SemanticSchema{
+ Classes: []*models.SemanticSchemaClass{},
Type: "action",
}
l.schemaState.ThingSchema = &models.SemanticSchema{
+ Classes: []*models.SemanticSchemaClass{},
Type: "thing",
}
