changelog_override.schema.json 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. }