Skip to content

Validation error when anchor field is invalid is confusing #900

@uraniumanchor

Description

@uraniumanchor

Describe the bug

It says the event field is required instead of complaining about the anchor field being incorrect.

To Reproduce

Send a POST payload similar to the following to the interviews or ads endpoint:

{
...
"anchor": "500", // note string instead of integer
...
}

You'll get back a validation error claiming that event is required.

Expected behavior

Either it works (if it's a valid id sent as a string instead of an integer), or gives an error about the anchor field if the id is invalid for some reason.

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