From 2edeca616b65ef18a849c77cdcbdb81725915888 Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Thu, 9 Dec 2021 19:03:13 +0000 Subject: [PATCH] Fixed missing 'required' for directives in setuptools plugin --- CHANGELOG.rst | 7 +++++++ src/validate_pyproject/plugins/setuptools.schema.json | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index f877be7..8883c41 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,6 +2,13 @@ Changelog ========= +Version 0.3.1 +============= + +- ``setuptools`` plugin: + - Fixed missing ``required`` properties for the ``attr:`` and ``file:`` + directives (previously empty objects were allowed). + Version 0.3 =========== diff --git a/src/validate_pyproject/plugins/setuptools.schema.json b/src/validate_pyproject/plugins/setuptools.schema.json index 575957c..8eefb0e 100644 --- a/src/validate_pyproject/plugins/setuptools.schema.json +++ b/src/validate_pyproject/plugins/setuptools.schema.json @@ -233,7 +233,8 @@ {"type": "array", "items": {"type": "string"}} ] } - } + }, + "required": ["file"] }, "attr-directive": { "title": "'attr:' directive", @@ -246,7 +247,8 @@ "additionalProperties": false, "properties": { "attr": {"type": "string"} - } + }, + "required": ["attr"] }, "find-directive": { "$id": "#/definitions/find-directive",