Skip to content

Commit 5736b0d

Browse files
fix(GroupProfile): restore custom group-profile attribute extensibility
GroupProfile lost its extensibility after 6.6.0 (#365): because it is not marked x-okta-extensible, ObjectSerializer strips custom group-profile attributes (those added via the Schemas API, e.g. an org-chart id) on both serialize and deserialize, so they never reach Okta on writes and are dropped on reads. Add GroupProfile to the force-extensible list in scripts/fixSpec.cjs — matching UserProfile and OktaUserGroupProfile, which remain extensible — and regenerate. This restores the typed index signature and `static readonly isExtensible = true` so custom attributes round-trip again. Refs #238, okta/okta-sdk-java#1642.
1 parent 92560f9 commit 5736b0d

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

scripts/fixSpec.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ function fixExtensibleSchemas(spec) {
505505
// Schemas to add `x-okta-extensible`
506506
const schemasToForceExtensible = [
507507
'UserProfile',
508+
'GroupProfile',
508509
];
509510

510511
for (const schemaKey in spec.components.schemas) {

src/generated/models/GroupProfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,4 @@ GroupProfile.attributeTypeMap = [
7575
'format': ''
7676
}
7777
];
78+
GroupProfile.isExtensible = true;

src/types/generated/models/GroupProfile.d.ts

Lines changed: 7 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)