RFC 1 / Proposal

Allow interfaces with no fields, unions with no members

Opened on2026-05-23
Updated on2026-07-02

At a glance

Spec PR description

Follow up to:

  • #1228

This is again to help subschemas remain valid. Empty unions is fine (we already allow interfaces with no implementations, which is kind of the mirror), but empty interfaces makes it so people may want to use interfaces where unions should currently be used... Relevant:

  • #236

Incidentally I'm okay with deprecating unions... And adding @oneOf output types instead.

Timeline

July 2026
May 2026