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

Missing endpoint to serve schema files as application/schema+json #126

Closed
kurtseifried opened this issue Mar 28, 2023 · 1 comment
Closed

Comments

@kurtseifried
Copy link
Contributor

When embedding the OSV schema into another schema using $ref we get an error:

Error: https://raw.githubusercontent.com/ossf/osv-schema/v1.3.1/validation/schema.json is not a schema. Found a document with media type: text/plain

https://raw.githubusercontent.com/ossf/osv-schema/v1.3.1/validation/schema.json serves as text plain which fails: it needs to be served as "application/schema+json"

is there some official endpoint at osv.dev for example that serves the various schema files as application/schema+json?

If there already is one I apologize, I couldn't find it.

@oliverchang
Copy link
Contributor

Unfortunately we don't. Thanks for filing this -- I've filed google/osv.dev#1166 in response to this, and will close this in favour of that one.

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

No branches or pull requests

2 participants