Skip to content

Commit 2d002ac

Browse files
committed
test(platform-objects): the credential-param sweep skips boolean toggles about a password
Claude-Session: https://claude.ai/code/session_01G3YZBh5FVysqzzALckNTWy Co-authored-by: Claude <noreply@anthropic.com>
1 parent 6de8bc9 commit 2d002ac

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/platform-objects/src/platform-objects.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ describe('@objectstack/platform-objects', () => {
139139
if (typeof objectName !== 'string') continue;
140140
for (const action of actionsOf(object)) {
141141
for (const param of action.params ?? []) {
142-
if (!param.name || !credential.test(param.name)) continue;
142+
// A boolean toggle about a password (`mustChangePassword`) is no credential.
143+
if (!param.name || !credential.test(param.name) || param.type === 'boolean') continue;
143144
const key = `${objectName}.${action.name}#${param.name}`;
144145
seen.push(key);
145146
if (param.type !== 'password') offenders.push(`${key}: '${String(param.type)}'`);

0 commit comments

Comments
 (0)