diff --git a/README.md b/README.md index c2a810c4..3708a335 100644 --- a/README.md +++ b/README.md @@ -215,7 +215,7 @@ You can use all of the following options with standalone version on 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 diff --git a/src/services/models/Schema.ts b/src/services/models/Schema.ts index 7d99c437..ad13aa12 100644 --- a/src/services/models/Schema.ts +++ b/src/services/models/Schema.ts @@ -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