@redocly/openapi-core 1.0.0-beta.128 → 1.0.0-beta.129
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/config/config-resolvers.js +1 -1
- package/lib/config/config.d.ts +2 -1
- package/lib/config/config.js +1 -0
- package/lib/config/types.d.ts +12 -0
- package/lib/config/types.js +13 -0
- package/lib/rules/common/assertions/index.js +3 -4
- package/lib/types/config-external-schemas.d.ts +1619 -0
- package/lib/types/config-external-schemas.js +736 -0
- package/lib/types/redocly-yaml.js +5 -7
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ConfigTypes = void 0;
|
|
4
|
+
const config_external_schemas_1 = require("./config-external-schemas");
|
|
4
5
|
const _1 = require(".");
|
|
5
6
|
const utils_1 = require("../utils");
|
|
6
7
|
const builtInRulesList = [
|
|
@@ -148,7 +149,7 @@ const RootConfigStyleguide = {
|
|
|
148
149
|
} }, ConfigStyleguide.properties),
|
|
149
150
|
};
|
|
150
151
|
const ConfigRoot = {
|
|
151
|
-
properties: Object.assign(Object.assign({ organization: { type: 'string' }, apis: 'ConfigApis' }, RootConfigStyleguide.properties), { theme: 'ConfigRootTheme', 'features.openapi': 'ConfigReferenceDocs', 'features.mockServer': 'ConfigMockServer', region: { enum: ['us', 'eu'] }, resolve: {
|
|
152
|
+
properties: Object.assign(Object.assign({ organization: { type: 'string' }, apis: 'ConfigApis' }, RootConfigStyleguide.properties), { theme: 'ConfigRootTheme', 'features.openapi': 'ConfigReferenceDocs', 'features.mockServer': 'ConfigMockServer', region: { enum: ['us', 'eu'] }, telemetry: { enum: ['on', 'off'] }, resolve: {
|
|
152
153
|
properties: {
|
|
153
154
|
http: 'ConfigHTTP',
|
|
154
155
|
doNotResolveExamples: { type: 'boolean' },
|
|
@@ -158,7 +159,7 @@ const ConfigRoot = {
|
|
|
158
159
|
items: {
|
|
159
160
|
type: 'string',
|
|
160
161
|
},
|
|
161
|
-
} }),
|
|
162
|
+
}, redirects: { type: 'object', additionalProperties: config_external_schemas_1.redirectConfigSchema }, licenseKey: { type: 'string' }, seo: config_external_schemas_1.seoConfigSchema, rbac: config_external_schemas_1.rbacConfigSchema, responseHeaders: config_external_schemas_1.responseHeaderSchema, mockServer: config_external_schemas_1.mockServerConfigSchema, sso: config_external_schemas_1.ssoConfigSchema, developerOnboarding: config_external_schemas_1.devOnboardingConfigSchema, scorecard: config_external_schemas_1.scorecardConfigSchema, i18n: config_external_schemas_1.i18nConfigSchema }),
|
|
162
163
|
};
|
|
163
164
|
const ConfigApis = {
|
|
164
165
|
properties: {},
|
|
@@ -175,7 +176,7 @@ const ConfigApisProperties = {
|
|
|
175
176
|
items: {
|
|
176
177
|
type: 'string',
|
|
177
178
|
},
|
|
178
|
-
} }),
|
|
179
|
+
}, title: { type: 'string' }, rbac: { type: 'object' }, metadata: { type: 'object' } }),
|
|
179
180
|
required: ['root'],
|
|
180
181
|
};
|
|
181
182
|
const ConfigHTTP = {
|
|
@@ -189,10 +190,7 @@ const ConfigHTTP = {
|
|
|
189
190
|
},
|
|
190
191
|
};
|
|
191
192
|
const ConfigRootTheme = {
|
|
192
|
-
properties: {
|
|
193
|
-
openapi: 'ConfigReferenceDocs',
|
|
194
|
-
mockServer: 'ConfigMockServer',
|
|
195
|
-
},
|
|
193
|
+
properties: Object.assign(Object.assign({}, config_external_schemas_1.themeConfigSchema.properties), { openapi: 'ConfigReferenceDocs', mockServer: 'ConfigMockServer' }),
|
|
196
194
|
};
|
|
197
195
|
const Rules = {
|
|
198
196
|
properties: {},
|