forked from mirrors/thatmattlove-hyperglass
remove params.docs.mode field; fix params.docs.path default value
This commit is contained in:
parent
d78c8da129
commit
7c398fdf4f
1 changed files with 1 additions and 6 deletions
|
|
@ -37,18 +37,13 @@ class Docs(HyperglassModel):
|
|||
"""Validation model for params.docs."""
|
||||
|
||||
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(
|
||||
"https://lg.example.net",
|
||||
title="Base URL",
|
||||
description="Base URL used in request samples.",
|
||||
)
|
||||
path: AnyUri = Field(
|
||||
"/docs",
|
||||
"/api/docs",
|
||||
title="URI",
|
||||
description="HTTP URI/path where API documentation can be accessed.",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue