keyword_schema.json 1008 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "$id": "keyword_schema.json",
  4. "title": "BiddingKG 关键词字典 YAML Schema",
  5. "description": "定义 dl/rules/keywords/*.yaml 的合法结构",
  6. "type": "object",
  7. "required": ["version", "dictionary_id", "entries"],
  8. "properties": {
  9. "version": {
  10. "type": "integer",
  11. "const": 1
  12. },
  13. "dictionary_id": {
  14. "type": "string",
  15. "description": "字典唯一标识",
  16. "pattern": "^[a-z][a-z0-9_]*$"
  17. },
  18. "description": {
  19. "type": "string"
  20. },
  21. "source_file": {
  22. "type": "string",
  23. "description": "原始 CSV/Excel 文件名(迁移溯源用)"
  24. },
  25. "columns": {
  26. "type": "array",
  27. "description": "列定义",
  28. "items": {"type": "string"}
  29. },
  30. "entries": {
  31. "type": "array",
  32. "description": "字典条目列表",
  33. "items": {
  34. "type": "object",
  35. "additionalProperties": true
  36. }
  37. }
  38. },
  39. "additionalProperties": false
  40. }