This is for me and also for all the other people that are searching for how to use custom defined types in Hiera
In my case i wanted to activate the HTTP endpoint of Jolokia using custom hostname and standard port. And for that it was sufficient to add in my host yaml the following lines
This contains the standard fact called networking, which is a hash, and i am using the key that is called fqdn.
And it works.