pub fn to_regex( json: &Value, whitespace_pattern: Option<&str>, full_schema: &Value, ) -> Result<String>