Skip to content

Conversation

@SferaDev
Copy link
Owner

This is an autogenerated PR to update the OpenAPI spec with the latest merged changes.

Before merging these changes, please review the update and test it out.

@changeset-bot
Copy link

changeset-bot bot commented Sep 30, 2025

🦋 Changeset detected

Latest commit: f3c177b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
keycloak-api

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Sep 30, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
openapi-clients Error Error Nov 4, 2025 10:32pm

Comment on lines +2027 to +2028
on?: void;
["reset-on"]?: void;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
on?: void;
["reset-on"]?: void;
on?: unknown;
["reset-on"]?: unknown;

The on and reset-on properties in WorkflowRepresentation are typed as void, which means they cannot hold any meaningful data and can only be undefined.

View Details

Analysis

WorkflowRepresentation properties typed as void prevent workflow configuration

What fails: WorkflowRepresentation.on and WorkflowRepresentation["reset-on"] are typed as void instead of unknown, preventing assignment of workflow event configuration values

How to reproduce:

import { WorkflowRepresentation } from './packages/keycloak-api/src/admin/schemas';

const workflow: WorkflowRepresentation = {
  id: "test",
  on: "some-event", // TypeScript error: Type 'string' is not assignable to type 'void'
  "reset-on": ["event1", "event2"] // TypeScript error: Type 'string[]' is not assignable to type 'void'
};

Result: TypeScript compilation fails with "Type 'string' is not assignable to type 'void'" errors

Expected: Properties should accept any values since the Keycloak OpenAPI spec defines them as {} (empty object/any type), similar to how other event properties like onValues and onEventsReset are properly typed as string[]

@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from 2fffccc to 1f5e6fb Compare November 4, 2025 09:32
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from 1f5e6fb to f85c414 Compare November 4, 2025 10:33
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from f85c414 to 7a19148 Compare November 4, 2025 11:28
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from 7a19148 to 39fd35b Compare November 4, 2025 12:36
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from 39fd35b to bf2566c Compare November 4, 2025 13:35
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from bf2566c to 14bb74c Compare November 4, 2025 14:32
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from 14bb74c to 73f9b00 Compare November 4, 2025 15:32
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from 73f9b00 to a008631 Compare November 4, 2025 16:34
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from a008631 to 4154233 Compare November 4, 2025 17:29
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from 4154233 to 38c08b1 Compare November 4, 2025 18:35
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from 38c08b1 to ccc940d Compare November 4, 2025 19:27
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from ccc940d to e4043d5 Compare November 4, 2025 20:32
@SferaDev SferaDev force-pushed the openapi/keycloak-api branch from e4043d5 to cfbada3 Compare November 4, 2025 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants