com.worxbend.codeberg4s.repositories.gitdata.wire
Members list
Type members
Classlikes
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
AnnotatedTagDto.type
Forgejo's AnnotatedTag model, field for field.
Forgejo's AnnotatedTag model, field for field.
'''Derived from spec/swagger.v1.json, not from a capture.''' No golden fixture covers GET /git/tags/{sha}, so these eight keys are the spec's. Three of the nested objects are the repository wave's DTOs, reused rather than re-declared: tagger is a CommitUser and therefore a com.worxbend.codeberg4s.repositories.wire.GitIdentityDto, verification is the same PayloadCommitVerification a commit carries, and archive_download_count is the same object a tag carries.
Value parameters
- archiveDownloadCount
-
the
archive_download_countkey - message
-
the
messagekey: the annotation - obj
-
the
objectkey, renamed becauseobjectis a Scala keyword - sha
-
the
shakey: the id of the tag object itself, not of the commit - tag
-
the
tagkey: the short tag name - tagger
-
the
taggerkey - url
-
the
urlkey - verification
-
the
verificationkey
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
CombinedStatusDto.type
Forgejo's CombinedStatus model, field for field.
Forgejo's CombinedStatus model, field for field.
'''Derived from spec/swagger.v1.json, not from a capture.''' repository is the same Repository object the repository endpoints return, so com.worxbend.codeberg4s.repositories.wire.RepositoryDto is reused.
Value parameters
- commitUrl
-
the
commit_urlkey - repository
-
the
repositorykey - sha
-
the
shakey: the commit the request's ref resolved to - state
-
the
statekey: the instance's reduction of the individual verdicts - statuses
-
the
statuseskey - totalCount
-
the
total_countkey - url
-
the
urlkey
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Forgejo's CommitStatus model, field for field.
Forgejo's CommitStatus model, field for field.
'''Derived from spec/swagger.v1.json, not from a capture.''' Note that the wire spells the verdict status while the combined-status envelope spells the same thing state; both are read here and by CombinedStatusDto respectively, and the domain calls both state.
Value parameters
- context
-
the
contextkey: the check's name for itself - createdAt
-
the
created_atkey as a raw string - creator
-
the
creatorkey - description
-
the
descriptionkey - id
-
the
idkey - status
-
the
statuskey: the verdict - targetUrl
-
the
target_urlkey - updatedAt
-
the
updated_atkey as a raw string - url
-
the
urlkey
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
CommitStatusDto.type
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
CompareDto.type
Forgejo's Compare model — three keys, all of them arrays or counts.
Forgejo's Compare model — three keys, all of them arrays or counts.
'''Derived from spec/swagger.v1.json, not from a capture.''' Both nested arrays are the repository wave's models: commits holds the same Commit objects the commit listing returns and files the same CommitAffectedFiles.
Value parameters
- commits
-
the
commitskey - files
-
the
fileskey - totalCommits
-
the
total_commitskey: the instance's count of the whole difference, which is notcommits.sizewhen the comparison was truncated
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
The body of GET /repos/{owner}/{repo}/editorconfig/{filepath} — a bare object of property names to values.
The body of GET /repos/{owner}/{repo}/editorconfig/{filepath} — a bare object of property names to values.
'''Derived from spec/swagger.v1.json, not from a capture.''' The spec declares the response as an object with additionalProperties: {type: string} and no named property at all, so there is nothing here to enumerate and the DTO is a map.
==Why the values are rendered rather than required to be strings==
EditorConfig is a text format and the spec types every value as a string, but a JSON encoder that knows indent_size is a number has every reason to send 4 rather than "4". Refusing that would lose the property; so would silently dropping it. A JSON number or boolean is therefore rendered back to the text it stands for, and only a value that is a structure — an array, an object, or null — is dropped, because those have no text form an EditorConfig consumer could use.
A whole number renders without a fractional part. 4 arrives as a JsonValue.Int64 and needs no help, but an instance that sends 4.0 — legal JSON for the same quantity — arrives as a JsonValue.Decimal that would read as "4.0" if it were rendered naively, and indent_size = 4.0 is not a setting any EditorConfig consumer honours. Dropping the fractional part when there is nothing in it is the one piece of arithmetic in this file.
Value parameters
- values
-
the properties, keyed as the instance named them
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
EditorConfigDto.type
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
FileCommitDto.type
Forgejo's FileCommitResponse — the commit an editing endpoint reports it wrote.
Forgejo's FileCommitResponse — the commit an editing endpoint reports it wrote.
'''Derived from spec/swagger.v1.json, not from a capture.''' author and committer are CommitUser objects and therefore com.worxbend.codeberg4s.repositories.wire.GitIdentityDtos; tree and every element of parents are CommitMeta objects and therefore com.worxbend.codeberg4s.repositories.wire.CommitMetaDtos.
Value parameters
- author
-
the
authorkey - committer
-
the
committerkey - created
-
the
createdkey as a raw string - htmlUrl
-
the
html_urlkey - message
-
the
messagekey - parents
-
the
parentskey - sha
-
the
shakey - tree
-
the
treekey - url
-
the
urlkey
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Forgejo's FileResponse — what POST /repos/{owner}/{repo}/diffpatch answers with.
Forgejo's FileResponse — what POST /repos/{owner}/{repo}/diffpatch answers with.
'''Derived from spec/swagger.v1.json, not from a capture.''' content is the same ContentsResponse the contents endpoint returns and verification the same PayloadCommitVerification a commit carries, so both are the repository wave's DTOs rather than new ones.
Value parameters
- commit
-
the
commitkey - content
-
the
contentkey, absent when the operation touched no single file - verification
-
the
verificationkey
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
FileResponseDto.type
Forgejo's GitBlob model, field for field.
Forgejo's GitBlob model, field for field.
'''Derived from spec/swagger.v1.json, not from a capture.''' No golden fixture exists for the blob endpoints, so the five keys below are the five the pinned specification declares and nothing here asserts what a live instance actually sends. Every field is optional, as rule 2 of com.worxbend.codeberg4s.codec.WireConventions requires and as docs/HAZARDS.md §1 justifies.
Value parameters
- content
-
the
contentkey: the blob's bytes, encoded - encoding
-
the
encodingkey, which Forgejo populates alongsidecontent - sha
-
the
shakey: the blob's object id - size
-
the
sizekey, in bytes - url
-
the
urlkey
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
GitBlobDto.type
Forgejo's GitEntry — one element of a tree listing's tree array.
Forgejo's GitEntry — one element of a tree listing's tree array.
'''Derived from spec/swagger.v1.json, not from a capture.''' The tree endpoint has no golden fixture; these six keys are the spec's.
Value parameters
- entryType
-
the
typekey, renamed becausetypeis a Scala keyword - mode
-
the
modekey: the octal file mode as text, leading zero included - path
-
the
pathkey, relative to the tree that was requested - sha
-
the
shakey: the id of the entry's own object - size
-
the
sizekey, in bytes;0for a tree - url
-
the
urlkey
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
GitEntryDto.type
Forgejo's GitObject, and its identical twin AnnotatedTagObject.
Forgejo's GitObject, and its identical twin AnnotatedTagObject.
'''Derived from spec/swagger.v1.json, not from a capture.''' The two definitions declare the same three keys with the same types and differ only in name, so one DTO reads both — inventing a second would be the duplication docs/LEDGER.md forbids, and the domain models them as one com.worxbend.codeberg4s.repositories.gitdata.GitObjectRef for the same reason.
Value parameters
- objectType
-
the
typekey, renamed becausetypeis a Scala keyword - sha
-
the
shakey - url
-
the
urlkey
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
GitObjectDto.type
Forgejo's GitTreeResponse — the envelope GET /repos/{owner}/{repo}/git/trees/{sha} wraps its entries in.
Forgejo's GitTreeResponse — the envelope GET /repos/{owner}/{repo}/git/trees/{sha} wraps its entries in.
'''Derived from spec/swagger.v1.json, not from a capture.''' The six keys are the spec's.
==Why the envelope's own paging fields are not converted==
page, total_count and truncated describe the window, and this library assembles a window from the response's Link header and from nothing else — see com.worxbend.codeberg4s.core.Pages and docs/HAZARDS.md §5. Keeping them here, unconverted, records what the wire carries without letting a second end-of-collection test into the library: truncated is the body's version of exactly the claim items.size makes, and the reason that claim is refused is that Forgejo clamps a requested limit while echoing it back.
Value parameters
- entries
-
the
treekey - page
-
the
pagekey, as the instance echoes it - sha
-
the
shakey: the tree that was listed - totalCount
-
the
total_countkey - truncated
-
the
truncatedkey - url
-
the
urlkey
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
GitTreeDto.type
Forgejo's Note model — two keys, a message and the commit it hangs off.
Forgejo's Note model — two keys, a message and the commit it hangs off.
'''Derived from spec/swagger.v1.json, not from a capture.''' commit is the same Commit object the commit endpoints return, so com.worxbend.codeberg4s.repositories.wire.CommitDto is reused rather than reduced.
Value parameters
- commit
-
the
commitkey - message
-
the
messagekey
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ReferenceDto.type
Forgejo's Reference model, field for field.
Forgejo's Reference model, field for field.
'''Derived from spec/swagger.v1.json, not from a capture.''' The ref listing has no golden fixture, so these three keys are the spec's and nothing here claims a live instance was measured.
Value parameters
- obj
-
the
objectkey, renamed becauseobjectis a Scala keyword - ref
-
the
refkey: the fully qualified ref name, such asrefs/heads/main - url
-
the
urlkey
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all