forked from swagger-api/swagger-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefaults.js
More file actions
34 lines (32 loc) · 798 Bytes
/
defaults.js
File metadata and controls
34 lines (32 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* Test defaults
*/
'use strict';
SwaggerEditor.config(function ($provide) {
$provide.constant('defaults', {
disableCodeGen: true,
examplesFolder: '/spec-files/',
editorOptions: {},
exampleFiles: [
'default.yaml',
'heroku-pets.yaml',
'minimal.yaml',
'echo.yaml',
'petstore_simple.yaml',
'petstore_full.yaml',
'basic-auth.yaml',
'security.yaml'
],
autocompleteExtension: {},
useBackendForStorage: false,
backendEndpoint: '/editor/spec',
backendHealthCheckTimeout: 5000,
useYamlBackend: false,
disableFileMenu: false,
headerBranding: false,
enableTryIt: true,
brandingCssClass: '',
schemaUrl: '/schema/swagger.json',
importProxyUrl: 'https://cors-it.herokuapp.com/?url='
});
});