mightstone.services.wiki.models.SerializableWikiPage
- pydantic model mightstone.services.wiki.models.SerializableWikiPage
Show JSON schema
{ "title": "SerializableWikiPage", "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" ] }
- Config:
json_schema_extra: function = <function json_schema_extra at 0x7fa3e4e5f7f0>
populate_by_name: bool = True
alias_generator: function = <function document_alias_generator at 0x7fa3e4e5ff40>
- Fields:
- Validators:
- field id: int [Required] (alias '_id')
- Validated by:
fill_back_refs
- model_post_init(context: Any, /) None
We need to both initialize private attributes and call the user-defined model_post_init method.