Skip to content

feat: add toJsonSchema export for OpenAPI generation - #18

Merged
mhweiner merged 2 commits into
mainfrom
feat/to-json-schema
Jul 28, 2026
Merged

feat: add toJsonSchema export for OpenAPI generation#18
mhweiner merged 2 commits into
mainfrom
feat/to-json-schema

Conversation

@logfox-agent

Copy link
Copy Markdown
Contributor

Summary

  • Add toJsonSchema() and predicate metadata (predMeta) so runtyp validators can be converted to JSON Schema
  • Wire metadata across built-in predicates including uuid, url, password, regex, and chain
  • Required dependency for publishing callspec on npm

Test plan

  • npm run validate locally
  • CI green on Node 18–24

Attach predicate metadata across built-in validators so callspec can
derive JSON Schema for docs, MCP tools, and OpenAPI specs.
mhweiner added a commit to logfoxai/callspec that referenced this pull request Jul 28, 2026
Registry-first HTTP RPC with OpenAPI generation, callsheet docs UI,
MCP tools, and a fetch-only typed client. Depends on runtyp@2.5.0
(toJsonSchema — see logfoxai/runtyp#18).
mhweiner added a commit to logfoxai/callspec that referenced this pull request Jul 28, 2026
* feat: initial callspec release — registry RPC, docs UI, MCP, client

Registry-first HTTP RPC with OpenAPI generation, callsheet docs UI,
MCP tools, and a fetch-only typed client. Depends on runtyp@2.5.0
(toJsonSchema — see logfoxai/runtyp#18).

* ci: install runtyp@2.5.0 from source until published on npm

* ci: drop Node 18 (vite 8 requires Node 20+)

* fix: polish callsheet home, MCP connect, and sidebar branding

Add Chirp demo branding assets, MCP client connect panel with copy configs,
sidebar logo mark, and link to MCP-filtered routes instead of an inline tool list.
Fix home-page logo sizing with inline-block brand marks.

* chore: reject file: deps in package.json

* test: cover Chirp demo OpenAPI generation in CI

Assert emitOpenApi converts the chirp-demo registry runtyp preds to JSON
Schema (route count, searchRecent range, nested createTweet poll fields).

* fix: flatten MCP panel and improve theme toggle icon

Full-bleed client tabs in one card (no nested boxes). Replace Unicode
sun/moon with thin-stroke inline SVGs sized and centered in the toggle.

---------

Co-authored-by: Marc Weiner <mhweiner234@gmail.com>
@mhweiner
mhweiner merged commit 6bc66fa into main Jul 28, 2026
5 checks passed
@mhweiner
mhweiner deleted the feat/to-json-schema branch July 28, 2026 23:34
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