Skip to content

Conversation

k1rd3rf
Copy link
Contributor

@k1rd3rf k1rd3rf commented Sep 10, 2025

This test will reproduce the issues in #1366.

The snapshot is based on based on version 13.2.7.

Copy link

changeset-bot bot commented Sep 10, 2025

🦋 Changeset detected

Latest commit: 3db383c

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

This PR includes changesets to release 1 package
Name Type
swagger-typescript-api Patch

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

@k1rd3rf
Copy link
Contributor Author

k1rd3rf commented Sep 10, 2025

image

@k1rd3rf
Copy link
Contributor Author

k1rd3rf commented Sep 10, 2025

Seems to be #1326 that introduced this

@smorimoto smorimoto force-pushed the feature/add-test-for-modular branch from 523369f to 22b4060 Compare October 3, 2025 23:44
@smorimoto smorimoto changed the title Add test that generates content for modular Fix modular template to always generate class property syntax Oct 3, 2025
@smorimoto smorimoto linked an issue Oct 3, 2025 that may be closed by this pull request
@smorimoto smorimoto added the bug Something isn't working label Oct 3, 2025
The modular template was incorrectly using object method syntax (`:` and
`,`) when route.namespace was present, introduced by PR acacode#1326. This
caused TypeScript syntax errors in generated code.

The modular template should always generate class properties with arrow
functions (`=` and `;`), regardless of namespace presence.

This resolves the issue reported in acacode#1366 where version 13.2.8 generated
invalid TypeScript code with modular templates.

Signed-off-by: Sora Morimoto <[email protected]>
@smorimoto smorimoto force-pushed the feature/add-test-for-modular branch from 22b4060 to 3db383c Compare October 3, 2025 23:45
@smorimoto
Copy link
Collaborator

@codex review

@smorimoto smorimoto merged commit d987aee into acacode:main Oct 3, 2025
4 checks passed
@github-actions github-actions bot mentioned this pull request Oct 3, 2025
Copy link

Codex Review: Didn't find any major issues. Bravo.

ℹ️ 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Version 13.2.8 generates incorrect TS
2 participants