Skip to content

User command error on return value validation #6

@Nokitoo

Description

@Nokitoo
export class PlayerModule {
    async list(state: mage.core.IState) {
        const players = await Player.list(state, {});
        console.log(players);

        return players;
    }
}

The validation of the return value players makes classValidator.validate crash, and I don't know where it could come from.

I don't think it comes from my topic because I can correctly create data with it using @Acl and validation decorators.

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