From 3f5dee4ea57f541fa49f4172186ab84b043fc92d Mon Sep 17 00:00:00 2001 From: Josh Buker Date: Wed, 29 Mar 2023 13:35:27 -0700 Subject: [PATCH 1/2] Add schema $id Signed-off-by: Josh Buker --- validation/schema.json | 1 + 1 file changed, 1 insertion(+) diff --git a/validation/schema.json b/validation/schema.json index 3c7f7d79..d6378918 100644 --- a/validation/schema.json +++ b/validation/schema.json @@ -1,5 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://raw.githubusercontent.com/ossf/osv-schema/v1.4.1/validation/schema.json", "title": "Open Source Vulnerability", "description": "A schema for describing a vulnerability in an open source package.", "type": "object", From 9e0986178792ff1cd04ff6977af246ef51676e70 Mon Sep 17 00:00:00 2001 From: Josh Buker Date: Wed, 29 Mar 2023 17:15:48 -0700 Subject: [PATCH 2/2] Update $id to use rolling release Per https://github.com/ossf/osv-schema/pull/132#issuecomment-1489414045, OSV uses a rolling release that is fully backwards compatible, preventing the use of SEMVER for versioning. Updating $id to reflect this, as there will not be a v2 pushed to main, and all future versions are defined as backwards compatible with older versions. Signed-off-by: Josh Buker --- validation/schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validation/schema.json b/validation/schema.json index d6378918..c37822b4 100644 --- a/validation/schema.json +++ b/validation/schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://raw.githubusercontent.com/ossf/osv-schema/v1.4.1/validation/schema.json", + "$id": "https://raw.githubusercontent.com/ossf/osv-schema/main/validation/schema.json", "title": "Open Source Vulnerability", "description": "A schema for describing a vulnerability in an open source package.", "type": "object",