LANGUAGE CONTRACT · COMMUNITY DRAFT Source extension.schema.json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"additionalProperties": false,
"required": [
"format",
"owner",
"name",
"version",
"language",
"services",
"utilities"
],
"properties": {
"format": {
"const": "aisdl.extension"
},
"owner": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
},
"version": {
"type": "string",
"minLength": 1
},
"language": {
"type": "object",
"additionalProperties": false,
"required": ["name", "version"],
"properties": {
"name": {"const": "AIScript"},
"version": {"type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:-[A-Za-z0-9.-]+)?$"}
}
},
"services": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"pattern": "^[A-Za-z0-9_/-]+\\.json$",
"description": "Relative path to a Service contract manifest in this package."
}
},
"utilities": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"pattern": "^[A-Za-z0-9_/-]+\\.json$",
"description": "Relative path to a Utility contract manifest in this package."
}
},
"requiredContracts": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "object",
"additionalProperties": false,
"required": ["kind", "name", "version"],
"properties": {
"kind": {"enum": ["service", "utility"]},
"name": {"type": "string", "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"},
"version": {"type": "string", "minLength": 1}
}
}
},
"semantics": {
"type": "array",
"items": {
"type": "string"
}
},
"conformanceTests": {
"type": "string"
}
}
}