@redocly/config 0.44.0 → 0.44.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/asyncapi-config-schema.d.ts +300 -0
- package/lib/asyncapi-config-schema.js +53 -0
- package/lib/default-theme-config-schema.d.ts +300 -0
- package/lib/default-theme-config-schema.js +2 -0
- package/lib/ex-theme-config-schemas.d.ts +1807 -0
- package/lib/ex-theme-config-schemas.js +2 -1
- package/lib/remove-property-recursively.d.ts +1 -1
- package/lib/remove-property-recursively.js +7 -4
- package/lib/root-config-schema.d.ts +776 -0
- package/lib/root-config-schema.js +22 -2
- package/lib/types/asyncapi-types.d.ts +14 -0
- package/lib/types/asyncapi-types.js +3 -0
- package/lib/types/config-types.d.ts +24 -1
- package/lib/types/portal-shared-types.d.ts +6 -2
- package/lib-esm/asyncapi-config-schema.d.ts +300 -0
- package/lib-esm/asyncapi-config-schema.js +50 -0
- package/lib-esm/default-theme-config-schema.d.ts +300 -0
- package/lib-esm/default-theme-config-schema.js +2 -0
- package/lib-esm/ex-theme-config-schemas.d.ts +1807 -0
- package/lib-esm/ex-theme-config-schemas.js +1 -0
- package/lib-esm/remove-property-recursively.d.ts +1 -1
- package/lib-esm/remove-property-recursively.js +7 -4
- package/lib-esm/root-config-schema.d.ts +776 -0
- package/lib-esm/root-config-schema.js +22 -2
- package/lib-esm/types/asyncapi-types.d.ts +14 -0
- package/lib-esm/types/asyncapi-types.js +2 -0
- package/lib-esm/types/config-types.d.ts +24 -1
- package/lib-esm/types/portal-shared-types.d.ts +6 -2
- package/package.json +2 -2
|
@@ -511,7 +511,15 @@ exports.redoclyConfigSchema = {
|
|
|
511
511
|
imports: {
|
|
512
512
|
type: 'array',
|
|
513
513
|
items: { type: 'string' },
|
|
514
|
-
}, licenseKey: { type: 'string' }, redirects: exports.redirectsConfigSchema, seo: exports.seoConfigSchema,
|
|
514
|
+
}, licenseKey: { type: 'string' }, redirects: exports.redirectsConfigSchema, seo: exports.seoConfigSchema,
|
|
515
|
+
/**
|
|
516
|
+
* @deprecated Should use `access.rbac` instead
|
|
517
|
+
*/
|
|
518
|
+
rbac: exports.rbacConfigSchema, apiFunctions: exports.apiFunctionsConfigSchema,
|
|
519
|
+
/**
|
|
520
|
+
* @deprecated Should use `access.requiresLogin` instead
|
|
521
|
+
*/
|
|
522
|
+
requiresLogin: requiresLoginSchema, responseHeaders: {
|
|
515
523
|
type: 'object',
|
|
516
524
|
additionalProperties: {
|
|
517
525
|
type: 'array',
|
|
@@ -529,7 +537,19 @@ exports.redoclyConfigSchema = {
|
|
|
529
537
|
}, apis: {
|
|
530
538
|
type: 'object',
|
|
531
539
|
additionalProperties: exports.apiConfigSchema,
|
|
532
|
-
} }, common_1.configGovernanceSchema), { ssoDirect: exports.ssoDirectConfigSchema,
|
|
540
|
+
} }, common_1.configGovernanceSchema), { ssoDirect: exports.ssoDirectConfigSchema,
|
|
541
|
+
/**
|
|
542
|
+
* @deprecated Should use `access.sso` instead
|
|
543
|
+
*/
|
|
544
|
+
sso: exports.ssoConfigSchema,
|
|
545
|
+
/**
|
|
546
|
+
* @deprecated Should use `access.residency` instead
|
|
547
|
+
*/
|
|
548
|
+
residency: residencySchema,
|
|
549
|
+
/**
|
|
550
|
+
* @deprecated Should use `access.logoutReturnUrl` instead
|
|
551
|
+
*/
|
|
552
|
+
logoutReturnUrl: logoutReturnUrlSchema, access: exports.accessConfigSchema, developerOnboarding: devOnboardingConfigSchema, removeAttribution: { type: 'boolean' }, i18n: exports.l10nConfigSchema, l10n: exports.l10nConfigSchema, metadata: metadataConfigSchema, metadataGlobs: metadataGlobsConfigSchema, ignore: { type: 'array', items: { type: 'string' } },
|
|
533
553
|
/**
|
|
534
554
|
* @deprecated properties moved to the root of the config
|
|
535
555
|
*/
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import type { FromSchema } from 'json-schema-to-ts';
|
|
3
|
+
import type { Schema, ConfigFunction } from '@markdoc/markdoc/dist/src/types';
|
|
4
|
+
import type { asyncapiConfigSchema } from '../asyncapi-config-schema';
|
|
5
|
+
export type AsyncApiConfigTypes = FromSchema<typeof asyncapiConfigSchema> & {
|
|
6
|
+
markdocOptions?: {
|
|
7
|
+
tags: Record<string, Schema>;
|
|
8
|
+
nodes: Record<string, Schema>;
|
|
9
|
+
components: Record<string, ComponentType>;
|
|
10
|
+
variables?: Record<string, any>;
|
|
11
|
+
partials?: Record<string, any>;
|
|
12
|
+
functions?: Record<string, ConfigFunction>;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -8,6 +8,7 @@ import type { productConfigSchema, productGoogleAnalyticsConfigSchema, markdownC
|
|
|
8
8
|
import type { scorecardsConfigSchema } from '../scorecards-config-schema';
|
|
9
9
|
import type { reuniteConfigSchema } from '../reunite-config-schema';
|
|
10
10
|
import type { optionalEmailSettings, reasonsSettings } from '../feedback-config-schema';
|
|
11
|
+
import type { AsyncApiConfigTypes } from './asyncapi-types';
|
|
11
12
|
/**
|
|
12
13
|
* @deprecated left for backwards compatibility. To be removed in Realm 1.0
|
|
13
14
|
*/
|
|
@@ -16,6 +17,7 @@ export type ThemeConfig = Omit<FromSchema<typeof themeConfigSchema>, 'openapi'>
|
|
|
16
17
|
};
|
|
17
18
|
export type RedocConfig = RedocConfigTypes;
|
|
18
19
|
export type GraphQLConfig = GraphQLConfigTypes;
|
|
20
|
+
export type AsyncApiConfig = AsyncApiConfigTypes;
|
|
19
21
|
export type ProductConfig = FromSchema<typeof productConfigSchema>;
|
|
20
22
|
export type ProductGoogleAnalyticsConfig = FromSchema<typeof productGoogleAnalyticsConfigSchema>;
|
|
21
23
|
export type MarkdownConfig = FromSchema<typeof markdownConfigSchema>;
|
|
@@ -30,7 +32,28 @@ export type ReuniteConfig = FromSchema<typeof reuniteConfigSchema>;
|
|
|
30
32
|
export type ScorecardConfig = FromSchema<typeof scorecardConfigSchema>;
|
|
31
33
|
export type ScorecardsConfig = FromSchema<typeof scorecardsConfigSchema>;
|
|
32
34
|
export type SearchFacetsConfig = FromSchema<typeof searchFacetsConfigSchema>;
|
|
33
|
-
|
|
35
|
+
type RootRedoclyConfig = FromSchema<typeof rootRedoclyConfigSchema>;
|
|
36
|
+
export type RedoclyConfig = Omit<RootRedoclyConfig, 'theme' | 'apis' | 'rbac' | 'requiresLogin' | 'sso' | 'residency' | 'logoutReturnUrl'> & {
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated Should use `access.rbac` instead
|
|
39
|
+
*/
|
|
40
|
+
rbac?: RootRedoclyConfig['rbac'];
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated Should use `access.requiresLogin` instead
|
|
43
|
+
*/
|
|
44
|
+
requiresLogin?: RootRedoclyConfig['requiresLogin'];
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated Should use `access.sso` instead
|
|
47
|
+
*/
|
|
48
|
+
sso?: RootRedoclyConfig['sso'];
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated Should use `access.residency` instead
|
|
51
|
+
*/
|
|
52
|
+
residency?: RootRedoclyConfig['residency'];
|
|
53
|
+
/**
|
|
54
|
+
* @deprecated Should use `access.logoutReturnUrl` instead
|
|
55
|
+
*/
|
|
56
|
+
logoutReturnUrl?: RootRedoclyConfig['logoutReturnUrl'];
|
|
34
57
|
/**
|
|
35
58
|
* @deprecated properties moved to the root of the config
|
|
36
59
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Node } from '@markdoc/markdoc/dist/src/types';
|
|
2
2
|
import type { LayoutVariant, REDOCLY_ROUTE_RBAC, REDOCLY_TEAMS_RBAC } from '../constants/shared';
|
|
3
|
-
import type { ProductConfig, ProductGoogleAnalyticsConfig, RbacScopeItems, RedoclyConfig, SeoConfig } from './config-types';
|
|
3
|
+
import type { ProductConfig, ProductGoogleAnalyticsConfig, RbacScopeItems, RedoclyConfig, SeoConfig, BannerConfig } from './config-types';
|
|
4
4
|
import type { CatalogEntityConfig } from './catalog-entity-types';
|
|
5
5
|
export * from './code-walkthrough-types';
|
|
6
|
-
export type UiAccessibleConfig = Pick<RedoclyConfig, 'logo' | 'navbar' | 'products' | 'footer' | 'sidebar' | 'scripts' | 'links' | 'feedback' | 'search' | 'aiAssistant' | 'colorMode' | 'navigation' | 'codeSnippet' | 'markdown' | 'openapi' | 'graphql' | 'analytics' | 'userMenu' | 'versionPicker' | 'breadcrumbs' | 'catalog' | 'scorecard' | 'scorecards' | 'scorecardClassic' | 'entitiesCatalog' | 'mcp'
|
|
6
|
+
export type UiAccessibleConfig = Pick<RedoclyConfig, 'logo' | 'navbar' | 'products' | 'footer' | 'sidebar' | 'scripts' | 'links' | 'feedback' | 'search' | 'aiAssistant' | 'colorMode' | 'navigation' | 'codeSnippet' | 'markdown' | 'openapi' | 'graphql' | 'analytics' | 'userMenu' | 'versionPicker' | 'breadcrumbs' | 'catalog' | 'scorecard' | 'scorecards' | 'scorecardClassic' | 'entitiesCatalog' | 'mcp'> & {
|
|
7
7
|
auth?: {
|
|
8
8
|
idpsInfo?: {
|
|
9
9
|
idpId: string;
|
|
@@ -18,6 +18,7 @@ export type UiAccessibleConfig = Pick<RedoclyConfig, 'logo' | 'navbar' | 'produc
|
|
|
18
18
|
products?: {
|
|
19
19
|
[key: string]: ProductUiConfig;
|
|
20
20
|
};
|
|
21
|
+
banner?: ResolvedBannerConfig[];
|
|
21
22
|
};
|
|
22
23
|
/**
|
|
23
24
|
* @deprecated left for backwards compatibility. To be removed in Realm 1.0
|
|
@@ -157,6 +158,9 @@ export type ResolvedSidebar = {
|
|
|
157
158
|
catalogConfig?: CatalogEntityConfig;
|
|
158
159
|
};
|
|
159
160
|
};
|
|
161
|
+
export type ResolvedBannerConfig = BannerConfig & {
|
|
162
|
+
ast: unknown;
|
|
163
|
+
};
|
|
160
164
|
export type CompilationError = {
|
|
161
165
|
message: string;
|
|
162
166
|
sourceFileRelativePath: string;
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
export declare const asyncapiConfigSchema: {
|
|
2
|
+
readonly type: "object";
|
|
3
|
+
readonly properties: {
|
|
4
|
+
readonly downloadUrls: {
|
|
5
|
+
readonly type: "array";
|
|
6
|
+
readonly items: {
|
|
7
|
+
readonly type: "object";
|
|
8
|
+
readonly properties: {
|
|
9
|
+
readonly title: {
|
|
10
|
+
readonly type: "string";
|
|
11
|
+
};
|
|
12
|
+
readonly url: {
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
readonly required: readonly ["url"];
|
|
17
|
+
readonly additionalProperties: false;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
readonly apiLogo: {
|
|
21
|
+
readonly type: "object";
|
|
22
|
+
readonly properties: {
|
|
23
|
+
readonly imageUrl: {
|
|
24
|
+
readonly type: "string";
|
|
25
|
+
};
|
|
26
|
+
readonly href: {
|
|
27
|
+
readonly type: "string";
|
|
28
|
+
};
|
|
29
|
+
readonly altText: {
|
|
30
|
+
readonly type: "string";
|
|
31
|
+
};
|
|
32
|
+
readonly backgroundColor: {
|
|
33
|
+
readonly type: "string";
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
readonly jsonSamplesDepth: {
|
|
38
|
+
readonly type: "number";
|
|
39
|
+
};
|
|
40
|
+
readonly samplesMaxInlineArgs: {
|
|
41
|
+
readonly type: "number";
|
|
42
|
+
};
|
|
43
|
+
readonly fieldExpandLevel: {
|
|
44
|
+
readonly type: "number";
|
|
45
|
+
};
|
|
46
|
+
readonly baseUrlPath: {
|
|
47
|
+
readonly type: "string";
|
|
48
|
+
};
|
|
49
|
+
readonly metadata: {
|
|
50
|
+
readonly type: "object";
|
|
51
|
+
readonly properties: {
|
|
52
|
+
readonly apiId: {
|
|
53
|
+
readonly type: "string";
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
readonly additionalProperties: true;
|
|
57
|
+
};
|
|
58
|
+
readonly feedback: {
|
|
59
|
+
readonly type: "object";
|
|
60
|
+
readonly properties: {
|
|
61
|
+
readonly hide: {
|
|
62
|
+
readonly type: "boolean";
|
|
63
|
+
readonly default: false;
|
|
64
|
+
};
|
|
65
|
+
readonly type: {
|
|
66
|
+
readonly type: "string";
|
|
67
|
+
readonly enum: readonly ["rating", "sentiment", "comment", "reasons", "mood", "scale"];
|
|
68
|
+
readonly default: "sentiment";
|
|
69
|
+
};
|
|
70
|
+
readonly settings: {
|
|
71
|
+
readonly type: "object";
|
|
72
|
+
readonly properties: {
|
|
73
|
+
readonly label: {
|
|
74
|
+
readonly type: "string";
|
|
75
|
+
};
|
|
76
|
+
readonly submitText: {
|
|
77
|
+
readonly type: "string";
|
|
78
|
+
};
|
|
79
|
+
readonly buttonText: {
|
|
80
|
+
readonly type: "string";
|
|
81
|
+
};
|
|
82
|
+
readonly component: {
|
|
83
|
+
readonly type: "string";
|
|
84
|
+
readonly enum: readonly ["radio", "checkbox"];
|
|
85
|
+
readonly default: "checkbox";
|
|
86
|
+
};
|
|
87
|
+
readonly items: {
|
|
88
|
+
readonly type: "array";
|
|
89
|
+
readonly items: {
|
|
90
|
+
readonly type: "string";
|
|
91
|
+
};
|
|
92
|
+
readonly minItems: 1;
|
|
93
|
+
};
|
|
94
|
+
readonly leftScaleLabel: {
|
|
95
|
+
readonly type: "string";
|
|
96
|
+
};
|
|
97
|
+
readonly rightScaleLabel: {
|
|
98
|
+
readonly type: "string";
|
|
99
|
+
};
|
|
100
|
+
readonly reasons: {
|
|
101
|
+
readonly type: "object";
|
|
102
|
+
readonly properties: {
|
|
103
|
+
readonly like: {
|
|
104
|
+
readonly type: "object";
|
|
105
|
+
readonly properties: {
|
|
106
|
+
readonly hide: {
|
|
107
|
+
readonly type: "boolean";
|
|
108
|
+
readonly default: false;
|
|
109
|
+
};
|
|
110
|
+
readonly component: {
|
|
111
|
+
readonly type: "string";
|
|
112
|
+
readonly enum: readonly ["radio", "checkbox"];
|
|
113
|
+
readonly default: "checkbox";
|
|
114
|
+
};
|
|
115
|
+
readonly label: {
|
|
116
|
+
readonly type: "string";
|
|
117
|
+
};
|
|
118
|
+
readonly items: {
|
|
119
|
+
readonly type: "array";
|
|
120
|
+
readonly items: {
|
|
121
|
+
readonly type: "string";
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
readonly additionalProperties: false;
|
|
126
|
+
};
|
|
127
|
+
readonly dislike: {
|
|
128
|
+
readonly type: "object";
|
|
129
|
+
readonly properties: {
|
|
130
|
+
readonly hide: {
|
|
131
|
+
readonly type: "boolean";
|
|
132
|
+
readonly default: false;
|
|
133
|
+
};
|
|
134
|
+
readonly component: {
|
|
135
|
+
readonly type: "string";
|
|
136
|
+
readonly enum: readonly ["radio", "checkbox"];
|
|
137
|
+
readonly default: "checkbox";
|
|
138
|
+
};
|
|
139
|
+
readonly label: {
|
|
140
|
+
readonly type: "string";
|
|
141
|
+
};
|
|
142
|
+
readonly items: {
|
|
143
|
+
readonly type: "array";
|
|
144
|
+
readonly items: {
|
|
145
|
+
readonly type: "string";
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
readonly additionalProperties: false;
|
|
150
|
+
};
|
|
151
|
+
readonly satisfied: {
|
|
152
|
+
readonly type: "object";
|
|
153
|
+
readonly properties: {
|
|
154
|
+
readonly hide: {
|
|
155
|
+
readonly type: "boolean";
|
|
156
|
+
readonly default: false;
|
|
157
|
+
};
|
|
158
|
+
readonly component: {
|
|
159
|
+
readonly type: "string";
|
|
160
|
+
readonly enum: readonly ["radio", "checkbox"];
|
|
161
|
+
readonly default: "checkbox";
|
|
162
|
+
};
|
|
163
|
+
readonly label: {
|
|
164
|
+
readonly type: "string";
|
|
165
|
+
};
|
|
166
|
+
readonly items: {
|
|
167
|
+
readonly type: "array";
|
|
168
|
+
readonly items: {
|
|
169
|
+
readonly type: "string";
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
readonly additionalProperties: false;
|
|
174
|
+
};
|
|
175
|
+
readonly neutral: {
|
|
176
|
+
readonly type: "object";
|
|
177
|
+
readonly properties: {
|
|
178
|
+
readonly hide: {
|
|
179
|
+
readonly type: "boolean";
|
|
180
|
+
readonly default: false;
|
|
181
|
+
};
|
|
182
|
+
readonly component: {
|
|
183
|
+
readonly type: "string";
|
|
184
|
+
readonly enum: readonly ["radio", "checkbox"];
|
|
185
|
+
readonly default: "checkbox";
|
|
186
|
+
};
|
|
187
|
+
readonly label: {
|
|
188
|
+
readonly type: "string";
|
|
189
|
+
};
|
|
190
|
+
readonly items: {
|
|
191
|
+
readonly type: "array";
|
|
192
|
+
readonly items: {
|
|
193
|
+
readonly type: "string";
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
readonly additionalProperties: false;
|
|
198
|
+
};
|
|
199
|
+
readonly dissatisfied: {
|
|
200
|
+
readonly type: "object";
|
|
201
|
+
readonly properties: {
|
|
202
|
+
readonly hide: {
|
|
203
|
+
readonly type: "boolean";
|
|
204
|
+
readonly default: false;
|
|
205
|
+
};
|
|
206
|
+
readonly component: {
|
|
207
|
+
readonly type: "string";
|
|
208
|
+
readonly enum: readonly ["radio", "checkbox"];
|
|
209
|
+
readonly default: "checkbox";
|
|
210
|
+
};
|
|
211
|
+
readonly label: {
|
|
212
|
+
readonly type: "string";
|
|
213
|
+
};
|
|
214
|
+
readonly items: {
|
|
215
|
+
readonly type: "array";
|
|
216
|
+
readonly items: {
|
|
217
|
+
readonly type: "string";
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
readonly additionalProperties: false;
|
|
222
|
+
};
|
|
223
|
+
readonly hide: {
|
|
224
|
+
readonly type: "boolean";
|
|
225
|
+
readonly default: false;
|
|
226
|
+
};
|
|
227
|
+
readonly component: {
|
|
228
|
+
readonly type: "string";
|
|
229
|
+
readonly enum: readonly ["radio", "checkbox"];
|
|
230
|
+
readonly default: "checkbox";
|
|
231
|
+
};
|
|
232
|
+
readonly label: {
|
|
233
|
+
readonly type: "string";
|
|
234
|
+
};
|
|
235
|
+
readonly items: {
|
|
236
|
+
readonly type: "array";
|
|
237
|
+
readonly items: {
|
|
238
|
+
readonly type: "string";
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
readonly additionalProperties: false;
|
|
243
|
+
};
|
|
244
|
+
readonly comment: {
|
|
245
|
+
readonly type: "object";
|
|
246
|
+
readonly properties: {
|
|
247
|
+
readonly hide: {
|
|
248
|
+
readonly type: "boolean";
|
|
249
|
+
readonly default: false;
|
|
250
|
+
};
|
|
251
|
+
readonly label: {
|
|
252
|
+
readonly type: "string";
|
|
253
|
+
};
|
|
254
|
+
readonly likeLabel: {
|
|
255
|
+
readonly type: "string";
|
|
256
|
+
};
|
|
257
|
+
readonly dislikeLabel: {
|
|
258
|
+
readonly type: "string";
|
|
259
|
+
};
|
|
260
|
+
readonly satisfiedLabel: {
|
|
261
|
+
readonly type: "string";
|
|
262
|
+
};
|
|
263
|
+
readonly neutralLabel: {
|
|
264
|
+
readonly type: "string";
|
|
265
|
+
};
|
|
266
|
+
readonly dissatisfiedLabel: {
|
|
267
|
+
readonly type: "string";
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
readonly additionalProperties: false;
|
|
271
|
+
};
|
|
272
|
+
readonly optionalEmail: {
|
|
273
|
+
readonly type: "object";
|
|
274
|
+
readonly properties: {
|
|
275
|
+
readonly hide: {
|
|
276
|
+
readonly type: "boolean";
|
|
277
|
+
readonly default: false;
|
|
278
|
+
};
|
|
279
|
+
readonly label: {
|
|
280
|
+
readonly type: "string";
|
|
281
|
+
};
|
|
282
|
+
readonly placeholder: {
|
|
283
|
+
readonly type: "string";
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
readonly additionalProperties: false;
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
readonly additionalProperties: false;
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
readonly additionalProperties: false;
|
|
293
|
+
};
|
|
294
|
+
readonly layout: {
|
|
295
|
+
readonly type: "string";
|
|
296
|
+
readonly enum: readonly ["stacked", "three-panel"];
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
readonly additionalProperties: false;
|
|
300
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { feedbackConfigSchema } from './feedback-config-schema';
|
|
2
|
+
import { downloadUrlsSchema } from './redoc-config-schema';
|
|
3
|
+
export const asyncapiConfigSchema = {
|
|
4
|
+
type: 'object',
|
|
5
|
+
properties: {
|
|
6
|
+
downloadUrls: downloadUrlsSchema,
|
|
7
|
+
apiLogo: {
|
|
8
|
+
type: 'object',
|
|
9
|
+
properties: {
|
|
10
|
+
imageUrl: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
},
|
|
13
|
+
href: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
},
|
|
16
|
+
altText: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
},
|
|
19
|
+
backgroundColor: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
jsonSamplesDepth: {
|
|
25
|
+
type: 'number',
|
|
26
|
+
},
|
|
27
|
+
samplesMaxInlineArgs: {
|
|
28
|
+
type: 'number',
|
|
29
|
+
},
|
|
30
|
+
fieldExpandLevel: {
|
|
31
|
+
type: 'number',
|
|
32
|
+
},
|
|
33
|
+
baseUrlPath: {
|
|
34
|
+
type: 'string',
|
|
35
|
+
},
|
|
36
|
+
metadata: {
|
|
37
|
+
type: 'object',
|
|
38
|
+
properties: {
|
|
39
|
+
apiId: {
|
|
40
|
+
type: 'string',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
additionalProperties: true,
|
|
44
|
+
},
|
|
45
|
+
feedback: feedbackConfigSchema,
|
|
46
|
+
layout: { type: 'string', enum: ['stacked', 'three-panel'] },
|
|
47
|
+
},
|
|
48
|
+
additionalProperties: false,
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=asyncapi-config-schema.js.map
|