Skip to content

Commit c9210e3

Browse files
committed
Issues-474: updated group schema
1 parent 54d0a8e commit c9210e3

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

controllers/api/GroupsApiController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ public function groupPostSchema() {
495495
'enum' => [GroupModel::PRIVACY_SECRET, GroupModel::PRIVACY_PUBLIC, GroupModel::PRIVACY_PRIVATE],
496496
'description' => 'Privacy of the group'],
497497
'description:s' => 'Description of the group',
498+
'archived:b' => 'The archived state of the group',
498499
'challengeID:s?' => 'The challengeID of the Topcoder challenge.',
499500
'challengeUrl:s?' => 'The challengeUrl of the Topcoder challenge.',
500501
]), 'GroupPost');

openapi/groups.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,13 +323,17 @@ components:
323323
enum:
324324
- challenge
325325
- regular
326+
archived:
327+
description: The archived state of the group
328+
type: boolean
326329
required:
327330
- groupID
328331
- privacy
329332
- type
330333
- name
331334
- challengeID
332335
- challengeUrl
336+
- archived
333337
type: object
334338
GroupPost:
335339
properties:
@@ -361,13 +365,17 @@ components:
361365
challengeUrl:
362366
description: The url of the Topcoder challenge.
363367
type: string
368+
archived:
369+
description: The archived state of the group
370+
type: boolean
364371
required:
365372
- name
366373
- type
367374
- privacy
368375
- description
369376
- challengeID
370377
- challengeUrl
378+
- archived
371379
type: object
372380
GroupPatch:
373381
properties:

0 commit comments

Comments
 (0)