Skip to content

[Permissions] Schema checking gives unrelated errors #3185

@Jackenmen

Description

@Jackenmen

Command bugs

Command name

[p]permissions acl setglobal/setserver/updateglobal/updateserver

What cog is this command from?

Permissions

What were you expecting to happen?

Either get error about incorrect type of key or have Permissions automatically convert int to str.

What actually happened?

I got error "Top-level keys must be either COG or COMMAND"

How can we reproduce this issue?

  1. Create such yaml permissions file:
COMMAND:
  8:
    176070082584248320: true
  1. Upload it using one of the commands: [p]permissions acl setglobal/setserver/updateglobal/updateserver
  2. See error.

The above is reproduction for issue that was already fixed, but the unrelated errors can still happen for yaml file like this:

COMMAND:
  ping:
    default_but_spelt_incorrectly: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    Category: Cogs - PermissionsThis is related to the Permissions cog.Status: AcceptedWe want thisStatus: PRs WelcomeNo one is currently assigned to this issue, but we'd be grateful if anyone made a PR.Type: BugUnexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing.

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions