anomaly / anomaly/gallagher

Incorrect attribute definition `access_groups` in `CardholderDetail` as `[list]`

オープン
#103 コメント 0 件 リアクション 0 件 担当者 1 名 @devraj が担当を希望しています GitHub で見る
bug
主要言語
Python
スター
17
フォーク
2
PR マージ指標
30日以内にマージされた PR はありません

説明

**Describe the bug**
```python
class CardholderDetail(
AppBaseModel,
IdentityMixin,
HrefMixin,
):
"""Displays a table of cardholders

Gallagher command centre offers a summary of all the cardholders
provisioned on the system. This command presents a summary table
with the aim of using the identifier to get detailed information.

"""

# snip
personal_data_definitions: list[CardholderPersonalDataDefinition] = []
cards: list[CardholderCardSummary] = []
access_groups: Optional[list] = None
```

`access_groups: Optional[list] = None` parses `access_groups` assigned to the Cardholder as a `dict` it should ideally parse as a

**To Reproduce**
1. Fetch a cardholder
2. Attempt to access `cardholder.access_groups`
3. You get a `dict`

**Expected behavior**
1. I expect to access a `AccessGroupSummary`

**Screenshots**
NA

**Desktop (please complete the following information):**
NA

**Smartphone (please complete the following information):**
NA

**Additional context**
NA

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。