Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
JimMadge committed Oct 3, 2023
1 parent 0d34976 commit 02328f5
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 68 deletions.
64 changes: 32 additions & 32 deletions schema.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"package_name": {"type": "string"},
"version": {
"type": "string",
"_comment": "PEP404 version string prefixed with a comparison operator, Excluding trailing '.*'.\nhttps://peps.python.org/pep-0440/#version-specifiers\nhttps://peps.python.org/pep-0440/#appendix-b-parsing-version-strings-with-regular-expressions",
"pattern": "^(~=|==|!=|<=|>=|<|>|===)\\s*([1-9][0-9]*!)?(0|[1-9][0-9]*)(\\.(0|[1-9][0-9]*))*((a|b|rc)(0|[1-9][0-9]*))?(\\.post(0|[1-9][0-9]*))?(\\.dev(0|[1-9][0-9]*))?$"
},
"approval_date": {
"type": "string",
"format": "date"
},
"revoke_date": {
"oneOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
]
}
},
"required": ["package_name", "version", "approval_date", "revoke_date"],
"additionalProperties": false
}
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"package_name": { "type": "string" },
"version": {
"type": "string",
"_comment": "PEP404 version string prefixed with a comparison operator, Excluding trailing '.*'.\nhttps://peps.python.org/pep-0440/#version-specifiers\nhttps://peps.python.org/pep-0440/#appendix-b-parsing-version-strings-with-regular-expressions",
"pattern": "^(~=|==|!=|<=|>=|<|>|===)\\s*([1-9][0-9]*!)?(0|[1-9][0-9]*)(\\.(0|[1-9][0-9]*))*((a|b|rc)(0|[1-9][0-9]*))?(\\.post(0|[1-9][0-9]*))?(\\.dev(0|[1-9][0-9]*))?$"
},
"approval_date": {
"type": "string",
"format": "date"
},
"revoke_date": {
"oneOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
]
}
},
"required": ["package_name", "version", "approval_date", "revoke_date"],
"additionalProperties": false
}
}
78 changes: 42 additions & 36 deletions schema_other.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,44 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"package_name": {"type": "string"},
"url": {
"type": "string",
"format": "uri"
},
"version": {
"type": "string",
"_comment": "PEP404 version string prefixed with a comparison operator, Excluding trailing '.*'.\nhttps://peps.python.org/pep-0440/#version-specifiers\nhttps://peps.python.org/pep-0440/#appendix-b-parsing-version-strings-with-regular-expressions",
"pattern": "^(~=|==|!=|<=|>=|<|>|===)\\s*([1-9][0-9]*!)?(0|[1-9][0-9]*)(\\.(0|[1-9][0-9]*))*((a|b|rc)(0|[1-9][0-9]*))?(\\.post(0|[1-9][0-9]*))?(\\.dev(0|[1-9][0-9]*))?$"
},
"approval_date": {
"type": "string",
"format": "date"
},
"revoke_date": {
"oneOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
]
}
},
"required": ["package_name", "url", "version", "approval_date", "revoke_date"],
"additionalProperties": false
}
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"package_name": { "type": "string" },
"url": {
"type": "string",
"format": "uri"
},
"version": {
"type": "string",
"_comment": "PEP404 version string prefixed with a comparison operator, Excluding trailing '.*'.\nhttps://peps.python.org/pep-0440/#version-specifiers\nhttps://peps.python.org/pep-0440/#appendix-b-parsing-version-strings-with-regular-expressions",
"pattern": "^(~=|==|!=|<=|>=|<|>|===)\\s*([1-9][0-9]*!)?(0|[1-9][0-9]*)(\\.(0|[1-9][0-9]*))*((a|b|rc)(0|[1-9][0-9]*))?(\\.post(0|[1-9][0-9]*))?(\\.dev(0|[1-9][0-9]*))?$"
},
"approval_date": {
"type": "string",
"format": "date"
},
"revoke_date": {
"oneOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
]
}
},
"required": [
"package_name",
"url",
"version",
"approval_date",
"revoke_date"
],
"additionalProperties": false
}
}

0 comments on commit 02328f5

Please sign in to comment.