The parser attempts to deserialize transaction data as customer data, failing when transaction-specific status values don't exist in the CustomerEntityStatus enum.
Additional Context
The schema also defines PaginatedCustomerEnvelope (which correctly uses CustomerEntity). The generator may be incorrectly reusing or caching the entity type across similar paginated envelope structures.
sed -i '''s/from ..models.customer_entity import CustomerEntity/from ..models.transaction_entity import TransactionEntity/g'"$FILE"
sed -i '''s/list\[CustomerEntity\]/list[TransactionEntity]/g'"$FILE"
sed -i '''s/CustomerEntity\.from_dict/TransactionEntity.from_dict/g'"$FILE"
Reproduction
The issue appears when:
Multiple paginated envelopes are defined using allOf with shared base schemas
Each envelope should use different entity types in the data array
The generator confuses the entity types between envelopes
Activity