Files
thinkloom-openai-hackathon/schemas/provenance/v1/prompt-template-reference.schema.json
T

47 lines
1.2 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://thinkloom.app/schemas/provenance/1.0/prompt-template-reference.schema.json",
"title": "Prompt template reference",
"description": "Reference to an immutable prompt-template version.",
"type": "object",
"properties": {
"schema_version": {
"const": "1.0"
},
"template_id": {
"type": "string",
"pattern": "^template_[0-9A-HJKMNP-TV-Z]{26}$"
},
"version": {
"type": "integer",
"minimum": 1
},
"path": {
"type": "string",
"minLength": 1,
"pattern": "^(?!/)(?![A-Za-z]:)(?!.*\\\\)(?!.*(?:^|/)\\.\\.?(?:/|$))[^\\u0000-\\u001f]+$"
},
"template_sha256": {
"type": "string",
"pattern": "^sha256:[a-f0-9]{64}$"
}
},
"required": [
"schema_version",
"template_id",
"version",
"path",
"template_sha256"
],
"additionalProperties": false,
"examples": [
{
"schema_version": "1.0",
"template_id": "template_01J0000000000000000000000F",
"version": 1,
"path": "records/prompt-templates/drafting/template.json",
"template_sha256": "sha256:7777777777777777777777777777777777777777777777777777777777777777"
}
]
}