From 9106855522d4b8e2a363fd2336858119c5d6480b Mon Sep 17 00:00:00 2001 From: konstin Date: Fri, 31 Jan 2025 15:34:14 +0100 Subject: [PATCH 1/2] Update Direct URL JSON schema to 2020-12 --- source/specifications/direct-url-data-structure.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/specifications/direct-url-data-structure.rst b/source/specifications/direct-url-data-structure.rst index 0d243652d..f3dfa3f25 100644 --- a/source/specifications/direct-url-data-structure.rst +++ b/source/specifications/direct-url-data-structure.rst @@ -239,7 +239,7 @@ The following JSON Schema can be used to validate the contents of ``direct_url.j .. code-block:: { - "$schema": "https://json-schema.org/draft/2019-09/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Direct URL Data", "description": "Data structure that can represent URLs to python projects and distribution artifacts such as VCS source trees, local source trees, source distributions and wheels.", "definitions": { From 5bc9e98e0e218d90c913862dbb0d93f2712c6279 Mon Sep 17 00:00:00 2001 From: konstin Date: Fri, 31 Jan 2025 15:27:17 +0100 Subject: [PATCH 2/2] Add subdirectory to Direct URL schema --- source/specifications/direct-url-data-structure.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/specifications/direct-url-data-structure.rst b/source/specifications/direct-url-data-structure.rst index f3dfa3f25..3013da6a4 100644 --- a/source/specifications/direct-url-data-structure.rst +++ b/source/specifications/direct-url-data-structure.rst @@ -252,6 +252,9 @@ The following JSON Schema can be used to validate the contents of ``direct_url.j "properties": { "editable": { "type": ["boolean", "null"] + }, + "subdirectory": { + "type": "string" } } }, @@ -275,6 +278,9 @@ The following JSON Schema can be used to validate the contents of ``direct_url.j }, "resolved_revision": { "type": "string" + }, + "subdirectory": { + "type": "string" } }, "required": [