mightstone.services.wiki.models.WikiFlow

pydantic model mightstone.services.wiki.models.WikiFlow

A representation of a wiki flow

A wiki flow is a succession of other wiki element that are displayed inline such as links, styled text, templates…

Show JSON schema
{
   "title": "WikiFlow",
   "description": "A representation of a wiki flow\n\nA wiki flow is a succession of other wiki element that are displayed inline such\nas links, styled text, templates...",
   "type": "object",
   "properties": {
      "items": {
         "default": [],
         "items": {
            "$ref": "#/$defs/WikiElement"
         },
         "title": "Items",
         "type": "array"
      }
   },
   "$defs": {
      "WikiElement": {
         "properties": {},
         "title": "WikiElement",
         "type": "object"
      }
   }
}

Fields:
field items: list[WikiElement] = []
as_html()
as_text()
as_wiki()
static from_elements(*elements: str | WikiElement)