Skip to content

Support schema version 1.2.0#285

Merged
oliverchang merged 4 commits intomasterfrom
1-2-0
Jan 24, 2022
Merged

Support schema version 1.2.0#285
oliverchang merged 4 commits intomasterfrom
1-2-0

Conversation

@oliverchang
Copy link
Copy Markdown
Collaborator

Also delete legacy code dealing with pre-1.0 schema.

Fixes #284.

Also delete legacy code dealing with pre-1.0 schema.

Fixes #284.
// The type of this severity entry.
Type type = 1;
// The quantitative score.
string score = 2;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it is quantitative score, then shouldn't this be int or float ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a string for future extensibility, or if we relax the "quantitative" requirement.

Comment thread lib/osv/vulnerability.proto Outdated
message Credit {
// The name to give credit to.
string name = 1;
// Contact methods.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should the comment have example of methods ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clarified this to be URLs. This is all better documented at https://ossf.github.io/osv-schema/ :)

@oliverchang oliverchang merged commit c2ac3b8 into master Jan 24, 2022
@oliverchang oliverchang deleted the 1-2-0 branch January 24, 2022 06:00
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.

Support schema version 1.2.0

2 participants