Skip to content

Conversation

@eluce2
Copy link
Collaborator

@eluce2 eluce2 commented Dec 21, 2025

Note

Improves schema generation and API validation for the typegen web UI and docs.

  • Docs route now generates draft-7 JSON Schema from typegenConfigForValidation (no transforms) instead of runtime types
  • Introduces validation-only schemas (envNamesBase, typegenConfigSingleForValidation, typegenConfigForValidation) separate from runtime/transformed schemas
  • API (server/app.ts, server/api.ts) pre-processes requests to default missing type to fmdapi, validates with the correct schema, applies runtime transforms, and writes configs with a $schema header
  • Extends API endpoints to better handle fmodata (e.g., table-metadata, list-tables, test-connection) and ensures pretty JSON output
  • Version bumps: @proofkit/typegen@1.1.0-beta.2, @proofkit/fmodata@0.1.0-beta.21 (beta release), @proofkit/cli@2.0.0-beta.7; changesets updated and @proofkit/typegen-web ignored; Prettier configs simplified (remove import-sort plugin)

Written by Cursor Bugbot for commit c53def9. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Dec 21, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
proofkit-docs Ready Ready Preview Jan 5, 2026 5:21pm

@eluce2 eluce2 marked this pull request as ready for review December 21, 2025 15:16
@eluce2 eluce2 mentioned this pull request Dec 21, 2025
Copy link
Collaborator Author

eluce2 commented Dec 21, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 21, 2025

Open in StackBlitz

@proofkit/better-auth

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/better-auth@84

@proofkit/cli

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/cli@84

create-proofkit

pnpm add https://pkg.pr.new/proofgeist/proofkit/create-proofkit@84

@proofkit/fmdapi

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/fmdapi@84

@proofkit/fmodata

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/fmodata@84

@proofkit/typegen

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/typegen@84

@proofkit/webviewer

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/webviewer@84

commit: 2065122

@cursor
Copy link

cursor bot commented Dec 21, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Copy link
Collaborator Author

eluce2 commented Jan 5, 2026

Merge activity

  • Jan 5, 5:09 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jan 5, 5:20 PM UTC: Graphite rebased this pull request as part of a merge.
  • Jan 5, 5:20 PM UTC: @eluce2 merged this pull request with Graphite.

@eluce2 eluce2 changed the base branch from 12-20-table_ui_improvements to graphite-base/84 January 5, 2026 17:17
@eluce2 eluce2 changed the base branch from graphite-base/84 to main January 5, 2026 17:19
eluce2 and others added 3 commits January 5, 2026 17:19
…ors in app.ts

- Refactored types.ts to extract shared field definitions and use helper functions to eliminate duplicate discriminated union definitions
- Fixed TypeScript spread type errors by using Object.assign instead of spread operator
- Fixed undefined config type error by adding explicit type annotation and non-null assertion
- Removed duplicate variable declarations
Co-authored-by: eric.luce <eric.luce@proofgeist.com>
@eluce2 eluce2 force-pushed the 12-21-json_schema_fix branch from 2065122 to c53def9 Compare January 5, 2026 17:19
@eluce2 eluce2 merged commit 2c786d3 into main Jan 5, 2026
5 of 6 checks passed
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.

2 participants