1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

16 lines
421 B
Python
Raw Normal View History

2020-01-20 10:19:27 -07:00
# Third Party Imports
from pydantic import StrictBool
from pydantic import constr
# Project Imports
from hyperglass.configuration.models._utils import AnyUri
from hyperglass.configuration.models._utils import HyperglassModel
class Docs(HyperglassModel):
"""Validation model for params.general.docs."""
enable: StrictBool = True
mode: constr(regex=r"(swagger|redoc)") = "swagger"
uri: AnyUri = "/docs"