Skip to content

fix: strip provider-incompatible email patterns#47

Open
fudujiji wants to merge 1 commit into
Dokploy:mainfrom
fudujiji:draft/dokploy-email-schema-lookaround
Open

fix: strip provider-incompatible email patterns#47
fudujiji wants to merge 1 commit into
Dokploy:mainfrom
fudujiji:draft/dokploy-email-schema-lookaround

Conversation

@fudujiji
Copy link
Copy Markdown

@fudujiji fudujiji commented Jun 1, 2026

Fixes #45.

Summary

  • strip the generated email lookaround regex from MCP tool schemas
  • keep z.string().email() validation for affected email fields
  • add a tools/list regression test for provider-incompatible regex lookarounds

Why

OpenAI's tool schema validator and Anthropic Sonnet strict mode reject regex lookarounds in tool input schemas. The generated Dokploy tools currently emit the same lookaround email pattern for Bitbucket, domain, user, and organization email fields, which prevents strict clients from accepting the tool list.

This keeps the server-side API validation unchanged and only removes the provider-incompatible generated schema pattern.

Verification

  • npx --yes pnpm@10.24.0 generate
  • npx --yes pnpm@10.24.0 test -- src/server.test.ts
  • npx --yes pnpm@10.24.0 type-check
  • npx --yes pnpm@10.24.0 lint
  • npx --yes pnpm@10.24.0 build
  • git diff --check

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.

fix(schema): regex lookaround in bitbucketEmail/letsEncryptEmail/email patterns breaks OpenAI / Sonnet-strict validators

1 participant