start making optional attributes look better in redoc

This commit is contained in:
Laura Klünder 2023-12-03 23:27:20 +01:00
parent c8ec578045
commit ea335a8fe8
2 changed files with 21 additions and 8 deletions

View file

@ -15,8 +15,15 @@ GeometryStylesSchema = Annotated[
APIField(description="mapping with a color for each feature type")
]
EditorID = Union[
Annotated[PositiveInt, APIField(title="an existing object that might have been modified in this changeset")],
Annotated[str, APIField(pattern="^c:[0-9]+$", title="an object that was created in this changeset")],
Annotated[PositiveInt, APIField(
title="existing object",
description="ID of an existing object that might have been modified in this changeset"
)],
Annotated[str, APIField(
pattern="^c:[0-9]+$",
title="created object",
description="id of an object that was created in this changeset"
)],
]
EditorGeometriesUpdateCacheKeyElem = Annotated[
tuple[