From 1a8194455e949f66b6cc3bdd32c8013fc9ff2432 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Tue, 18 Oct 2022 11:38:53 +0200 Subject: [PATCH] don't sanitize enum symbols beyond trimming the namespace --- schema_salad/python_codegen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema_salad/python_codegen.py b/schema_salad/python_codegen.py index 44168a02..6fd9fd2c 100644 --- a/schema_salad/python_codegen.py +++ b/schema_salad/python_codegen.py @@ -418,7 +418,7 @@ def type_loader( self.safe_name(type_declaration["name"]) + "Loader", '_EnumLoader(("{}",), "{}")'.format( '", "'.join( - self.safe_name(sym) + schema.avro_field_name(sym) for sym in type_declaration["symbols"] ), self.safe_name(type_declaration["name"]),