add schema validation for strings (don't allow arrays and literal objects)