Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive for empty author / maintainer item #223

Open
abelcheung opened this issue Dec 10, 2024 · 0 comments
Open

False positive for empty author / maintainer item #223

abelcheung opened this issue Dec 10, 2024 · 0 comments

Comments

@abelcheung
Copy link

Following schema is vaildated as correct, but shouldn't have been:

[project]
name = 'foo'
version = '1.0'
authors = [{}]

Packaging specification contains the following sentence:

Both keys are optional, but at least one of the keys must be specified in the table.

But bundled schema specifies both keys as optional without requiring any key:

"author": {
"$id": "#/definitions/author",
"title": "Author or Maintainer",
"$comment": "https://peps.python.org/pep-0621/#authors-maintainers",
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"$$description": [
"MUST be a valid email name, i.e. whatever can be put as a name, before an",
"email, in :rfc:`822`."
]
},
"email": {
"type": "string",
"format": "idn-email",
"description": "MUST be a valid email address"
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant