[docs]classSessionData(DOTModel):name:strdescription:str|None=Nonetag:list[str]|None=Noneowner:str|None=Noneshared:str="True"index:str|None=Nonemodel_config={"json_schema_extra":{"examples":[{"name":"this is an objective","description":"objectively objecting the objectives","tag":["subsurface"],"owner":"John Doe","shared":"True","index":"0",}]}}
[docs]@field_validator("shared")@classmethoddefcheck_shared(cls,v:str)->str:allowed_values=["True","False",]ifvnotinallowed_values:raiseValueError("must be None or in True/False")returnv