Commit 94bb5610 authored by Diegodlh's avatar Diegodlh
Browse files

Add tests schema

parent 7a0e5a4f
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://gitlab.wikimedia.org/diegodlh/w2c-core/-/blob/main/tests.schema.json",
"title": "Domain translation tests configuration for Web2Cit",
"description": "A list of translation tests",
"type": "array",
"items": {
"description": "A translation test",
"type": "object",
"properties": {
"path": {
"description": "Path of the webpage used as translation template",
"type": "string"
},
"goals": {
"description": "A series of one or more field:goal pairs",
"type": "object",
"propertyNames": {
"pattern": ".+"
},
"patternProperties": {
"": {
"oneOf": [
{ "type": "string" },
{
"type": "array",
"items": {
"description": "Goal array item",
"type": "string"
}
}
]
}
}
}
},
"required": ["path", "goals"]
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment