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

Respnose lose schema properties #172

Open
birbird opened this issue Oct 30, 2018 · 0 comments
Open

Respnose lose schema properties #172

birbird opened this issue Oct 30, 2018 · 0 comments

Comments

@birbird
Copy link

birbird commented Oct 30, 2018

It seems the response section only shows the type field, lose all others. The properties description is important.
response

The code from https://github.com/sourcey/spectacle/blob/master/app/views/partials/swagger/responses.hbs#L26

        {{#each responses}}
          {{#schemaReferenceContext $ref}}
            <div class="prop-row prop-group">
              <div class="prop-name">
                {{! Use response-code and http-name as text}}
                <div class="prop-title">{{@key}} {{httpResponseCode @key}}</div>
                {{#if schema}}
                  <div class="prop-ref">{{>json-schema/reference schema}}</div>
                  <!-- <span class="swagger-global"></span> <span class="json-schema-reference"><a href="{{$ref}}">{{$ref}}</a></span> -->
                {{/if}}
              </div>
              <div class="prop-value">
                {{md description}}
              </div>
            </div>
            {{#if schema.type}}
              <div class="prop-row prop-inner">
                <div class="prop-name">type</div>
                <div class="prop-value">{{>json-schema/datatype schema}}</div>
              </div>
            {{/if}}
          {{/schemaReferenceContext}}
        {{/each}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant