clesaec commented on code in PR #1787:
URL: https://github.com/apache/avro/pull/1787#discussion_r929964047


##########
lang/rust/avro/src/schema.rs:
##########
@@ -1282,6 +1280,23 @@ impl Parser {
         Ok(schema)
     }
 
+    fn validate_name(
+        &self,
+        name: &String
+    ) -> bool {
+        let i1 = name.len();
+        if i1 == 0 {
+            return false;
+        }
+        let mut result : bool = name.chars().nth(0).unwrap().is_alphabetic();
+
+        let size = name.chars().count();
+        for i in 1..size {
+            result &= name.chars().nth(i).unwrap().is_alphanumeric();
+        }
+        return result;

Review Comment:
   how to distinguish first and others ? need to have a kind of "indexedAny" ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to