Try parsing validator parameters using ast.literal_eval before naive splitting by commas.
# old behavior, not changed if cannot parse valid literals
validators: xxx(hello,world) # xxx("hello", "world")
# if any argument cannot be parsed, the old strategy is used
validators: xxx(hello,1) # xxx("hello", "1")
# when all arguments are valid, pass them as python objects into the validator
validators: xxx("hello",1,None) # xxx("hello", 1, None)
Try parsing validator parameters using
ast.literal_eval
before naive splitting by commas.