Commit a35bcf9
authored
Remove minLength validation for the secondEmail attribute from the OpenAPI spec. (#520)
fix: Remove minLength constraint from UserProfile.secondEmail to allow empty strings
The Okta API returns empty strings ("") for users without a secondary email,
but the secondEmail field had a minLength: 5 constraint that caused Pydantic
validation to fail during deserialization of valid API responses.
Changes:
- openapi/api.yaml: Remove minLength: 5 from UserProfile.secondEmail
- okta/models/user_profile.py: Remove min_length=5 from second_email field
The upstream OpenAPI spec fix was approved and merged.
This aligns the SDK with the corrected spec.
Testing:
Verified on live org by fetching a user with secondEmail set to "" (empty string).
The user deserializes successfully without validation errors.
Fixes: OKTA-1146937
Refs: #477, #4811 parent 69fb43b commit a35bcf9
2 files changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
192 | | - | |
193 | | - | |
| 191 | + | |
194 | 192 | | |
195 | 193 | | |
196 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82223 | 82223 | | |
82224 | 82224 | | |
82225 | 82225 | | |
82226 | | - | |
82227 | 82226 | | |
82228 | 82227 | | |
82229 | 82228 | | |
| |||
0 commit comments