23 行
408 B
Python
23 行
408 B
Python
from __future__ import annotations
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class NavLinkSchema(BaseModel):
|
|
text: str
|
|
to: str
|
|
|
|
|
|
class NavFooterLinkSchema(BaseModel):
|
|
text: str
|
|
to: str
|
|
|
|
|
|
class NavFooterGroupSchema(BaseModel):
|
|
title: str
|
|
links: list[NavFooterLinkSchema] = []
|
|
|
|
|
|
class NavigationSchema(BaseModel):
|
|
header: list[NavLinkSchema] = []
|
|
footer: list[NavFooterGroupSchema] = []
|