generate basic schema from template string