conf_schema.json 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {
  2. "$schema": "http://json-schema.org/draft/2020-12/schema",
  3. "title": "Package Repositories",
  4. "description": "local repository configuration",
  5. "type": "object",
  6. "properties": {
  7. "lang": {
  8. "description": "optional language filter",
  9. "type": "string",
  10. "minLength": 2,
  11. "maxLength": 5,
  12. "pattern": "^[a-z][a-z][_]?[A-Z]?[A-Z]?$"
  13. },
  14. "osver": {
  15. "description": "optional OS version filter",
  16. "type": "string",
  17. "minLength": 0,
  18. "maxLength": 15
  19. },
  20. "arch": {
  21. "description": "optional architecture filter",
  22. "type": "array",
  23. "uniqueItems": true,
  24. "items": {
  25. "type": "string",
  26. "minLength": 3,
  27. "maxLength": 15
  28. }
  29. },
  30. "license": {
  31. "description": "optional license filter",
  32. "type": "array",
  33. "uniqueItems": true,
  34. "items": {
  35. "type": "string",
  36. "minLength": 2,
  37. "maxLength": 15,
  38. "pattern": "^[A-Z][A-Z0-9_\\-]+"
  39. }
  40. },
  41. "repos": {
  42. "description": "repository URLs",
  43. "type": "array",
  44. "uniqueItems": true,
  45. "items": {
  46. "type": "string",
  47. "minLength": 12,
  48. "maxLength": 255,
  49. "pattern": "^https://.*",
  50. "contentMediaType": "text/plain"
  51. }
  52. }
  53. },
  54. "required": [ "repos" ]
  55. }