Swagger-ui: Response schema not shown

Created on 31 Jul 2017  Â·  10Comments  Â·  Source: swagger-api/swagger-ui

Swagger UI version: 3.1.1

Response schema rendering is broken. YAML file:

info:
  title: Example
  version: 1.0.0
swagger: '2.0'
paths:
  '/endpoint1':
    get:
      responses:
        '200':
          description: OK
          schema:
            type: array
            items:
              type: object
              properties:
                id:
                  type: string
  '/endpoint2':
    get:
      responses:
        '200':
          description: OK
          schema:
            type: object
            properties:
              id:
                type: string

Result:
screen shot 2017-07-31 at 11 18 07

P1 lock-bot bug 3.x

All 10 comments

referenced schema doesn't show up either

Same here

Same for me. But shema showed in previous version of editor

Editor 2
image

Editor 1
image

could dist files be rebuilt for those of us who just use them, and not building ourselves?

@weirdan sure - will update them now!

Lessons learned. Don't do releases on Fridays. 😂

And now that the dist files are in master, could a new release be published, please? Because release tarball for v3.1.2 contains dist files from v3.1.1 — so if one can't rebuild it's as broken as v3.1.1 was.

@ricardofiorani, we usually do releases on Friday - our mistake was doing it on Saturday instead 😉

@weirdan, I'll author a Github release with the release notes later today, but in the meantime you can download the .zip of commit 6b1d78c, which will be equivalent to the release tarball.

@shockey I built 3.1.2 myself where I needed it, but some package managers (like composer) supply packaged files based on the github releases/tags.

@weirdan gotcha, apologies for not packing the dist updates into the release correctly. Shouldn't happen again 😄

Was this page helpful?
0 / 5 - 0 ratings

Related issues

julienkosinski picture julienkosinski  Â·  34Comments

alexmnyc picture alexmnyc  Â·  40Comments

azamatsulaiman picture azamatsulaiman  Â·  34Comments

reginaldlouis picture reginaldlouis  Â·  43Comments

peter004 picture peter004  Â·  49Comments