mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-07 13:44:54 +03:00
npm run prettier
This commit is contained in:
parent
196a2a0912
commit
58b549763c
|
@ -28,7 +28,10 @@ export class SpecStore {
|
|||
this.externalDocs = this.parser.spec.externalDocs;
|
||||
this.contentItems = MenuBuilder.buildStructure(this.parser, this.options);
|
||||
this.securitySchemes = new SecuritySchemesModel(this.parser);
|
||||
const webhookPath: Referenced<OpenAPIPath> = {...this.parser?.spec?.['x-webhooks'], ...this.parser?.spec.webhooks};
|
||||
const webhookPath: Referenced<OpenAPIPath> = {
|
||||
...this.parser?.spec?.['x-webhooks'],
|
||||
...this.parser?.spec.webhooks,
|
||||
};
|
||||
this.webhooks = new WebhookModel(this.parser, options, webhookPath);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -54,8 +54,8 @@ describe('Models', () => {
|
|||
license: {
|
||||
name: 'MIT',
|
||||
identifier: 'MIT',
|
||||
url: 'https://opensource.org/licenses/MIT'
|
||||
}
|
||||
url: 'https://opensource.org/licenses/MIT',
|
||||
},
|
||||
},
|
||||
} as any;
|
||||
|
||||
|
@ -83,7 +83,7 @@ describe('Models', () => {
|
|||
},
|
||||
} as any;
|
||||
|
||||
const opts = new RedocNormalizedOptions({downloadFileName: 'openapi.yaml'});
|
||||
const opts = new RedocNormalizedOptions({ downloadFileName: 'openapi.yaml' });
|
||||
const info = new ApiInfoModel(parser, opts);
|
||||
expect(info.downloadFileName).toEqual('openapi.yaml');
|
||||
});
|
||||
|
@ -96,7 +96,7 @@ describe('Models', () => {
|
|||
},
|
||||
} as any;
|
||||
|
||||
const opts = new RedocNormalizedOptions({downloadFileName: 'nope.txt'});
|
||||
const opts = new RedocNormalizedOptions({ downloadFileName: 'nope.txt' });
|
||||
const info = new ApiInfoModel(parser, opts);
|
||||
expect(info.downloadFileName).toEqual('swagger.json');
|
||||
});
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import * as path from 'path';
|
||||
import * as yaml from 'js-yaml'
|
||||
import * as yaml from 'js-yaml';
|
||||
import { OpenAPIContact, OpenAPIInfo, OpenAPILicense } from '../../types';
|
||||
import { IS_BROWSER } from '../../utils/';
|
||||
import { OpenAPIParser } from '../OpenAPIParser';
|
||||
|
|
Loading…
Reference in New Issue
Block a user