Skip to content

Conversation

jdforsythe
Copy link
Contributor

@jdforsythe jdforsythe commented Oct 10, 2024

Fixes #2839

Allows suppressing the permissive types with --suppressPermissiveTypes=true

In combination with --outputTemplate="%s", replaces the permissive types with the restrictive types using the default message name (without __Output).

@murgatroid99
Copy link
Member

This also impacts the output of the generateService* functions, because they currently use both the permissive and restrictive types. I think it might be enough to modify useNameFmter with a branch for this flag, but I'm not 100% sure.

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

Successfully merging this pull request may close these issues.

Add a flag for proto-loader-gen-types to only output the restrictive type and remove the "__Output" from the name
3 participants