Skip to content

Is possible ignore the changes in the line of OpenAPI spec version ? #1213

Answered by MedinaGitHub
MedinaGitHub asked this question in Q&A
Discussion options

You must be logged in to vote

guys, I found the "header" method and it works for my needs. thanks!

  petstore: {
    output: {
      override: {
        header: (info: InfoObject): String[] => [
          `Generated by orval 🍺`,
          `Do not edit manually.`,
          ...(info.title ? [info.title] : []),
          ...(info.description ? [info.description] : []),
          ...(info.version ? [`OpenAPI spec version: ${info.version}`] : []),
        ],
      },
    },

},

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@melloware
Comment options

@soartec-lab
Comment options

@MedinaGitHub
Comment options

@MedinaGitHub
Comment options

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
3 participants