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

Use JSON schemas for our vulnerability services, where possible #72

Open
woodruffw opened this issue Oct 21, 2021 · 2 comments
Open

Use JSON schemas for our vulnerability services, where possible #72

woodruffw opened this issue Oct 21, 2021 · 2 comments
Labels
component:vuln-sources Components that provide sources of vulnerability information
Milestone

Comments

@woodruffw
Copy link
Member

OSV and PyPI both provide JSON APIs, both of which are (probably?) schematized.

We should embed their schemas and generate models (maybe pydantic ones) from them, to give ourselves more confidence about the shape of the responses we expect and to better conform to correctness by construction.

@di
Copy link
Member

di commented Oct 21, 2021

The PyPI API is unfortunately not currently schematized. The OSV API is.

@woodruffw
Copy link
Member Author

#76 tracks a follow-up task for schematizing the PyPI API.

@di di added this to the Follow-on milestone Oct 26, 2021
@woodruffw woodruffw added the component:vuln-sources Components that provide sources of vulnerability information label Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:vuln-sources Components that provide sources of vulnerability information
Projects
None yet
Development

No branches or pull requests

2 participants