Commit 6b26150
committed
fix: Add CAA record type to DNS enum classes to support custom domain operations
This commit resolves a critical validation error that caused 5 out of 6 custom
domain API endpoints to fail when the Okta API returned CAA (Certificate Authority
Authorization) DNS records.
Problem:
- DNSRecordTypeDomains and EmailDomainDNSRecordType enums only defined CNAME and TXT
- When API returned CAA records, Pydantic validation failed during deserialization
Solution:
Added CAA record type to both enum classes:
- okta/models/dns_record_type_domains.py
- okta/models/email_domain_dns_record_type.py
Testing:
Verified with get_custom_domain() method that CAA records now deserialize correctly without validation errors.1 parent 67846b4 commit 6b26150
3 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63370 | 63370 | | |
63371 | 63371 | | |
63372 | 63372 | | |
| 63373 | + | |
63373 | 63374 | | |
63374 | 63375 | | |
63375 | 63376 | | |
| |||
64698 | 64699 | | |
64699 | 64700 | | |
64700 | 64701 | | |
| 64702 | + | |
64701 | 64703 | | |
64702 | 64704 | | |
64703 | 64705 | | |
| |||
0 commit comments