Skip to content

fix: make the project-init scaffold a config flAPI reads (#159) - #176

Merged
jrosskopf merged 3 commits into
mainfrom
fix/gh-159-project-init-scaffold
Oct 2, 2026
Merged

jrosskopf merged 3 commits into
mainfrom
fix/gh-159-project-init-scaffold

Conversation

@jrosskopf

@jrosskopf jrosskopf commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Scaffold used description: and top-level template-source: (unread), so the sample endpoint never loaded
  • Now: project-description, template: {path: ./sqls} + environment-whitelist; sample endpoint has method; auth template uses {{env.X}}; rate-limit template uses max/interval
  • CLI's own post-init check looks for template:

Test plan

  • test_project_init_scaffold.py extracts the real scaffold and runs the real binary: failed before (3/3), passes after; asserts the sample endpoint is parsed
  • CLI vitest unit suite 46/46

Closes #159

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

- project-description and template.path instead of unread description/template-source
- sample endpoint gets method; {{env.X}} with a whitelist; real rate-limit keys
- CLI's own validate check looks for template:
- Test runs the real binary over the extracted scaffold
- Closes #159
@jrosskopf
jrosskopf merged commit 927aa88 into main Oct 2, 2026
26 checks passed
@jrosskopf
jrosskopf deleted the fix/gh-159-project-init-scaffold branch October 2, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant