Skip to content

For long enums, the response always claims to have duplicates but there aren't any #78

@SickOfStudio

Description

@SickOfStudio

I have an enum of musical genres with approximately 200 entries:
I get this error:
server_mock | [INFO ] < [400] {"errors":["schema is invalid: data.properties['musicGenre'].enum should NOT have duplicate items (items ## 112 and 150 are identical)"]} (9 ms)

When reducing the number of items, the error is gone:
server_mock | [INFO ] > [OPTIONS] /users/78/preferences
server_mock | [INFO ] > [POST] /users/78/preferences
server_mock | [INFO ] < [201] null (173 ms)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions