Forgejo's MarkupOption model — the '''request''' body of POST /markup.
Written rather than read, so the same two conventions read backwards here as in MarkdownOptionDto: no Reader, no toDomain, and instead a fromDomain that narrows a domain request into the wire shape and a toJson that renders it. Rule 4 of com.worxbend.codeberg4s.codec.WireConventions still holds — each wire name is spelled exactly once, in toJson.
'''The field names are capitalised, and that is not a typo''' — MarkupOption carries no JSON tags either, so Go's marshaller uses the field names verbatim. See MarkdownOptionDto for the full argument; this model adds FilePath and BranchPath to the four that model shares.
'''Derived from spec/swagger.v1.json's MarkupOption definition.''' golden/MANIFEST.md records that the markdown endpoints answered 401 anonymously on codeberg.org, so neither renderer has a captured request or response.
Value parameters
- branchPath
-
the branch relative links resolve against, omitted when absent
- context
-
the repository references resolve against, omitted from the body entirely when absent
- filePath
-
the file name
filemode dispatches on, omitted when absent - mode
-
the lowercase mode token, from com.worxbend.codeberg4s.miscellaneous.MarkupMode.wireName
- text
-
the markup source
- wiki
-
whether the document is a wiki page
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any