chore: fix lint issue + update readme

This commit is contained in:
Roman Hotsiy 2018-10-03 11:02:13 +03:00
parent e9610e92d4
commit 3c8d6b623c
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
2 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@ You can use all of the following options with standalone version on <redoc> tag
* `hideHostname` - if set, the protocol and hostname is not shown in the operation definition.
* `expandResponses` - specify which responses to expand by default by response codes. Values should be passed as comma-separated list without spaces e.g. `expandResponses="200,201"`. Special value `"all"` expands all responses by default. Be careful: this option can slow-down documentation rendering time.
* `requiredPropsFirst` - show required properties first ordered in the same order as in `required` array.
* `showExtensions` - show vendor extensions ("x-" fields). Extensions used by ReDoc are ignored.
* `showExtensions` - show vendor extensions ("x-" fields). Extensions used by ReDoc are ignored. Can be boolean or an array of `string` with names of extensions to display
* `noAutoAuth` - do not inject Authentication section automatically
* `pathInMiddlePanel` - show path link and HTTP verb in the middle panel instead of the right one
* `hideLoading` - do not show loading animation. Useful for small docs

View File

@ -9,12 +9,12 @@ import { FieldModel } from './Field';
import { MergedOpenAPISchema } from '../';
import {
detectType,
extractExtensions,
humanizeConstraints,
isNamedDefinition,
isPrimitiveType,
JsonPointer,
sortByRequired,
extractExtensions,
} from '../../utils/';
// TODO: refactor this model, maybe use getters instead of copying all the values