
This section, along with the JSON validation rule on line 74, is duplicated from DEFAULT_WORKFLOW_RULES. To improve maintainability and prevent future inconsistencies, it would be beneficial to extract these common rules into a shared constant.
For example, you could create a _COMMON_WORKFLOW_RULES constant and include it in both DEFAULT_WORKFLOW_RULES and STRICT_WORKFLOW_RULES. This would make the rule sets easier to manage and update.
Originally posted by @gemini-code-assist[bot] in google/A2UI#1465 (comment)
This section, along with the JSON validation rule on line 74, is duplicated from
DEFAULT_WORKFLOW_RULES. To improve maintainability and prevent future inconsistencies, it would be beneficial to extract these common rules into a shared constant.For example, you could create a
_COMMON_WORKFLOW_RULESconstant and include it in bothDEFAULT_WORKFLOW_RULESandSTRICT_WORKFLOW_RULES. This would make the rule sets easier to manage and update.Originally posted by @gemini-code-assist[bot] in google/A2UI#1465 (comment)