From 31f2b86ae06673ba3c3c1ea39a54eeef10bce438 Mon Sep 17 00:00:00 2001 From: Daniel Elsner Date: Thu, 15 May 2025 18:06:30 +0200 Subject: [PATCH] feat: Add about.purls to schema --- conda_recipe_v2_schema/model.py | 3 +++ schema.json | 29 +++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/conda_recipe_v2_schema/model.py b/conda_recipe_v2_schema/model.py index 6228028..de03a3d 100644 --- a/conda_recipe_v2_schema/model.py +++ b/conda_recipe_v2_schema/model.py @@ -567,6 +567,9 @@ class About(StrictBaseModel): ) license_url: str | None = Field(None, description="A url that points to the license file.") + # purls + purls: ConditionalList[str] | None = Field(None, description="Package URLs (purls) for the package.") + # Text summary: str | None = Field(None, description="A short description of the package.") description: str | DescriptionFile | None = Field( diff --git a/schema.json b/schema.json index 3a481ed..97897d8 100644 --- a/schema.json +++ b/schema.json @@ -105,6 +105,35 @@ "description": "A url that points to the license file.", "title": "License Url" }, + "purls": { + "anyOf": [ + { + "type": "string" + }, + { + "$ref": "#/$defs/IfStatement" + }, + { + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "$ref": "#/$defs/IfStatement" + } + ] + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Package URLs (purls) for the package.", + "title": "Purls" + }, "summary": { "anyOf": [ {