Skip to content

Commit fa76c63

Browse files
committed
Expose judgements.current as alias of valid in the API per CLICS spec
1 parent cf0f314 commit fa76c63

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

webapp/src/Entity/Judging.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ class Judging extends BaseApiEntity
9292
#[Serializer\Groups([ARC::GROUP_NONSTRICT])]
9393
private bool $valid = true;
9494

95+
#[Serializer\VirtualProperty]
96+
#[Serializer\SerializedName('current')]
97+
public function getCurrent(): bool
98+
{
99+
return $this->valid;
100+
}
101+
95102
/**
96103
* @var resource|null
97104
*/

0 commit comments

Comments
 (0)