Added initial validate script
Added expand func. for types in JSON schema