{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/osolmaz/yarp/blob/main/rules/schema/pack.schema.json",
"title": "YARP rule pack",
"type": "object",
"additionalProperties": false,
"required": ["schema_version", "id", "rules"],
"properties": {
"schema_version": { "const": 1 },
"id": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[a-z0-9](?:[a-z0-9]|[._-](?=[a-z0-9]))*[a-z0-9]$|^[a-z0-9]$"
},
"rules": {
"type": "array",
"minItems": 1,
"maxItems": 10000,
"uniqueItems": true,
"items": {
"type": "string",
"pattern": "^(?!/)(?!.*(?:^|/)\\.{1,2}(?:/|$))(?!.*//)(?!.*\\\\).+\\.json$"
}
}
}
}