Merge branch 'feature/json-data-reference' of https://github.com/tiemonl/Guides into feature/json-data-reference
commit
6b0e4a590f
@ -0,0 +1,25 @@
|
|||||||
|
name: Validate Metadata JSON
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- metadata.json
|
||||||
|
- metadata.schema.json
|
||||||
|
- .github/workflows/metadata-validation.yml
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- metadata.json
|
||||||
|
- metadata.schema.json
|
||||||
|
- .github/workflows/metadata-validation.yml
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
validate:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Validate metadata.json
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: "3.x"
|
||||||
|
- run: pip install jsonschema
|
||||||
|
- run: jsonschema -i metadata.json metadata.schema.json
|
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"trash_id": "0a3f082873eb454bde444150b70253cc",
|
||||||
|
"trash_score": "-10000",
|
||||||
|
"name": "Extras",
|
||||||
|
"includeCustomFormatWhenRenaming": false,
|
||||||
|
"specifications": [
|
||||||
|
{
|
||||||
|
"name": "Extras",
|
||||||
|
"implementation": "ReleaseTitleSpecification",
|
||||||
|
"negate": false,
|
||||||
|
"required": true,
|
||||||
|
"fields": {
|
||||||
|
"value": "(?<=\\b[12]\\d{3}\\b).*\\b(Extras)\\b"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in new issue