Skip to content

Add option to remove URL from data types #2143

Open
@douglasg14b

Description

@douglasg14b

Description

A difference between earlier versions (0.5x.xx) and now is that data types now have a required url property. This muddies up the data types a bit, especially when these types are consumed by SDK consumers in some manner.

Is there an option to omit these?

For example:

export type CreateAudioAliasData = {
    path: {
        alias: string;
        audioId: string;
    };
};

and now:

export type CreateAudioAliasData = {
    body?: never;
    path: {
        alias: string;
        audioId: string;
    };
    query?: never;
    url: '/api/v1/audio/{audioId}/alias/{alias}';
};

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