Skip to content

Conversation

@AllieJonsson
Copy link
Contributor

Status

READY

Description

Fixes #2010

Copy link
Member

@soartec-lab soartec-lab left a comment

Choose a reason for hiding this comment

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

@AllieJonsson
Thank you in advance. I added several comments.

if (isRef[0]) {
return values[0];
}
const getEnumImplementation = (
Copy link
Member

Choose a reason for hiding this comment

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

Since we want to consolidate enum definitions into one file, getEnumImplementation, getEnumImplementation, and getCombineEnumValue should be moved to enum.ts 👍

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

@AllieJonsson
Can we move getCombineEnumValue as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, I forgot it

Copy link
Member

Choose a reason for hiding this comment

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

It's Okey!

@soartec-lab soartec-lab added bug Something isn't working msw MSW related issues labels Apr 23, 2025
@soartec-lab soartec-lab self-assigned this Apr 23, 2025
@soartec-lab soartec-lab added this to the 7.9.0 milestone Apr 23, 2025
@AllieJonsson
Copy link
Contributor Author

Well crap, this build error is probably difficult to fix, Im not sure we have the data we need at the point we need it... Ill look into it later today


let enumValue = `[${joindEnumValues}]`;
if (context.output.override.enumGenerationType === EnumGeneration.ENUM) {
if (item.isRef || existingReferencedProperties.length === 0) {
Copy link
Member

Choose a reason for hiding this comment

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

@AllieJonsson

so type annotations are no longer possible.
Is this a temporary fix? Or will it become permanent?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is temporary, I will mark this as a draft as there are more issues that needs to be fixed in #2065

@AllieJonsson AllieJonsson marked this pull request as draft April 29, 2025 04:32
@melloware melloware modified the milestones: 7.9.0, 7.10.0 Apr 29, 2025
@melloware melloware modified the milestones: 7.10.0, 7.11.0 Jun 12, 2025
@melloware melloware modified the milestones: 7.11.0, 7.12.0 Aug 1, 2025
@melloware melloware modified the milestones: 7.12.0, 7.13.0, 7.14.0 Sep 27, 2025
@melloware melloware modified the milestones: 7.14.0, FUTURE Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working msw MSW related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add option to generate union instead of enum

3 participants