Skip to content

Commit

Permalink
test: Use a more accurate JSON schema to generate test cases (#44)
Browse files Browse the repository at this point in the history
Will merge whatever
pypa/packaging.python.org#1512 ends up with,
even if it's not accepted in the end.
  • Loading branch information
edgarrmondragon authored Mar 1, 2024
1 parent 29824b9 commit c0b07fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/fixtures/direct_url.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2019-09/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": {
Expand Down Expand Up @@ -47,7 +47,8 @@
"properties": {
"hash": {
"type": "string",
"pattern": "^[a-f0-9]+=[a-f0-9]+$"
"pattern": "^\\w+=[a-f0-9]+$",
"deprecated": true
},
"hashes": {
"type": "object",
Expand Down

0 comments on commit c0b07fd

Please sign in to comment.