Added support for 'requred' in the schema