diff --git a/spec/schemas/gem.json b/spec/schemas/gem.json index 9c18359b04..6924c1e7a9 100644 --- a/spec/schemas/gem.json +++ b/spec/schemas/gem.json @@ -11,21 +11,19 @@ { "required": ["ghsa"] } ], "properties": { + "engine": false, "gem": { "type": "string", "minLength": 1 }, "library": { - "type": "string", - "minLength": 1 + "const": "rubygems" }, "framework": { - "type": "string", - "minLength": 1 + "const": "rails" }, "platform": { - "type": "string", - "minLength": 1 + "const": "jruby" }, "cve": { "type": "string", @@ -57,9 +55,8 @@ "description": { "type": "string", "minLength": 1, - "pattern": "^(?!.{81,})(?:[^\n]{1,150})(?:\n[^\n]{1,150})*$", + "pattern": "^(?=.{1,80}$)(?=.*\\n)(?:[^\n]{1,80})(?:\n[^\n]{1,80})*$", "allOf": [ - { "pattern": "\\n" }, { "not": { "pattern": "\\\\n\\\\n" } }, { "not": { "pattern": "(#+) PoC" } } ] diff --git a/spec/schemas/ruby.json b/spec/schemas/ruby.json index 137ea5e767..bc59095e60 100644 --- a/spec/schemas/ruby.json +++ b/spec/schemas/ruby.json @@ -15,9 +15,11 @@ "type": "string", "enum": ["ruby", "jruby", "mruby", "mrubyc", "rbx", "truffleruby"] }, + "gem:": false, + "library": false, + "framework:": false, "platform": { - "type": "string", - "minLength": 1 + "const": "jruby" }, "cve": { "type": "string", @@ -49,9 +51,8 @@ "description": { "type": "string", "minLength": 1, - "pattern": "^(?!.{81,})(?:[^\n]{1,150})(?:\n[^\n]{1,150})*$", + "pattern": "^(?=.{1,80}$)(?=.*\\n)(?:[^\n]{1,80})(?:\n[^\n]{1,80})*$", "allOf": [ - { "pattern": "\\n" }, { "not": { "pattern": "\\\\n\\\\n" } }, { "not": { "pattern": "(#+) PoC" } } ]