Build schema based on properties

Attempt to fix #19 : all definitions from the schema shall not be made accessible (?), only those referenced from the schema's properties