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

Some generators don't support formatting #145

Open
ColinEberhardt opened this issue Dec 19, 2022 · 0 comments
Open

Some generators don't support formatting #145

ColinEberhardt opened this issue Dec 19, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@ColinEberhardt
Copy link
Collaborator

Currently OpenAPI Forge is a node-based CLI tool. There isn't a conventional or mature way to format C# code from node / JS applications.

The following is a retired prettier plugin that might have been helpful:

https://github.com/warrenseine/prettier-plugin-csharp

The solution will probably be to run dotnet format over the generated code, however, this will impact openapi-forge-web which runs in an AWS Lambda with a node environment.

A short-term fix is to simply manually format the C# handlebars templates to provide a decent output.

@ColinEberhardt ColinEberhardt added bug Something isn't working CSharp labels Dec 19, 2022
@ColinEberhardt ColinEberhardt changed the title C# generator doesn't support formatting Some generators don't support formatting Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant