changelog_override.schema.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. {
  2. "$schema": "http://json-schema.org/draft/2020-12/schema",
  3. "type": "array",
  4. "uniqueItems": true,
  5. "items": {
  6. "type": "object",
  7. "oneOf": [
  8. {
  9. "type": "object",
  10. "properties": {
  11. "action": {
  12. "enum": [
  13. "add"
  14. ]
  15. },
  16. "when": {
  17. "type": "string",
  18. "pattern": "^([0-9a-f]{40}|\\d{4}\\.\\d{2}\\.\\d{2})$"
  19. },
  20. "hash": {
  21. "type": "string",
  22. "pattern": "^[0-9a-f]{40}$"
  23. },
  24. "short": {
  25. "type": "string"
  26. },
  27. "authors": {
  28. "type": "array",
  29. "items": {
  30. "type": "string"
  31. }
  32. }
  33. },
  34. "required": [
  35. "action",
  36. "short"
  37. ]
  38. },
  39. {
  40. "type": "object",
  41. "properties": {
  42. "action": {
  43. "enum": [
  44. "remove"
  45. ]
  46. },
  47. "when": {
  48. "type": "string",
  49. "pattern": "^([0-9a-f]{40}|\\d{4}\\.\\d{2}\\.\\d{2})$"
  50. },
  51. "hash": {
  52. "type": "string",
  53. "pattern": "^[0-9a-f]{40}$"
  54. }
  55. },
  56. "required": [
  57. "action",
  58. "hash"
  59. ]
  60. },
  61. {
  62. "type": "object",
  63. "properties": {
  64. "action": {
  65. "enum": [
  66. "change"
  67. ]
  68. },
  69. "when": {
  70. "type": "string",
  71. "pattern": "^([0-9a-f]{40}|\\d{4}\\.\\d{2}\\.\\d{2})$"
  72. },
  73. "hash": {
  74. "type": "string",
  75. "pattern": "^[0-9a-f]{40}$"
  76. },
  77. "short": {
  78. "type": "string"
  79. },
  80. "authors": {
  81. "type": "array",
  82. "items": {
  83. "type": "string"
  84. }
  85. }
  86. },
  87. "required": [
  88. "action",
  89. "hash",
  90. "short",
  91. "authors"
  92. ]
  93. }
  94. ]
  95. }
  96. }