Skip to content

Strengthen Metaculus GetPosts parameter regression test - #2621

Open
jay23606 wants to merge 1 commit into
pmxt-dev:mainfrom
jay23606:pr-go/2615-spec-drift-metaculus-get-api-posts-missi
Open

jay23606 wants to merge 1 commit into
pmxt-dev:mainfrom
jay23606:pr-go/2615-spec-drift-metaculus-get-api-posts-missi

Conversation

@jay23606

Copy link
Copy Markdown

Bug

The regression only checked the generated API definition, so it could miss drift in the Metaculus YAML source.

Change

The test now parses the YAML source and verifies all four GetPosts parameter names and schemas there and in the generated API definition.

Testing

  • npm test --workspace=pmxt-core -- --runInBand test/exchanges/metaculus-get-posts-params.test.ts failed on the base spec because acting_user was missing, then passed with the fix.

Regression test: fails on base twice (/Expected: ArrayContaining [ObjectContaining {"name": "acting_user"/), passes on fix twice (npm test --workspace=pmxt-core -- --runInBand test/exchanges/metaculus-get-posts-params.test.ts)

Fixes #2615

@jay23606

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

This branch has not been deployed

No deployments
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.

Spec drift: metaculus — GET /api/posts/ missing acting_user, categories, include_cp_history params (2026-Q3)

1 participant