Skip to content

Code generation multiple output files not working for every endpoint #5122

@pastinepolenta

Description

@pastinepolenta

Config as per documentation:

const config: ConfigFile = {
  schemaFile: 'https://petstore3.swagger.io/api/v3/openapi.json',
  apiFile: './src/store/emptyApi.ts',
  outputFiles: {
    './src/store/user.ts': {
      filterEndpoints: [/user/i],
    },
    './src/store/store.ts': {
      filterEndpoints: [/store/i],
    },
    './src/store/pet.ts': {
      filterEndpoints: [/pet/i],
    },
  },
}

Note that instead of using /order I would like to use the path /store (which contains order and inventory in the demo).

In this case the endpoints for /store are not generated (user and pet works)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions