Commit 172358f8 authored by Jo Sama's avatar Jo Sama 😱
Browse files

Merge branch 'fix-optional-fields-in-ubw-api' into 'master'

UserStatus and dateTo might be optional

See merge request !57
parents 8ca0cabc 3bec89c3
Pipeline #48102 passed with stage
in 2 minutes and 18 seconds
......@@ -566,7 +566,7 @@ class RoleAndCompany(BaseModel):
class UserStatus(BaseModel):
date_from: datetime.datetime
date_to: datetime.datetime
date_to: typing.Optional[datetime.datetime]
status: str
class Config:
......@@ -595,7 +595,7 @@ class Bruker(BaseModel):
user_name: str
description: str
default_logon_company: str
user_status: UserStatus
user_status: typing.Optional[UserStatus]
security: typing.Optional[Security]
language_code: typing.Optional[str]
usage: typing.Optional[Usage]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment