Skip to content

Constant and/or Enums #3

Description

@ParadoxicalNerd

Hi, I've been tying to get my mockend server to support enums that I need for my project. As I believe that mockend does not support enums, I tried creating enums using constants but it is giving me "failed to create schema" error. The following is a snip from my .mockend.json:

{ ... "UserTypes": { "FILTER": "FILTER", "PROGRAMMER": "PROGRAMMER", "TESTER": "TESTER" }, "User": { "name": "string", "ofType": "UserTypes", "tickets": "Ticket" }, ... }

But as suspected, it does not work. Is there any way to add support for enums and/or for constants?

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions