public function addSchemaFromString($string)
    {
        $json = json_decode($string, true);
        if (is_null($json)) {
            trigger_error('not a valid json');
        }

        return $this->createValidation($json);
    }