@redocly/openapi-core 1.0.0-beta.128 → 1.0.0-beta.130

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.
@@ -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 = [
@@ -57,6 +58,7 @@ const builtInRulesList = [
57
58
  'spec-components-invalid-map-name',
58
59
  'required-string-property-missing-min-length',
59
60
  'spec-strict-refs',
61
+ 'component-name-unique',
60
62
  ];
61
63
  const nodeTypesList = [
62
64
  'any',
@@ -148,7 +150,7 @@ const RootConfigStyleguide = {
148
150
  } }, ConfigStyleguide.properties),
149
151
  };
150
152
  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: {
153
+ 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
154
  properties: {
153
155
  http: 'ConfigHTTP',
154
156
  doNotResolveExamples: { type: 'boolean' },
@@ -158,7 +160,7 @@ const ConfigRoot = {
158
160
  items: {
159
161
  type: 'string',
160
162
  },
161
- } }),
163
+ }, 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
164
  };
163
165
  const ConfigApis = {
164
166
  properties: {},
@@ -175,7 +177,7 @@ const ConfigApisProperties = {
175
177
  items: {
176
178
  type: 'string',
177
179
  },
178
- } }),
180
+ }, title: { type: 'string' }, rbac: { type: 'object' }, metadata: { type: 'object' } }),
179
181
  required: ['root'],
180
182
  };
181
183
  const ConfigHTTP = {
@@ -189,10 +191,7 @@ const ConfigHTTP = {
189
191
  },
190
192
  };
191
193
  const ConfigRootTheme = {
192
- properties: {
193
- openapi: 'ConfigReferenceDocs',
194
- mockServer: 'ConfigMockServer',
195
- },
194
+ properties: Object.assign(Object.assign({}, config_external_schemas_1.themeConfigSchema.properties), { openapi: 'ConfigReferenceDocs', mockServer: 'ConfigMockServer' }),
196
195
  };
197
196
  const Rules = {
198
197
  properties: {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/openapi-core",
3
- "version": "1.0.0-beta.128",
3
+ "version": "1.0.0-beta.130",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "engines": {