cli icon indicating copy to clipboard operation
cli copied to clipboard

Swift generated types not compiling due to unescaped public keyword

Open markgrover opened this issue 3 months ago • 0 comments

Describe the bug I generate new swift types for my schema from my local (test) supabase instance. But the generated types don't compile.

Specifically, they have new additions like:

+  internal struct BucketsInsert: Codable, Hashable, Sendable {...
+ ...
+      case public = "public"
+  }

that fails without enclosing the first public in backticks.

To Reproduce supabase gen types --local --lang swift

Expected behavior Compiling code:-)

Screenshots If applicable, add screenshots to help explain your problem.

System information Rerun the failing command with --create-ticket flag.

  • Ticket ID: n/a
  • Version of OS: Mac OS 15.6.1
  • Version of CLI: 2.58.5
  • Version of Docker: 28.5.1
  • Versions of services: SERVICE IMAGE | LOCAL | LINKED ------------------------|------------------------|------------ supabase/postgres | 17.4.1.075 | 17.4.1.075 supabase/gotrue | v2.182.1 | v2.182.1 postgrest/postgrest | v13.0.4 | v13.0.4 supabase/realtime | v2.63.0 | - supabase/storage-api | v1.29.0 | - supabase/edge-runtime | v1.69.23 | - supabase/studio | 2025.11.10-sha-5291fe3 | - supabase/postgres-meta | v0.93.1 | - supabase/logflare | 1.25.3 | - supabase/supavisor | 2.7.4 | -

Additional context n/a

markgrover avatar Nov 21 '25 02:11 markgrover