69 lines
2.2 KiB
JSON
69 lines
2.2 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"type": "object",
|
|
"required": ["corrections", "user_corrections"],
|
|
"properties": {
|
|
"corrections": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_key": {
|
|
"type": "string",
|
|
"pattern": "^[\\S]+$"
|
|
},
|
|
"loc": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"correction_comment": {
|
|
"type": "string"
|
|
},
|
|
"module": {
|
|
"type": "string",
|
|
"pattern": "^[a-z-\\.]+$"
|
|
},
|
|
"subject": {
|
|
"type": "string"
|
|
},
|
|
"change_id": {
|
|
"type": ["array", "null"],
|
|
"items": {
|
|
"type": "string",
|
|
"pattern": "^I[a-z0-f]{40}$"
|
|
},
|
|
"minItems": 0
|
|
},
|
|
"author_email": {
|
|
"type": "string",
|
|
"pattern": "^[a-z\\d_\\.\\+-]+@([a-z\\d\\.-]+\\.)+[a-z]+$"
|
|
}
|
|
},
|
|
"required": ["primary_key", "correction_comment"]
|
|
}
|
|
},
|
|
"user_corrections": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string",
|
|
"pattern": "^[\\S]+$"
|
|
},
|
|
"emails": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"pattern": "^[a-z\\d_\\.-]+@([a-z\\d\\.-]+\\.)+[a-z]+$"
|
|
}
|
|
},
|
|
"correction_comment": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|