Skip to content

Endpoint /officers/all on the production database returns 500 #159

Description

@jbriones1

Description

https://sfucsss.org/api/officers/all returns 500.

Our REST API does a validation check that the values here are invalid, but old entries don't conform to those. It's probably best to remove the validation check and change the model to be a union of the enum types or a string.

Error

Input should be 'president', 'vice-president', 'treasurer', 'director of resources', 'director of events', 'director of educational events', 'assistant director of events', 'director of communications', 'director of multimedia', 'director of archives', 'executive at large', 'first year representative', 'election officer', 'sfss council representative', 'frosh week chair', 'system administrator', 'webmaster' or 'social media manager' [type=enum, input_value='elections officer', input_type=str]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    Projects

    Status
    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions