Skip to content

Add resolution fields to Answer struct - #13

Merged
jonnyspicer merged 1 commit into
mainfrom
fix/issue-11-answer-resolution
Feb 16, 2026
Merged

jonnyspicer merged 1 commit into
mainfrom
fix/issue-11-answer-resolution

Conversation

@jonnyspicer

Copy link
Copy Markdown
Owner

Summary

  • Add Resolution, ResolutionTime, ResolutionProbability, and ResolverId fields to the Answer struct in market.go
  • Fields use omitempty so unresolved answers serialize cleanly
  • Add unit tests for JSON deserialization of Answer with and without resolution fields
  • Add integration-style test verifying GetMarketByID returns resolved answer data

Fixes #11

Test plan

  • go test ./... passes
  • go vet ./... clean
  • Verify against live Manifold API with a multi-choice market that has resolved answers

🤖 Generated with Claude Code

Add Resolution, ResolutionTime, ResolutionProbability, and ResolverId
fields to the Answer struct so callers can determine whether individual
answers in multi-choice markets have been resolved.

Fixes #11

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jonnyspicer
jonnyspicer merged commit b334e77 into main Feb 16, 2026
3 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.

Answer struct missing resolution fields

1 participant