Skip to content

Null Enums Don't Emit JSON Tag #2115

Closed
@austincollinpena

Description

@austincollinpena

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions