Forgejo's QuotaUsedArtifact model — one artifact counting towards the quota.
'''Derived from spec/swagger.v1.json, not from a capture'''; see QuotaInfoDto.
==Nothing in these three listings is required, and that is a deliberate reading==
None of the quota usage models carries an identifier: they answer "what is taking up space", not "which object is this". There is therefore no field whose absence would leave a value nobody can use, so every conversion in this file succeeds and a sparse element arrives as a sparse element. The alternative — requiring name, say — would fail a whole page of a diagnostic listing over one entry the instance described poorly, which is the wrong trade for a report a caller is reading to find out why they are over quota.
That is also why these models have no toDomainAt: a path exists to say where a conversion failed, and none of these can. The array conversions still go through com.worxbend.codeberg4s.repositories.wire.Elements.convert so that the day one of these fields becomes load-bearing, the position reporting is already in place.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any