|
Hoping to get some clarity on this, the preset suffixes such as Body, Params and Request are what im trying to get rid of but couldn't find anything clear in the docs and Discussions tab. If there is an answer i missed or its an OpenAPI thing please let me know! |
Answered by
pick7
Jul 26, 2026
Replies: 1 comment
|
For the You can set the component suffixes to an empty string: export default {
petstore: {
output: {
// ...
override: {
components: {
parameters: { suffix: '' },
requestBodies: { suffix: '' },
responses: { suffix: '' },
// schemas is separate; only set this if you also want to affect component schema names
// schemas: { suffix: '' },
},
},
},
},
};A couple of caveats:
Example: operationName: (operation, route, verb) => {
return [operation.operationId!, operation.operationId!];
}So: no separate "zod suffix" switch is needed for |
0 replies
Answer selected by
melloware
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For the
Body/Params/ similar generated type suffixes, the relevant option is usuallyoverride.components, notoverride.zod.You can set the component suffixes to an empty string:
A couple of caveats: