Skip to content

Commit

Permalink
remove params.docs.mode field; fix params.docs.path default value
Browse files Browse the repository at this point in the history
  • Loading branch information
thatmattlove committed Apr 2, 2024
1 parent d78c8da commit 7c398fd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions hyperglass/models/config/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
)
Expand Down

0 comments on commit 7c398fd

Please sign in to comment.