You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(sdk): fix type mismatches causing deserialization failures from WHMCS API
WHMCS returns all DB-sourced fields as strings (PHP/MySQL PDO default).
Previous spec used strict types and complex schemas that caused Pydantic
ValidationError on every invoice/client/product response, silently
producing zero profiles.
Changes to openapi.yaml:
- ClientDetailsInfo: stripped to email + phonenumber only (removed
booleans, integers, EmailPreferences ref, customfields, users)
- InvoiceInfo: removed paymethodid (returned as int, typed as string),
changed duedate/date fields from format:date to type:string to handle
WHMCS "0000-00-00" edge case
- ProductInfo: all fields typed as string (WHMCS returns IDs as strings)
- Removed EmailPreferences, CustomFieldValue, UserCollection, UserInfo
schemas entirely — not used by consumers, caused StrictStr rejection
- ClientDetailsStats: reduced to bare additionalProperties object
Bump packageVersion to 1.0.15. Regenerate all SDK files via Docker.
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
0 commit comments