You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Swift type generation emits invalid string literals for quoted database names #1126
PostgreSQL identifiers and enum labels can contain double quotes, backslashes, and control characters. The Swift type generator currently interpolates enum raw values and CodingKeys raw values directly into quoted Swift literals. For example, a value containing a double quote terminates the literal early, and swiftc -parse rejects the generated source.
Reproduction
Generate Swift types for an enum label or column name containing a double quote and pipe the result to swiftc -parse -. The parser reports an unterminated string literal and invalid declarations.
Expected behavior
Generated Swift string literals should escape database-provided values while preserving the original raw enum label or coding key. Ordinary values should retain their current output.
Activity
fix(postgrest-typegen): escape database values in Swift string litera…