mightstone.services.wiki.models.WikiPage
- pydantic model mightstone.services.wiki.models.WikiPage
A wiki dump page
Show JSON schema
{ "title": "WikiPage", "description": "A wiki dump page", "type": "object", "properties": { "id": { "title": "Id", "type": "integer" }, "title": { "title": "Title", "type": "string" }, "revisions": { "items": { "$ref": "#/$defs/WikiRevision" }, "title": "Revisions", "type": "array" }, "url": { "format": "uri", "minLength": 1, "title": "Url", "type": "string" } }, "$defs": { "WikiRevision": { "description": "A Revision description in the Wiki dump\n\nThis object contains the source of the page on a given timestamp", "properties": { "id": { "title": "Id", "type": "integer" }, "parent_id": { "title": "Parent Id", "type": "integer" }, "timestamp": { "format": "date-time", "title": "Timestamp", "type": "string" }, "contributor_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Contributor Name" }, "contributor_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Contributor Id" }, "origin": { "title": "Origin", "type": "integer" }, "source": { "title": "Source", "type": "string" } }, "required": [ "id", "parent_id", "timestamp", "contributor_name", "contributor_id", "origin", "source" ], "title": "WikiRevision", "type": "object" } }, "required": [ "id", "title", "revisions", "url" ] }
- Fields:
- field id: int [Required]
- field revisions: list[WikiRevision] [Required]
- field title: str [Required]
- field url: Url [Required]
- static from_tag(page: Tag, base_url: str)
- property source: str | None