team.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. {
  2. "TeamMinimal": {
  3. "type": "object",
  4. "required": ["id", "name", "slug"],
  5. "properties": {
  6. "id": {
  7. "type": "string"
  8. },
  9. "name": {
  10. "type": "string"
  11. },
  12. "slug": {
  13. "type": "string"
  14. }
  15. }
  16. },
  17. "Team": {
  18. "type": "object",
  19. "required": [
  20. "avatar",
  21. "dateCreated",
  22. "hasAccess",
  23. "id",
  24. "isMember",
  25. "isPending",
  26. "memberCount",
  27. "name",
  28. "slug"
  29. ],
  30. "properties": {
  31. "avatar": {
  32. "$ref": "avatar.json#/Avatar"
  33. },
  34. "dateCreated": {
  35. "type": "string",
  36. "format": "date-time"
  37. },
  38. "hasAccess": {
  39. "type": "boolean"
  40. },
  41. "id": {
  42. "type": "string"
  43. },
  44. "isMember": {
  45. "type": "boolean"
  46. },
  47. "isPending": {
  48. "type": "boolean"
  49. },
  50. "memberCount": {
  51. "type": "integer",
  52. "format": "int64"
  53. },
  54. "name": {
  55. "type": "string"
  56. },
  57. "slug": {
  58. "type": "string"
  59. }
  60. }
  61. },
  62. "TeamWithOrganization": {
  63. "type": "object",
  64. "required": [
  65. "avatar",
  66. "dateCreated",
  67. "hasAccess",
  68. "id",
  69. "isMember",
  70. "isPending",
  71. "memberCount",
  72. "name",
  73. "slug",
  74. "organization"
  75. ],
  76. "properties": {
  77. "avatar": {
  78. "$ref": "avatar.json#/Avatar"
  79. },
  80. "dateCreated": {
  81. "type": "string",
  82. "format": "date-time"
  83. },
  84. "hasAccess": {
  85. "type": "boolean"
  86. },
  87. "id": {
  88. "type": "string"
  89. },
  90. "isMember": {
  91. "type": "boolean"
  92. },
  93. "isPending": {
  94. "type": "boolean"
  95. },
  96. "memberCount": {
  97. "type": "integer",
  98. "format": "int64"
  99. },
  100. "organization": {
  101. "$ref": "organization.json#/Organization"
  102. },
  103. "name": {
  104. "type": "string"
  105. },
  106. "slug": {
  107. "type": "string"
  108. }
  109. }
  110. },
  111. "TeamWithProjects": {
  112. "type": "object",
  113. "required": [
  114. "avatar",
  115. "dateCreated",
  116. "hasAccess",
  117. "id",
  118. "isMember",
  119. "isPending",
  120. "memberCount",
  121. "name",
  122. "projects",
  123. "slug"
  124. ],
  125. "properties": {
  126. "avatar": {
  127. "$ref": "avatar.json#/Avatar"
  128. },
  129. "dateCreated": {
  130. "type": "string",
  131. "format": "date-time"
  132. },
  133. "hasAccess": {
  134. "type": "boolean"
  135. },
  136. "id": {
  137. "type": "string"
  138. },
  139. "isMember": {
  140. "type": "boolean"
  141. },
  142. "isPending": {
  143. "type": "boolean"
  144. },
  145. "memberCount": {
  146. "type": "integer",
  147. "format": "int64"
  148. },
  149. "name": {
  150. "type": "string"
  151. },
  152. "projects": {
  153. "type": "array",
  154. "items": {
  155. "$ref": "project.json#/Project"
  156. }
  157. },
  158. "slug": {
  159. "type": "string"
  160. }
  161. }
  162. }
  163. }