-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinitTypes.js
81 lines (75 loc) · 2.64 KB
/
initTypes.js
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
const pluginsOptions = {
pluginLoadType: {type: 'string'},
}
const requestSnippets = {
generators: {type: 'json'},
defaultExpanded: {type: 'boolean'},
languages: {type: 'array', itemsType: 'string'},
}
const syntaxHighlight = {
activate: {type: 'boolean'},
theme: {type: 'array', itemsType: 'string'},
}
const initOAuth = {
clientId: {type: 'string'},
clientSecret: {type: 'string'},
realm: {type: 'string'},
appName: {type: 'string'},
scopeSeparator: {type: 'string'},
scopes: {type: 'string'},
additionalQueryStringParams: {type: 'string'},
useBasicAuthenticationWithAccessCodeGrant: {type: 'boolean'},
usePkceWithAuthorizationCodeGrant: {type: 'boolean'},
}
const initTypes = {
configUrl: {type: 'string'},
dom_id: {type: 'string'},
domNode: {type: 'string'},
spec: {type: 'json'},
url: {type: 'string'},
urls: {type: 'array', itemsType: 'string'},
'urls.primaryName': {type: 'string'},
queryConfigEnabled: {type: 'boolean'},
layout: {type: 'string'},
pluginsOptions: {type: 'object', itemsType: pluginsOptions},
plugins: {type: 'array', itemsType: 'function'},
presets: {type: 'array', itemsType: 'function'},
pluginLoadType: {type: 'array', itemsType: 'string'},
deepLinking: {type: 'boolean'},
displayOperationId: {type: 'boolean'},
defaultModelsExpandDepth: {type: 'number'},
defaultModelExpandDepth: {type: 'number'},
defaultModelRendering: {type: 'string'},
displayRequestDuration: {type: 'boolean'},
docExpansion: {type: 'string'},
filter: {type: 'string'},
maxDisplayedTags: {type: 'number'},
operationsSorter: {type: 'function'},
showExtensions: {type: 'boolean'},
showCommonExtensions: {type: 'boolean'},
tagsSorter: {type: 'function'},
useUnsafeMarkdown: {type: 'boolean'},
onComplete: {type: 'function'},
syntaxHighlight: {type: 'object', itemsType: syntaxHighlight},
tryItOutEnabled: {type: 'boolean'},
requestSnippetsEnabled: {type: 'boolean'},
requestSnippets: {type: 'object', itemsType: requestSnippets},
oauth2RedirectUrl: {type: 'string'},
requestInterceptor: {type: 'function'},
'request.curlOptions': {type: 'array', itemsType: 'string'},
responseInterceptor: {type: 'function'},
showMutatedRequest: {type: 'boolean'},
supportedSubmitMethods: {type: 'array', itemsType: 'string'},
validatorUrl: {type: 'string'},
withCredentials: {type: 'boolean'},
modelPropertyMacro: {type: 'function'},
parameterMacro: {type: 'function'},
persistAuthorization: {type: 'boolean'},
initOAuth: {type: 'object', itemsType: initOAuth},
preauthorizeBasic: {type: 'function'},
preauthorizeApiKey: {type: 'function'},
'*': {type: 'string'},
}
module.exports = {
initTypes
}