Skip to content

Commit

Permalink
Fixed missing 'required' for directives in setuptools plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Dec 9, 2021
1 parent 4352889 commit 2edeca6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
===========

Expand Down
6 changes: 4 additions & 2 deletions src/validate_pyproject/plugins/setuptools.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@
{"type": "array", "items": {"type": "string"}}
]
}
}
},
"required": ["file"]
},
"attr-directive": {
"title": "'attr:' directive",
Expand All @@ -246,7 +247,8 @@
"additionalProperties": false,
"properties": {
"attr": {"type": "string"}
}
},
"required": ["attr"]
},
"find-directive": {
"$id": "#/definitions/find-directive",
Expand Down

0 comments on commit 2edeca6

Please sign in to comment.