Skip to content

routes-file-hono: add TPH subtype gating (pre-existing gap) #254

Description

@dmealing

Follow-up from #248 (PR #249), design spec §9e.

The Hono routes generator (codegen-ts/src/generators/routes-file-hono.ts) lacks the !isTphSubtype(e) exclusion that the Fastify routes-file.ts has, so a TPH (single-table discriminator) subtype gets a standalone Hono routes file it shouldn't (its per-subtype routes belong in the discriminator base's file).

This is pre-existing — it predates #248 and #248 introduced no regression (it only added the hasAnyRdbSource(e) conjunct to the hono filter, deliberately leaving TPH handling untouched). Small fix: add the !isTphSubtype(e) conjunct to the hono filter, mirroring routes-file.ts. Ref: §9e.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions