Skip to content

Conversation

@alexbainter
Copy link
Collaborator

Closes #166.

Most of the selection between GitHub raw and repo URLs was actually implemented in #167. However, our schema methods were still just fetching whatever was at the Referenceitem's URL as provided when rendering content. This PR changes a couple things:

  1. Moves fetching logic into a model method, which also prepares us a bit for Implement some sort of file content caching for remote files #157.
  2. Updates that logic to check if the ReferenceItem is provided by GitHub, and if so, fetches from the raw URL if available.

This ensures that when we attempt to fetch content from files hosted on GitHub (like READMEs or schema specs), we can hopefully get the actual file content even if the user only provided us with a link to GitHub's webpage for the file.

@alexbainter alexbainter requested a review from lisad January 5, 2026 17:51
@alexbainter alexbainter merged commit ce9598b into main Jan 5, 2026
8 checks passed
@alexbainter alexbainter deleted the alex-166-more-github-urls branch January 5, 2026 20:09
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.

Use raw and repo GitHub URLS where appropriate

2 participants