Skip to content

flapii project init scaffolds a flapi.yaml with keys flAPI never reads (description, template-source) #159

Closed

Description

@jrosskopf

What

cli/src/commands/project/templates.ts:11-20 (the flapii project init scaffold) generates a main config using description: and a top-level template-source:. Neither is read: the real keys are project-description and template: { path: ... }.

Why it matters

The scaffold is the first config a new user gets. If the templates directory is never loaded, the scaffolded endpoints don't exist, and the very first thing a user tries doesn't work — with no error pointing at why.

Suggested fix

Generate the real keys, and add a CLI test that runs flapi --validate-config (and ideally starts the server and hits the sample endpoint) against a freshly scaffolded project, so the scaffold can never drift from the parser again.

Found while planning #153.

Activity

  1. added 2 commits that reference this issue on Oct 2, 2026
  2. added a commit that references this issue on Oct 2, 2026
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