Skip to content

UpdateDataAttributeRequestBody incorrectly typed #514

@JordhanMadec

Description

@JordhanMadec

Currently, it is typed as follow, which is too permissive :

export type UpdateDataAttributeRequestBody = {
    options: {
        value?: string | undefined;
    }[];
} | unknown;

In order to correctly match API specifications, it should look more like this :

export type UpdateDataAttributeRequestBody = {
    archived?: boolean;
    description?: string;
    messenger_writable?: boolean;
    options?: {
        value?: string | undefined;
    }[];
};

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