Skip to content

Commit d0dc4af

Browse files
authored
chore: regenerate go files (#6413)
The schema or other dependencies have been updated. This PR contains the regenerated Go code. Please review and merge!
1 parent 75317fb commit d0dc4af

1 file changed

Lines changed: 17 additions & 4 deletions

File tree

‎go/internal/osvutil/schema/schema_generated.json‎

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@
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"
@@ -26,19 +33,19 @@
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": {
@@ -462,6 +469,12 @@
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",

0 commit comments

Comments
 (0)