knotenpunkt commented on PR #2053:
URL: https://github.com/apache/avro/pull/2053#issuecomment-1446543289
Actually we used that library by patching that avro-schema-java-file with
some maven magic:
```java
private static String validateName(String name) {
// if (!validateNames.get())
// return name; // not validating names
// if (name == null)
// throw new SchemaParseException("Null name");
// int length = name.length();
// if (length == 0)
// throw new SchemaParseException("Empty name");
// char first = name.charAt(0);
// if (!(Character.isLetter(first) || first == '_'))
// throw new SchemaParseException("Illegal initial character: " + name);
// for (int i = 1; i < length; i++) {
// char c = name.charAt(i);
// if (!(Character.isLetterOrDigit(c) || c == '_'))
// throw new SchemaParseException("Illegal character in: " + name);
// }
return name;
}
```
This pull-request can solve that, so we don't have to trick like that any
more?!
--
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]