Skip to content

Bugfix: Fix path parameter code generation#2

Merged
krusche merged 1 commit intomainfrom
fix-url-generation
Dec 30, 2025
Merged

Bugfix: Fix path parameter code generation#2
krusche merged 1 commit intomainfrom
fix-url-generation

Conversation

@az108
Copy link
Copy Markdown
Collaborator

@az108 az108 commented Dec 30, 2025

Motivation and Context

While testing the Angular 21 OpenAPI generator, i noticed that URLs containing path parameters are generated with a double $ (e.g. /admin/users/$${userId}).
This results in invalid URLs at runtime, since Angular/TypeScript template literals expect exactly one ${…} interpolation.

Description

This PR fixes incorrect URL generation for path parameters in the Angular21Generator.

Previously, the generator reintroduced a template literal interpolation (${…}) even though the base generator already provided one, leading to an extra $ in the final output.

@az108 az108 self-assigned this Dec 30, 2025
@az108 az108 changed the title fix double $$ generation Bugfix: Fix path parameter code generation Dec 30, 2025
@krusche krusche merged commit 46896a5 into main Dec 30, 2025
3 checks passed
@krusche krusche deleted the fix-url-generation branch December 30, 2025 18:22
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