File tree Expand file tree Collapse file tree
go/internal/osvutil/schema Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 "type" : " string"
1010 },
1111 "id" : {
12- "$ref" : " #/$defs/prefix"
12+ "allOf" : [
13+ {
14+ "$ref" : " #/$defs/prefix"
15+ },
16+ {
17+ "$ref" : " #/$defs/idFormat"
18+ }
19+ ]
1320 },
1421 "modified" : {
1522 "$ref" : " #/$defs/timestamp"
2633 " null"
2734 ],
2835 "items" : {
29- "type " : " string "
36+ "$ref " : " #/$defs/idFormat "
3037 }
3138 },
3239 "related" : {
3340 "type" : " array" ,
3441 "items" : {
35- "type " : " string "
42+ "$ref " : " #/$defs/idFormat "
3643 }
3744 },
3845 "upstream" : {
3946 "type" : " array" ,
4047 "items" : {
41- "type " : " string "
48+ "$ref " : " #/$defs/idFormat "
4249 }
4350 },
4451 "summary" : {
462469 "description" : " These ecosystems are also documented at https://ossf.github.io/osv-schema/#affectedpackage-field" ,
463470 "pattern" : " ^(AlmaLinux|Alpaquita|Alpine|Android|Azure Linux|BellSoft Hardened Containers|Bioconductor|Bitnami|Chainguard|CleanStart|ConanCenter|CRAN|crates\\ .io|Debian|Docker Hardened Images|Echo|FreeBSD|GHC|GitHub Actions|Go|Hackage|Hex|Homebrew|Julia|Kubernetes|Linux|Mageia|Maven|MinimOS|npm|NuGet|opam|openEuler|openSUSE|OSS-Fuzz|Packagist|Photon OS|Pub|PyPI|Raspberry Pi OS|Red Hat|Red Hat Lightwell|Rocky Linux|Root|RubyGems|SUSE|SwiftURL|TuxCare|Ubuntu|vcpkg|VSCode|Wolfi|WordPress|GIT)(:.+)?$"
464471 },
472+ "idFormat" : {
473+ "type" : " string" ,
474+ "title" : " Permitted identifier characters" ,
475+ "description" : " Identifiers must use only permitted ASCII characters as documented at https://ossf.github.io/osv-schema/#character-set-constraints" ,
476+ "pattern" : " ^[a-zA-Z0-9:_.-]+$"
477+ },
465478 "prefix" : {
466479 "type" : " string" ,
467480 "title" : " Currently supported home database identifier prefixes" ,
You can’t perform that action at this time.
0 commit comments