Skip to content
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

Add "latest" URLs for downloading schemas #2747

Merged
merged 1 commit into from
Nov 11, 2021

Conversation

jdesrosiers
Copy link
Contributor

In the last schema update, it came up a couple times that people would like to be able to use https://spec.openapis.org/oas/3.1/schema (without a release date) to access the latest version of the schema. That makes perfect sense. Unfortunately, GitHub Pages makes it difficult to serve that exact URL. So, instead I'm proposing "latest" URLs.

@webron webron merged commit 18717ad into OAI:gh-pages Nov 11, 2021
@karenetheridge
Copy link
Member

Those URLs don't resolve. What is needed to get them working on GitHub Pages?

@karenetheridge
Copy link
Member

It would also be helpful to link to these from a documentation page somewhere.

@jdesrosiers
Copy link
Contributor Author

Not sure why that didn't work. I'll look into it.

@jdesrosiers
Copy link
Contributor Author

I'm stumped. It works on my local build. There's every indication that this solution is something that Github Pages supports out of the box. There are multiple examples including the JSON Schema Github Pages site that show that it should work.

Is there a plugin or something being used that might be interfere with with this feature?

@seriousme
Copy link
Contributor

My automated test noticed an error.
The symlink of 3.0 contains an typo.

The 3.0 schema folder contains:

2021-09-28
latest -> 2012-09-28

2012 should be 2021 ;-)

Kind regards,
Hans

@jdesrosiers
Copy link
Contributor Author

Thanks, @seriousme. I looked for that exact typo and I still missed it 🤦‍♂️

@seriousme
Copy link
Contributor

Issue still seems to be there:

Kind regards,
Hans

@jdesrosiers jdesrosiers deleted the latest-meta-schemas branch December 1, 2021 02:03
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.

5 participants