Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not show enum data in response #69

Closed
antimatter96 opened this issue Jun 27, 2017 · 0 comments · Fixed by #112 · May be fixed by acima-credit/spectacle#3 or Ometria/spectacle#3
Closed

Does not show enum data in response #69

antimatter96 opened this issue Jun 27, 2017 · 0 comments · Fixed by #112 · May be fixed by acima-credit/spectacle#3 or Ometria/spectacle#3

Comments

@antimatter96
Copy link

antimatter96 commented Jun 27, 2017

In Response
It only shows status code and description + returned data
It does not show enums defined there only

Example:

Should show this:

string , x ∈ { "Db not working","Redis not working" }

"/aws/healthcheck": {
      "get": {
        "tags": [
          "Healthcheck"
        ],
        "summary": "Returns service status",
        "description": "Checks if our APIs are online",
        "operationId": "getStatus",
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "All services online"
          },
          "500": {
            "description": "Something is wrong",
            "schema": {
              "type": "string",
              "enum": [
                "Db not working",
                "Redis not working"
              ]
            }
          }
        }
      }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants