mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
remove params.docs.mode
field; fix params.docs.path
default value
This commit is contained in:
@@ -37,18 +37,13 @@ class Docs(HyperglassModel):
|
|||||||
"""Validation model for params.docs."""
|
"""Validation model for params.docs."""
|
||||||
|
|
||||||
enable: bool = Field(True, title="Enable", description="Enable or disable API documentation.")
|
enable: bool = Field(True, title="Enable", description="Enable or disable API documentation.")
|
||||||
mode: DocsMode = Field(
|
|
||||||
"redoc",
|
|
||||||
title="Docs Mode",
|
|
||||||
description="OpenAPI UI library to use for the hyperglass API docs. Currently, the options are [Swagger UI](/fixme) and [Redoc](/fixme).",
|
|
||||||
)
|
|
||||||
base_url: HttpUrl = Field(
|
base_url: HttpUrl = Field(
|
||||||
"https://lg.example.net",
|
"https://lg.example.net",
|
||||||
title="Base URL",
|
title="Base URL",
|
||||||
description="Base URL used in request samples.",
|
description="Base URL used in request samples.",
|
||||||
)
|
)
|
||||||
path: AnyUri = Field(
|
path: AnyUri = Field(
|
||||||
"/docs",
|
"/api/docs",
|
||||||
title="URI",
|
title="URI",
|
||||||
description="HTTP URI/path where API documentation can be accessed.",
|
description="HTTP URI/path where API documentation can be accessed.",
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user