Skip to content

User command error on return value validation #6

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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