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