ng-openapi-gen icon indicating copy to clipboard operation
ng-openapi-gen copied to clipboard

NgOpenApiGen class to be extendable to create other/custom templates

Open ak99372 opened this issue 2 years ago • 1 comments

Can we make the write method protected instead of private so the NgOpenApiGen can be extended with additional custom outputs/templates. Something like this:

export class CustomGen extends NgOpenApiGen {
	generate(): void {
		super.generate();
		this.write('custom', {...} , 'custom');
	}
}

write is private so above doesn't transpile.

ak99372 avatar Nov 03 '22 23:11 ak99372

Sorry, I'm having little to no time to dedicate to this project. If you make a PR, I'll try to include it in the next release.

luisfpg avatar Dec 19 '22 13:12 luisfpg