Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions schemas/purl-type-definition.schema-1.1.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2020-12/schema#",
"$id": "https://packageurl.org/schemas/purl-type-definition.schema-1.1.json",
"title": "Package-URL Type Definition",
"description": "Schema to specify a Package-URL (PURL) type as a structured definition.",
Expand Down Expand Up @@ -162,6 +162,15 @@
"$ref": "#/definitions/prohibited_requirement"
}
]
},
"registered_values": {
"title": "Registered values",
"description": "Optional set of registered namespace values for this package type. If the namespace value for a PURL is not one of these registered values, a tool should report a warning. The array of namespace values should be sorted lexicographically.",
"type": "array",
"uniqueItems": true,
"items": {
"type": "string"
}
}
},
"allOf": [
Expand Down Expand Up @@ -268,10 +277,19 @@
"title": "Native name",
"description": "The equivalent native name for this qualifier key.",
"type": "string"
},
"registered_values": {
"title": "Registered qualifier key values",
"description": "Optional set of registered qualifier key values for this package type. If a qualifier key value for a PURL is not one of these registered values, a tool should report a warning. The array of qualifier key values should be sorted lexicographically.",
"type": "array",
"uniqueItems": true,
"items": {
"type": "string"
}
}
}
}
},
},
"subpath_definition": {
"title": "Subpath definition",
"description": "The definition for the subpath for this PURL type. The PURL subpath component is optional for a specific PURL type definition.",
Expand Down Expand Up @@ -299,7 +317,7 @@
},
"examples": {
"title": "PURL examples",
"description": "Example of valid, canonical PURLs for this package type.",
"description": "Example of canonical PURLs for this package type.",
"type": "array",
"uniqueItems": true,
"minItems": 1,
Expand All @@ -324,4 +342,4 @@
}
}
}
}
}