request.json 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {
  2. "$schema": "http://json-schema.org/draft-04/schema#",
  3. "type": "object",
  4. "properties": {
  5. "timestamp": {
  6. "description": "the number of seconds since the Unix epoch",
  7. "type": "string",
  8. "minLength": 10,
  9. "maxLength": 10,
  10. "pattern": "[0-9]{10,10}"
  11. },
  12. "requester": {
  13. "type": "string"
  14. },
  15. "baseCommit": {
  16. "type": "string"
  17. },
  18. "reviewRef": {
  19. "description": "used to specify a git ref that tracks the current revision under review",
  20. "type": "string"
  21. },
  22. "targetRef": {
  23. "description": "used to specify the git ref that should be updated once the review is approved",
  24. "type": "string"
  25. },
  26. "reviewers": {
  27. "type": "array",
  28. "items": {
  29. "type": "string"
  30. }
  31. },
  32. "description": {
  33. "type": "string"
  34. },
  35. "v": {
  36. "type": "integer",
  37. "enum": [0]
  38. },
  39. "alias": {
  40. "description": "used to specify a post-rebase commit hash for the review",
  41. "type": "string"
  42. }
  43. },
  44. "required": [
  45. "timestamp",
  46. "requester"
  47. ]
  48. }