-
Notifications
You must be signed in to change notification settings - Fork 9.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-pages: view link and download link for latest JSON schemas #4034
gh-pages: view link and download link for latest JSON schemas #4034
Conversation
Also work if site is deployed with non-empty base URL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. 👍
Strange highlighting in the "latest" files -- I'm taking that to be a GitHub anomaly.
The merge-base changed after approval.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reapproving.
The merge-base changed after approval.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we instead create a "view" page that embeds the schema with highlighting? It's such an anti-pattern to use a suffix over HTTP and I do not want some people to start referencing the schema as a .json
file when the correct URL is the one without it.
@ralfhandl now I'm noticing that these are called "latest", but really we want people to take specific dated versions of the schema. It's not good to have your validation rules change under you without notice. Or am I misunderstanding what "latest" means here? |
@handrews How about listing all schema versions for download, and only viewing the latest in an HTML wrapper: Live preview: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an improvement over what we have!
The merge-base changed after approval.
Preview: https://ralfhandl.github.io/OpenAPI-Specification/