jason810496 commented on code in PR #69937:
URL: https://github.com/apache/airflow/pull/69937#discussion_r3840270959
##########
java-sdk/processor/src/main/kotlin/org/apache/airflow/sdk/BuilderProcessor.kt:
##########
@@ -194,6 +199,37 @@ private fun ProcessingEnvironment.isType(
c: ClassName,
): Boolean = typeUtils.isSameType(t,
elementUtils.getTypeElement(c.canonicalName()).asType())
+private const val MAX_ID_LENGTH = 250
+private val ID_REGEX = Regex("""^[\p{L}\p{N}_.-]+$""")
+
+private fun ProcessingEnvironment.warnOnSuspiciousId(
+ element: Element,
Review Comment:
It would be bette to move the validation into a dedicated module since we
need to validation the interface based Dag as well.
--
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]