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

ResponseModel doesn't show for secondary responses #1297

Closed
jamesblack opened this issue May 18, 2015 · 6 comments
Closed

ResponseModel doesn't show for secondary responses #1297

jamesblack opened this issue May 18, 2015 · 6 comments

Comments

@jamesblack
Copy link

image

In the above 405 should show a model

Path Spec

  description: Get the current logged-in user
  tags:
    - Account
  responses:
    200:
      description: User found
      schema:
        $ref: '#/definitions/DefaultError'
    405:
      description: Not logged in
      schema:
        $ref: '#/definitions/DefaultError'

Definition Spec

  DefaultError:
    type: object
    properties:
      taco:
        type: string

I saw some issues on this, but it doesn't seem to be working, I downloaded the latest code from master and it seems to still have this issue, I have also tried inlining the model, no such luck.

@webron webron added this to the v2.1 milestone May 20, 2015
@elsurudo
Copy link

Also having this issue, with inline schema definition,

@webron
Copy link
Contributor

webron commented May 26, 2015

@elsurudo - can you please check which version of swagger-ui you're using?

@ponelat
Copy link
Member

ponelat commented May 28, 2015

This is indeed broken, and is part of a refactor aiming to get the markup out of swagger-js and into swagger-ui. This is high up on our priorities and you can follow this issue...
#1248

@elsurudo although inline schemas do work in other areas (parameters for example), so more info would be appreciated.

@chenjianjx
Copy link

When can this be fixed?

@dobrovi
Copy link

dobrovi commented Dec 2, 2015

Hi.
Please note, that description for code 200 is not shown anywhere at all. Would be great to fix this too.

@fehguy fehguy modified the milestone: v2.1.3 Jan 6, 2016
@webron
Copy link
Contributor

webron commented Mar 20, 2017

Models are now fully shown for all response types, starting in version 3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants