forked from loafle/openapi-generator-original
use String() to convert num, update TS angular samples
This commit is contained in:
@@ -248,7 +248,7 @@ public class TypeScriptAngularClientCodegen extends AbstractTypeScriptClientCode
|
||||
}
|
||||
|
||||
// Convert path to TypeScript template string, applying URI encoding
|
||||
op.path = op.path.replaceAll("\\{(.*?)\\}", "\\$\\{encodeURIComponent($1)\\}");
|
||||
op.path = op.path.replaceAll("\\{(.*?)\\}", "\\$\\{encodeURIComponent(String($1))\\}");
|
||||
}
|
||||
|
||||
// Add additional filename information for model imports in the services
|
||||
|
||||
Reference in New Issue
Block a user