[codegen/python] - Include single word props in casing tables.
@@ -975,11 +975,6 @@ func recordProperty(prop *schema.Property, snakeCaseToCamelCase, camelCaseToSnak
}
if mapCase {
snakeCaseName := PyNameLegacy(prop.Name)
- // If the property is a single word, don't add it to the tables.
- containsOneUnderscore := strings.Count(snakeCaseName, "_") == 1
- endsWithUnderscore := strings.HasSuffix(snakeCaseName, "_")
- singleWordProp := containsOneUnderscore && endsWithUnderscore
- if !singleWordProp {
if snakeCaseToCamelCase != nil {
if _, ok := snakeCaseToCamelCase[snakeCaseName]; !ok {
snakeCaseToCamelCase[snakeCaseName] = prop.Name
@@ -991,7 +986,6 @@ func recordProperty(prop *schema.Property, snakeCaseToCamelCase, camelCaseToSnak
}
}
}
- }
if obj, ok := prop.Type.(*schema.ObjectType); ok {
if !seenTypes.Has(prop.Type) {
