Skip to content
Discussion options

You must be logged in to vote

For the Body / Params / similar generated type suffixes, the relevant option is usually override.components, not override.zod.

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:

  • Those suffixes help avoid name collisions, so removing them is safest when your operation/schema names are a…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by melloware
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants