Skip to content

Schema generation for type with a generic parameter triggers Generated json schema have more than one definition #2342

@altoblond

Description

@altoblond

Hello,
I have an issue with the lib and generic types.

Steps to reproduce:

generate schema for a file containing this type

export type MyType<T extends string> = { a: string; b: T };

results in:

Generated json schema have more than one definition:
  - "src/request.schema.json"
Validation is compromised. Exclude unwanted types with @internal tsDoc.

Could you please explain what I am doing wrong?

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