By default, we will sanitize illegal names so the output doesn't throw. For example, a schema with the name "400" gets generated as const _400 = 400. I noticed that using "name builders" unnecessarily preserves the sanitized name. For example, the pattern z{{name}} would generate const z_400 = 400. This is no longer needed since the original name would've been legal, i.e. const z400 = 400. Need to investigate how widespread this issue is before deciding how to address it.
By default, we will sanitize illegal names so the output doesn't throw. For example, a schema with the name "400" gets generated as
const _400 = 400
. I noticed that using "name builders" unnecessarily preserves the sanitized name. For example, the patternz{{name}}
would generateconst z_400 = 400
. This is no longer needed since the original name would've been legal, i.e.const z400 = 400
. Need to investigate how widespread this issue is before deciding how to address it.