Closed
Description
Version
1.16.0
What happened?
Generated structs should emit JSON tags. Nullable Enums do not emit json tags.
Relevant log output
No response
Database schema
CREATE TYPE job_post_location_type AS ENUM('remote', 'in_office', 'hybrid');
CREATE TABLE IF NOT EXISTS enum_sample (
job_location job_post_location_type
)
SQL queries
No response
Configuration
No response
Playground URL
https://play.sqlc.dev/p/758ece2eda1dd1d53a8dfa46980f5027bd7124489bb24754c7ffb24480d8bc8c
What operating system are you using?
Windows
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go