Community Note
- Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request.
- Please do not leave +1 or me too comments; they generate extra noise for issue followers.
Python Version & Okta SDK Version(s)
Python 3.13.2
okta 3.4.5
Affected Class/Method(s)
okta.models.authenticator_key_tac_all_of_provider.AuthenticatorKeyTacAllOfProvider.from_dict
Customer Information
Not applicable; this is a sanitized open-source reproducer.
Code Snippet
from okta.models.authenticator_key_tac_all_of_provider import (
AuthenticatorKeyTacAllOfProvider,
)
AuthenticatorKeyTacAllOfProvider.from_dict({"type": "TAC"})
Debug Output / Traceback
pydantic_core._pydantic_core.ValidationError: 1 validation error for AuthenticatorKeyTacAllOfProvider
type
Value error, must be one of enum values ('tac') [type=value_error, input_value='TAC', input_type=str]
Expected Behavior
The model accepts the uppercase TAC provider type returned by the Okta Authenticators API.
Actual Behavior
The generated validator permits only lowercase tac, so deserialization raises a ValidationError.
Steps to reproduce
- Install
okta==3.4.5.
- Run the code snippet above.
References
The generated validator currently declares only lowercase tac:
https://github.com/okta/okta-sdk-python/blob/v3.4.5/okta/models/authenticator_key_tac_all_of_provider.py#L48-L56
Downstream compatibility fix:
cartography-cncf/cartography#3258
Community Note
Python Version & Okta SDK Version(s)
Python 3.13.2
okta 3.4.5
Affected Class/Method(s)
okta.models.authenticator_key_tac_all_of_provider.AuthenticatorKeyTacAllOfProvider.from_dictCustomer Information
Not applicable; this is a sanitized open-source reproducer.
Code Snippet
Debug Output / Traceback
Expected Behavior
The model accepts the uppercase
TACprovider type returned by the Okta Authenticators API.Actual Behavior
The generated validator permits only lowercase
tac, so deserialization raises aValidationError.Steps to reproduce
okta==3.4.5.References
The generated validator currently declares only lowercase
tac:https://github.com/okta/okta-sdk-python/blob/v3.4.5/okta/models/authenticator_key_tac_all_of_provider.py#L48-L56
Downstream compatibility fix:
cartography-cncf/cartography#3258