more api docs and tweaks for auth and updates API

This commit is contained in:
Laura Klünder 2023-12-04 13:46:32 +01:00
parent 64088759f5
commit 87ef037421
4 changed files with 89 additions and 26 deletions

View file

@ -50,10 +50,16 @@ EditorGeometriesCacheReferenceElem = Annotated[
class EditorGeometriesPropertiesSchema(Schema):
id: EditorID
type: NonEmptyStr
space: Optional[EditorID] = None
space: Union[
Annotated[EditorID, APIField(title="level")],
Annotated[None, APIField(title="null")]
] = APIField(None, title="lolala")
level: Optional[EditorID] = None
bounds: bool = False
color: Optional[str] = None
color: Union[
Annotated[str, APIField(title="color")],
Annotated[None, APIField(title="no color")]
] = None
opacity: Optional[float] = None # todo: range