protected function getRequiredFields()
    {
        $required = [];
        foreach($this->schema as $field => $fieldSchema) {
            if(isset($fieldSchema['options']['required']) && $fieldSchema['options']['required']) {
                $required[] = $field;
            }
        }
        return $required;
    }