diff --git a/README.md b/README.md index 11f2cf99..57e419fb 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ [![Build Status](https://travis-ci.org/Rebilly/ReDoc.svg?branch=master)](https://travis-ci.org/Rebilly/ReDoc) [![Coverage Status](https://coveralls.io/repos/Rebilly/ReDoc/badge.svg?branch=master&service=github)](https://coveralls.io/github/Rebilly/ReDoc?branch=master) [![Tested on APIs.guru](http://api.apis.guru/badges/tested_on.svg)](https://APIs.guru) [![dependencies Status](https://david-dm.org/Rebilly/ReDoc/status.svg)](https://david-dm.org/Rebilly/ReDoc) [![devDependencies Status](https://david-dm.org/Rebilly/ReDoc/dev-status.svg)](https://david-dm.org/Rebilly/ReDoc#info=devDependencies) [![Stories in Ready](https://badge.waffle.io/Rebilly/ReDoc.png?label=ready&title=Ready)](https://waffle.io/Rebilly/ReDoc) +[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/Rebilly/redoc.svg)](http://isitmaintained.com/project/Rebilly/redoc "Average time to resolve an issue") [![Percentage of issues still open](http://isitmaintained.com/badge/open/REBILLY/REDOC.svg)](http://isitmaintained.com/project/REBILLY/REDOC "Percentage of issues still open") + [![npm](http://img.shields.io/npm/v/redoc.svg)](https://www.npmjs.com/package/redoc) [![Bower](http://img.shields.io/bower/v/redoc.svg)](http://bower.io/) [![License](https://img.shields.io/npm/l/redoc.svg)](https://github.com/Rebilly/ReDoc/blob/master/LICENSE) [![Browser Compatibility](https://saucelabs.com/browser-matrix/redoc.svg)](https://saucelabs.com/u/redoc) diff --git a/lib/components/ApiInfo/api-info.html b/lib/components/ApiInfo/api-info.html index 19d5924b..b13a3b75 100644 --- a/lib/components/ApiInfo/api-info.html +++ b/lib/components/ApiInfo/api-info.html @@ -1,5 +1,5 @@
-

{{info.title}} ({{info.version}})

+

{{info.title}} ({{info.version}})

Download OpenAPI (fka Swagger) specification: Download diff --git a/lib/components/JsonSchema/_json-schema-common.scss b/lib/components/JsonSchema/_json-schema-common.scss index bc4d44d3..dcdf57bb 100644 --- a/lib/components/JsonSchema/_json-schema-common.scss +++ b/lib/components/JsonSchema/_json-schema-common.scss @@ -60,23 +60,27 @@ $sub-schema-offset: ($bullet-size / 2) + $bullet-margin; font-weight: bold; } -.param-type { +.param-type, .param-array-format { vertical-align: middle; line-height: $param-name-height; color: rgba($black, 0.4); font-size: 0.929em; +} +.param-type { font-weight: normal; + &.array::before, &.tuple::before { + color: $black; + font-weight: $base-font-weight; + .param-collection-format-multi + & { + content: none; + } + } &.array::before { content: $array-text; - color: $black; - font-weight: $base-font-weight; } - &.tuple::before { content: $tuple-text; - color: $black; - font-weight: $base-font-weight; } &.with-hint { @@ -193,6 +197,19 @@ $sub-schema-offset: ($bullet-size / 2) + $bullet-margin; } } +.param-enum { + color: $text-color; + font-size: 0.95em; + + &::before { + content: 'Valid values: '; + } + + .param-type.array ~ &::before { + content: 'Valid items values: '; + } +} + .param-pattern { color: $nullable-color; white-space: nowrap; diff --git a/lib/components/JsonSchema/json-schema.html b/lib/components/JsonSchema/json-schema.html index 295f2d1a..028077a4 100644 --- a/lib/components/JsonSchema/json-schema.html +++ b/lib/components/JsonSchema/json-schema.html @@ -17,7 +17,7 @@