comment.json 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. "author": {
  13. "type": "string"
  14. },
  15. "original": {
  16. "description": "the SHA1 hash of another comment on the same revision, and it means this comment is an updated version of that comment",
  17. "type": "string"
  18. },
  19. "parent": {
  20. "description": "the SHA1 hash of another comment on the same revision, and it means this comment is a reply to that comment",
  21. "type": "string"
  22. },
  23. "location": {
  24. "type": "object",
  25. "properties": {
  26. "commit": {
  27. "type": "string"
  28. },
  29. "path": {
  30. "type": "string"
  31. },
  32. "range": {
  33. "type": "object",
  34. "properties": {
  35. "startLine": {
  36. "type": "integer"
  37. },
  38. "startColumn": {
  39. "type": "integer"
  40. },
  41. "endLine": {
  42. "type": "integer"
  43. },
  44. "endColumn": {
  45. "type": "integer"
  46. }
  47. }
  48. }
  49. }
  50. },
  51. "description": {
  52. "type": "string"
  53. },
  54. "resolved": {
  55. "type": "boolean"
  56. },
  57. "v": {
  58. "type": "integer",
  59. "enum": [0]
  60. }
  61. },
  62. "required": [
  63. "timestamp",
  64. "author"
  65. ]
  66. }