Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java Generics creating special characters in file names when generating typescript files #1137

Closed
smasala opened this issue Sep 28, 2018 · 0 comments

Comments

@smasala
Copy link
Contributor

smasala commented Sep 28, 2018

Description

When generating typescript files from Java classes that use generics, filenames are created with special characters. These characters themselves are not a problem, however they are not identical to the import declared in another generated file.

class MyClass<MyGenericType> ->generates -> MyClass«MyGenericType».ts.

SomeOtherGeneratedFile.ts -> imports -> import { MyClass } from 'MyClass-MyGenericType.ts';

openapi-generator version

latest

OpenAPI declaration file content or url
"MyClass«MyGeneric»": {
	"type": "object",
	"properties": {
		"messages": {
			"type": "array",
			"description": "list of additional messages to inform the client about tasks and activities performed and stuff processed during the execution",
			"items": {
				"$ref": "#/definitions/Message"
			}
		},
		"payload": {
			"description": "real data payload to be sent across as part of the envelope",
			"$ref": "#/definitions/MyGeneric"
		}
	},
	"title": "Envelope«MyGeneric»",
	"description": "Envelope holding metadata around the payload to be delivered from an endpoint"
}
Steps to reproduce

Java to Typescript generation

Suggest a fix/enhancement

A single and consistent convention.

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

No branches or pull requests

1 participant