Skip to content

Dumper v3 - #108

Open
lm-sousa wants to merge 3 commits into
ts6from
dumper-v3
Open

Dumper v3#108
lm-sousa wants to merge 3 commits into
ts6from
dumper-v3

Conversation

@lm-sousa

Copy link
Copy Markdown
Member

No description provided.

Copilot AI lite review requested due to automatic review settings August 28, 2026 20:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@sonarqubecloud

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9cfc957e75

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

fs.writeSync(outputFile, `export const ${e.name} = {\n`);
e.entries.forEach((entry) => {
fs.writeSync(outputFile, ` ${entry}: "${entry.toLowerCase()}",\n`);
fs.writeSync(outputFile, ` ${entry}: "${entry}",\n`);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Honor enum display strings in generated values

When a v3 specification uses the supported value("STATIC", "static") form, JsonSerializer.writeEnumDef() emits both value and display, but convertEnum() discards display, so this line now generates STATIC: "STATIC". The Java bridge returns getDisplay() for enum attributes (WeaverGen2/src/org/lara/weavergen2/emit/JoinPointTypeRenderer.java:143-150), meaning the generated TypeScript type permits only "STATIC" while the runtime yields "static", breaking comparisons and the declared return type. Carry the display string through conversion and use it for the generated value, falling back to the programmatic value when absent.

Useful? React with 👍 / 👎.

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