confetti / confetti/confetti-node

ticket.values description tells agents to use a 'formValues' field that does not exist

Open Beginner friendly
#35 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
0
Forks
0
Avg merge
1h 51m
Merged PRs (30d)
2

Description

What happens

src/schemas/ticket.ts documents values as:

Raw form field answers keyed by field name (e.g. {"dietary-needs": "Vegan"}). Agents using MCP should prefer passing formValues, which resolves field titles or IDs to field names automatically

There is no formValues field. It appears nowhere in the package except inside that sentence:

$ grep -rn "formValues" dist/ | wc -l
1
$ grep -rn "formValues:" dist/schemas/ | wc -l
0

Why it matters

The sentence is aimed specifically at MCP agents, and it is the kind of instruction a model follows literally. Because TicketCreateSchema is a plain z.object(), Zod strips unknown keys rather than rejecting them — so formValues is silently discarded, values is absent, and create returns success having dropped the attendee's form answers.

There is no error for a model to react to. The tool documentation actively steers callers into silent data loss, which is worse than having no description at all.

// what the description recommends
await Confetti.tickets.create(
  { eventId: 1, email: 'a@example.com', status: 'attending',
    sendEmailConfirmation: false, formValues: { 'dietary-needs': 'Vegan' } },
  { apiKey },
)
// -> succeeds; the answers are gone

Suggested fix

Either implement formValues as described, or drop the sentence and document values alone. If it refers to something planned, it should not ship as advice in a released package.

Worth a wider check: this is the only description we found making a claim the schema does not back, but nothing currently prevents another.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/schemas/ticket.ts and inspect the TicketCreateSchema definition alongside the values description. Verify whether formValues is supported anywhere in the package, then update the schema or documentation so the published guidance matches accepted input and answers are not silently discarded. Use the reported dist/ searches to confirm the stale reference is gone or backed by a real field.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.