LANGUAGE CONTRACT · COMMUNITY DRAFT Source semantics.schema.json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"required": [
"name",
"version",
"codingContract",
"rules",
"failures",
"hostBoundary"
],
"properties": {
"rules": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": [
"name",
"rules"
],
"properties": {
"name": {
"type": "string"
},
"rules": {
"type": "array",
"minItems": 1,
"items": {
"type": "string"
}
}
}
}
},
"failures": {
"type": "array",
"minItems": 8,
"maxItems": 8,
"uniqueItems": true,
"items": {
"type": "string"
}
}
}
}