Skip to content

openapi-gen DX: multi-spec config + shared config-core/cli-core refactor (#192 follow-up) #238

@benjamineckstein

Description

@benjamineckstein

Follow-up to #192, whose flagship items (--input/--output flags, JS config + defineConfig, --watch) shipped in #236. Remaining DX items deferred from that PR:

  • Multi-spec / monorepo: allow a projects: [...] array (or array-of-configs) so one config generates N specs, instead of N configs + N scripts (orval-style).
  • Shared config-core / cli-core: config validation + CLI parsing are copy-pasted across openapi-gen, openapi-react-query, and openapi-server. Extract a shared module. (This is the source of the cross-package duplication the fallow audit reports as inherited.)
  • .ts config: currently .js/.mjs/.cjs are supported via dynamic import; .ts would need a transpiler (jiti/tsx) - decide whether the dependency is worth it.

Demand-driven; no urgency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions