Skip to content

Commit fc7e7d1

Browse files
committed
added descriptions to formats
1 parent 95080cd commit fc7e7d1

File tree

3 files changed

+61
-59
lines changed

3 files changed

+61
-59
lines changed

app/helpers/MetaFormats/FormatDefinitions/GroupPrivateDataFormat.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,51 +21,51 @@ class GroupPrivateDataFormat extends MetaFormat
2121
#[FPost(new VArray(new VUuid()), "IDs of all users that have admin privileges to this group (including inherited)")]
2222
public array $admins;
2323

24-
#[FPost(new VArray(new VUuid()))]
24+
#[FPost(new VArray(new VUuid()), "IDs of all group supervisors")]
2525
public array $supervisors;
2626

27-
#[FPost(new VArray(new VUuid()))]
27+
#[FPost(new VArray(new VUuid()), "IDs of all group observers")]
2828
public array $observers;
2929

30-
#[FPost(new VArray(new VUuid()))]
30+
#[FPost(new VArray(new VUuid()), "IDs of the students of this group")]
3131
public array $students;
3232

33-
#[FPost(new VUuid(), required: false)]
33+
#[FPost(new VUuid(), "The instance ID of the group", required: false)]
3434
public string $instanceId;
3535

36-
#[FPost(new VBool())]
36+
#[FPost(new VBool(), "Whether the group has a valid license")]
3737
public bool $hasValidLicence;
3838

39-
#[FPost(new VArray(new VUuid()))]
39+
#[FPost(new VArray(new VUuid()), "IDs of all group assignments")]
4040
public array $assignments;
4141

42-
#[FPost(new VArray(new VUuid()))]
42+
#[FPost(new VArray(new VUuid()), "IDs of all group shadow assignments")]
4343
public array $shadowAssignments;
4444

45-
#[FPost(new VBool())]
45+
#[FPost(new VBool(), "Whether the group statistics are public")]
4646
public bool $publicStats;
4747

48-
#[FPost(new VBool())]
48+
#[FPost(new VBool(), "Whether the group is detaining")]
4949
public bool $detaining;
5050

51-
#[FPost(new VDouble(), required: false)]
51+
#[FPost(new VDouble(), "The group assignment point threshold", required: false)]
5252
public ?float $threshold;
5353

54-
#[FPost(new VInt(), required: false)]
54+
#[FPost(new VInt(), "The group points limit", required: false)]
5555
public ?int $pointsLimit;
5656

57-
#[FPost(new VArray())]
57+
#[FPost(new VArray(), "Entities bound to the group")]
5858
public array $bindings;
5959

60-
#[FPost(new VTimestamp(), required: false)]
60+
#[FPost(new VTimestamp(), "The time when the exam starts if there is an exam", required: false)]
6161
public ?int $examBegin;
6262

63-
#[FPost(new VTimestamp(), required: false)]
63+
#[FPost(new VTimestamp(), "The time when the exam ends if there is an exam", required: false)]
6464
public ?int $examEnd;
6565

66-
#[FPost(new VBool(), required: false)]
66+
#[FPost(new VBool(), "Whether there is a strict exam lock", required: false)]
6767
public ?bool $examLockStrict;
6868

69-
#[FPost(new VArray())]
69+
#[FPost(new VArray(), "All group exams")]
7070
public array $exams;
7171
}

app/helpers/MetaFormats/FormatDefinitions/SuccessResponseFormat.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
#[Format(SuccessResponseFormat::class)]
1717
class SuccessResponseFormat extends MetaFormat
1818
{
19-
#[FPost(new VBool())]
19+
#[FPost(new VBool(), "Whether the request was processed successfully.")]
2020
public bool $success;
2121

22-
#[FPost(new VInt())]
22+
#[FPost(new VInt(), "HTTP response code.")]
2323
public int $code;
2424

25-
#[FPost(new VMixed())]
25+
#[FPost(new VMixed(), "The payload of the response.")]
2626
public mixed $payload;
2727
}

0 commit comments

Comments
 (0)