这是indexloc提供的服务,不要输入任何密码
Skip to content

Support a single file output option #2934

@brad-jones

Description

@brad-jones

Description

Just in the name of ease of distribution & simplicity, I want to share a single typescript file alongside my openapi.json/yaml file.

I tried doing something like this:

{
  parser: {
    hooks: {
      symbols: {
        getFilePath: (symbol) => 'file.ts'
      },
    },
  }
}

https://heyapi.dev/openapi-ts/configuration/parser#hooks-symbols

But alas that didn't really do what I thought it would.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature 🚀New feature or requestneeds info ⏳Further information is required

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions