Skip to content

Commit

Permalink
Port repository tests
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Jul 2, 2024
1 parent f57c1a1 commit 9b19708
Show file tree
Hide file tree
Showing 3 changed files with 918 additions and 22 deletions.
38 changes: 23 additions & 15 deletions schema/v1/no_index.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,11 @@
"properties": {
"file": {
"description": "A list of relative paths to files. Paths **must be** specified with unix conventions.",
"type": "array",
"minItems": 1,
"items": {
"type": "string",
"description": "Relative path in unix convention to a file to ignore.",
"minLength": 1
}
"$ref": "#/$defs/fileList"
},
"directory": {
"description": "A list of relative paths to directories. Paths **must be** specified with unix conventions.",
"type": "array",
"minItems": 1,
"items": {
"type": "string",
"description": "Relative path in unix convention to a directory to ignore.",
"minLength": 1
}
"$ref": "#/$defs/fileList"
}
},
"anyOf": [{ "required": ["file"] }, { "required": ["directory"] }],
Expand All @@ -38,5 +26,25 @@
"file": ["src/file.sql"],
"directory": ["src/private"]
}
]
],
"$defs": {
"fileList": {
"oneOf": [
{
"type": "array",
"minItems": 1,
"items": {
"type": "string",
"description": "Relative path in unix convention to a file to ignore.",
"minLength": 1
}
},
{
"type": "string",
"description": "Relative path in unix convention to a file to ignore.",
"minLength": 1
}
]
}
}
}
3 changes: 2 additions & 1 deletion schema/v1/repository.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
},
"type": {
"type": "string",
"description": "a lowercase string indicating the VCS used."
"pattern": "^\\p{lower}*$",
"description": "A lowercase string indicating the VCS used."
}
},
"anyOf": [{ "required": ["url", "type"] }, { "required": ["web"] }],
Expand Down
Loading

0 comments on commit 9b19708

Please sign in to comment.