N8: openApiTools(document, options): an OpenAPI document becomes tools - #283
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This was referenced Oct 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
N8:
openApiTools(document, options)An OpenAPI 3.0 / 3.1 document (object, JSON or YAML string, https URL) becomes one typed tool per operation. GET, HEAD and OPTIONS run; other methods ask for approval by default. See the new page
docs/openapi-tools.md.src/tools/openapi/(openApiTools.ts,operations.ts), exported fromsrc/tools/index.ts(root and./tools); no new subpath, no new dependency.jsonSchemaToZod(schema, root?)takes an optional root for$refresolution; existing call sites unchanged../..refused, because URL parsing resolves even%2E%2E).origin/mainhas no such helper), so requests use plainfetchagainst the developer-configured base URL, as the ticket says. The docs say so under "Security rules". A follow-up can route requests through the helper once it exists.For the docs site (G9): new page
openapi-tools; edited pagestools(one table row, no heading change); README docs table has one new row.Verification (on the branch after merging latest origin/main)
npx tsc --noEmit,npm run lint(zero warnings),npm run build,npm run build --workspace=packages/create-lousho-agent,npm run test:types: passnpm run docs:verify-snippets -- --skip-build: 203 snippets type-check, 8 runnpm run docs:llms:check: pass (regenerated)npm run test:coverage: 216 files, 3020 passed, 2 skipped. (Earlier runs had the known flakes: cloudflare / guardrails timeouts, a Docker-daemon sandbox test,http.test.tsself-signed TLS; they passed on re-run,src/deploypasses alone.)npm run fallow: exit 0 (0 above threshold). My first version exceeded complexity limits and was split.npm run pack-smoke: all checks passedLive test spend: none (no model calls).
Closes #220
🤖 Generated with Claude Code