Skip to content

Commit 4a6365e

Browse files
authored
Merge branch 'main' into patch-1
2 parents b565c9b + 4158d57 commit 4a6365e

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

src/validate_pyproject/project_metadata.schema.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,11 @@
326326
"format": "idn-email",
327327
"description": "MUST be a valid email address"
328328
}
329-
}
329+
},
330+
"anyOf": [
331+
{ "required": ["name"] },
332+
{ "required": ["email"] }
333+
]
330334
},
331335
"entry-point-group": {
332336
"$id": "#/definitions/entry-point-group",
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[project]
2+
name = 'foo'
3+
version = '1.0'
4+
authors = []
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
`project.authors[0]` cannot be validated by any definition
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[project]
2+
name = 'foo'
3+
version = '1.0'
4+
authors = [{}]

0 commit comments

Comments
 (0)