Skip to content

broken local $ref #715

Closed
Closed
@kresli

Description

@kresli

Using $ref somehow breaks generated types. I'm new with openapi and with the library so my apologies if fault is mine but following setup will produce wrong types 🤔
https://gitpod.io#snapshot/50d6481d-7417-4c11-97dd-b84e84f71af5

run yarn generate
and check schema.ts

I spent hours on the and schema looks ok. Whats strange to me is following output

export interface external {
  "components/current.yml": {
    paths: {};
    components: {};
    operations: {};
  };
  "paths/current.yml": {
    paths: {};
    components: {};
    operations: {};
  };
}

where the components interface accessing non existing path

export interface components {
  readonly schemas: {
    readonly full_user: external["components/current.yml"]["full_user"];
  };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions