fern-api / fern

Input OpenAPI. Output SDKs and Docs.
https://buildwithfern.com
Apache License 2.0
2.69k stars 152 forks source link

Generator deletes everything in the output path #2729

Open Swimburger opened 1 year ago

Swimburger commented 1 year ago

Describe the Bug

We store our spec at the root of the repo, so we want to use this configuration for generators.yml.

default-group: local
groups:
  local:
    generators:
      - name: fernapi/fern-openapi
        version: 0.0.28
        config:
          format: yaml
        output:
          location: local-file-system
          path: ..

Or

          path: ../openapi.yml

Issues:

Information to Reproduce

CLI Version

0.15.0-rc63

Generator Version

      - name: fernapi/fern-openapi
        version: 0.0.28
dannysheridan commented 1 day ago

In development by @ajkpersonal in https://github.com/fern-api/fern/pull/5278