start making optional attributes look better in redoc
This commit is contained in:
parent
c8ec578045
commit
ea335a8fe8
2 changed files with 21 additions and 8 deletions
|
@ -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[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue