openapi-merger icon indicating copy to clipboard operation
openapi-merger copied to clipboard

Duplicate components generated

Open braco opened this issue 4 years ago • 0 comments

If we have a spec like this:

components:
  schemas:
    FooBar:
      $ref: "schemas/Foo/Bar.yml"

this package will generate duplicate schemas: FooBar and Bar. It seems like the correct behavior would be deferring to the chosen name FooBar and not creating Bar, especially since you're dropping folder structure.

Excellent start to this package by the way! I tried about 20 different OAPI generating frameworks today.

braco avatar Oct 13 '21 02:10 braco