Closed
Description
Any time I try to access the parsed_data
field on various responses, I receive a pydantic validation error, I believe because the org data is missing a value for company
and email
. These values are null in the REST API response for orgs/<org_name>
.
For example:
test_team_resp = ghkapi.rest.teams.get_by_name(org=ORG_NAME, team_slug="DevSecOps")
test_team = resp.parsed_data
Gives:
pydantic.error_wrappers.ValidationError: 2 validation errors for ParsingModel[TeamFull]
__root__ -> organization -> company
none is not an allowed value (type=type_error.none.not_allowed)
__root__ -> organization -> email
none is not an allowed value (type=type_error.none.not_allowed)