None
Config class
Config source
class Config: env_prefix = "markata_" extras = "allow"
PostConfig class
PostConfig source
class PostConfig: title = "Markata.Post" arbitrary_types_allowed = True copy_on_model_validation = False
create_models function
create_models source
def create_models(markata: "Markata") -> None: post_models = tuple(unique_everseen(markata.post_models)) markata.Post = create_model( "Post", __base__=post_models, ) markata.Posts = create_model( "Posts", posts=(List[markata.Post], ...), ) markata.Post.markata = markata markata.Config = create_model( "Config", __base__=tuple(unique_everseen(markata.config_models)), )