extensions/angoose-ui/directives/ang-field.js
function mapDirective(path, pathSchema, modelSchema, itemIndex){
    if( itemIndex !== undefined) return null; // we're in a array
    if(pathSchema && pathSchema.options && Array.isArray(pathSchema.options.type)){
        if( pathSchema.schema)
            return "deform-sublist"
        
        if(pathSchema.caster && (! pathSchema.caster.options || !pathSchema.caster.options.ref)){ // !pathSchema.options.ref filters out CustomRef, ugly!
            /** array of simple types */
           //console.log("Simple array type!!!",pathSchema, pathSchema.options.ref, pathSchema.options.type);
           return "ang-array"
        }
        
    }
    else  if(  pathSchema.schema)
        return "deform-subschema"
    return null;
}
function mapDirective(path, pathSchema, modelSchema, itemIndex){
    if( itemIndex !== undefined) return null; // we're in a array
    if(pathSchema && pathSchema.options && Array.isArray(pathSchema.options.type)){
        if( pathSchema.schema)
            return "deform-sublist"
        
        if(pathSchema.caster && (! pathSchema.caster.options || !pathSchema.caster.options.ref)){ // !pathSchema.options.ref filters out CustomRef, ugly!
            /** array of simple types */
           //console.log("Simple array type!!!",pathSchema, pathSchema.options.ref, pathSchema.options.type);
           return "ang-array"
        }
        
    }
    else  if(  pathSchema.schema)
        return "deform-subschema"
    return null;
}
- list of sub schemas: deform-sublist - single subschema object: deform-subschema