From ebc8f80ccc367f7ce21649cd30f8bdcba45017e9 Mon Sep 17 00:00:00 2001 From: Eric Le Lay Date: Thu, 19 Feb 2026 15:50:37 +0100 Subject: [PATCH] Fix #2200 OCI_INDEX_SCHEMA shouldn't require the platform property Fixes #2200 The OCI spec marks the plaform field of vnd.oci.image.index.v1+json manifests optional. The rest of the code handles the absence of the platform field fine. (cherry picked from commit 9a7c25af7a66d78363df7fc1ac762584d289688a) --- CHANGES/2200.bugfix | 1 + pulp_container/app/json_schemas.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 CHANGES/2200.bugfix diff --git a/CHANGES/2200.bugfix b/CHANGES/2200.bugfix new file mode 100644 index 000000000..66a167e1a --- /dev/null +++ b/CHANGES/2200.bugfix @@ -0,0 +1 @@ +Made ``plaform`` optional for ``manifests`` in the JSON schema for ``vnd.oci.image.index.v1+json``. diff --git a/pulp_container/app/json_schemas.py b/pulp_container/app/json_schemas.py index f09f53ac6..f3ab7991a 100644 --- a/pulp_container/app/json_schemas.py +++ b/pulp_container/app/json_schemas.py @@ -70,7 +70,6 @@ def get_descriptor_schema( "required": ["architecture", "os"], }, }, - additional_required=["platform"], ), }, "subject": get_descriptor_schema(),