Repository navigation
test(types): point the example fixtures at learn.openapis.org's new paths - #242
Conversation
…only adds fields 3.1's Discriminator Object is the 3.0 one plus specification extensions, and 3.2's API key, mutual TLS and OpenID Connect schemes and OAuth Flows Object are the 3.1 ones plus `deprecated` or `deviceAuthorization`. They now extend the earlier type instead of repeating its fields and JSDoc. Every export stays equivalent to before (mutual assignability and the same keys, checked for all 141 exports). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VVaw7Scg1GzNV1L1jRVWNL
…aths learn.openapis.org moved its examples into v3.0/, v3.1/ and v3.2/ folders, so the "Generated from" links in the 11 example fixtures went to 404. The documents at the new paths are identical to the fixtures, so only the links change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VVaw7Scg1GzNV1L1jRVWNL
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Fixture link comments realigned to upstream paths — the
// Generated fromheader in all 11 files underpackages/types/tests/examples/now points atlearn.openapis.org's versionedexamples/v3.0|v3.1|v3.2/directories. Only the comment line changes; every fixture'sdocpayload is untouched, so there is no behavioral surface.
I verified all 11 new URLs against the live upstream directory listings: the six v3.0 files (api-with-examples, callback-example, link-example, petstore, petstore-expanded, uspto), the three v3.1 files (non-oauth-scopes, tictactoe, webhook-example), and the two v3.2 files (3.2-query-example, 3.2-tags-example) all resolve. The upstream naming is inconsistent — v3.0/v3.1 drop the version suffix while v3.2 keeps its prefix — and the patch correctly matches that quirk rather than normalizing it.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
Merging this PR will not alter performance1 warning
Comparing Footnotes
|

Requested by dinwwwh · project thread
Found in the types package issue hunt.
learn.openapis.org moved its example documents into
examples/v3.0/,examples/v3.1/andexamples/v3.2/(the 3.2 ones are nowv3.2/3.2-query-example.jsonandv3.2/3.2-tags-example.json). Because of that, the// Generated fromlinks at the top of all 11 files inpackages/types/tests/examples/returned 404. That makes the fixtures harder to regenerate, which their headers ask for.I fetched every document from its new path and deep-compared it with the fixture's
doc. All 11 are identical, so only the link comments change. The learn site's examples index lists the same 11 documents, so no new example is missing.The
schema-tests-3.1/andschema-tests-3.2/fixtures were checked the same way against theirv3.1-devandv3.2-devsources: their links work and their contents match.Generated by Claude Code