How to know the named type of NavuLeaf

The typedef information is not included in the schema information. But you can use the tailf:meta-data extension to for example do something like this (using the 1-2-3-start-query-model example):

container dhcp {
    ...
  typedef loglevel {
    type enumeration {
        enum kern;
        enum mail;
        enum local7;
    }
  }
  ...
    leaf logFacility {
      tailf:meta-data "typedef loglevel" {
        tailf:meta-value "type enumeration";
      }
      type loglevel;
      default local7;
    }    
    ...

tailf:meta-data c-example: