Skip to content

Bug: TeamOrganization company and email may be null #31

Closed
@brock-greman-driscolls

Description

@brock-greman-driscolls

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Rest APIbugSomething isn't workingschemaschema related

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions