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

[REQ] [go-server] Add option to enable unknown fields #20522

Open
moritzschmitz-oviva opened this issue Jan 22, 2025 · 0 comments · May be fixed by #20523
Open

[REQ] [go-server] Add option to enable unknown fields #20522

moritzschmitz-oviva opened this issue Jan 22, 2025 · 0 comments · May be fixed by #20523

Comments

@moritzschmitz-oviva
Copy link

Is your feature request related to a problem? Please describe.

I want to be able to allow unknown fields. The configuration is here: https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/go-server/controller-api.mustache#L596. If using any additional properties, it is not possible any more to remove this line.

Describe the solution you'd like

I would like to have an additional property for disabling disallowUnknownFields.

Describe alternatives you've considered

Manually editing the file after every generation.

@moritzschmitz-oviva moritzschmitz-oviva changed the title [REQ] [go-server] [REQ] [go-server] Add option to enable unknown fields Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant