Bug Report Checklist
Description
When generating typescript clients (and probably other clients) the URL is incorrectly determined to be absolute, in case the url has "-", "@", "~", "." in it.
openapi-generator version
7.19.0, 7.20.0-SNAPSHOT
OpenAPI declaration file content or url
openapi: 3.0.1
info:
title: OpenAPI Petstore
description: "sample spec"
license:
name: Apache-2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
version: 1.0.0
servers:
- url: /api-v3
tags: []
paths: {}
components:
schemas: {}
securitySchemes: {}
Generation Details
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
-i test.yaml \
-g typescript-angular \
-o ./typescript-angular
Steps to reproduce
Generate a typescript-angular, open api.base.service.ts and check the protected basePath = "{{{baseUrl}}}"
Related issues/PRs
Suggest a fix
Update Regex in URLPathUtils#URLPathUtils to handle the above mentioned symbols.