@redocly/config 0.7.0 → 0.8.1

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.
@@ -170,6 +170,18 @@ export const rbacConfigSchema = {
170
170
  },
171
171
  additionalProperties: rbacScopeItemsSchema,
172
172
  };
173
+ export const graviteeAdapterAuthStaticSchema = {
174
+ type: 'object',
175
+ properties: { static: { type: 'string' } },
176
+ additionalProperties: false,
177
+ required: ['static'],
178
+ };
179
+ export const graviteeAdapterAuthIdpSchema = {
180
+ type: 'object',
181
+ properties: { idp: { type: 'string' } },
182
+ additionalProperties: false,
183
+ required: ['idp'],
184
+ };
173
185
  export const graviteeAdapterConfigSchema = {
174
186
  type: 'object',
175
187
  properties: {
@@ -178,7 +190,9 @@ export const graviteeAdapterConfigSchema = {
178
190
  env: { type: 'string' },
179
191
  allowApiProductsOutsideCatalog: { type: 'boolean', default: false },
180
192
  stage: { type: 'string', default: 'non-production' },
181
- auth: { type: 'object', properties: { static: { type: 'string' } } },
193
+ auth: {
194
+ oneOf: [graviteeAdapterAuthStaticSchema, graviteeAdapterAuthIdpSchema],
195
+ },
182
196
  },
183
197
  additionalProperties: false,
184
198
  required: ['type', 'apiBaseUrl'],
@@ -325,7 +339,7 @@ export const redoclyConfigSchema = {
325
339
  additionalProperties: true,
326
340
  };
327
341
  const environmentSchema = Object.assign(Object.assign({}, removePropertyRecursively(redoclyConfigSchema, 'default')), { additionalProperties: false });
328
- export const rootRedoclyConfigSchema = Object.assign(Object.assign({}, redoclyConfigSchema), { properties: Object.assign(Object.assign({ plugins: {
342
+ export const rootRedoclyConfigSchema = Object.assign(Object.assign({ $id: 'root-redocly-config' }, redoclyConfigSchema), { properties: Object.assign(Object.assign({ plugins: {
329
343
  type: 'array',
330
344
  items: { type: 'string' },
331
345
  } }, redoclyConfigSchema.properties), { env: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/config",
3
- "version": "0.7.0",
3
+ "version": "0.8.1",
4
4
  "license": "MIT",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib-esm/index.js",
@@ -8,7 +8,7 @@
8
8
  "devDependencies": {
9
9
  "@markdoc/markdoc": "0.4.0",
10
10
  "@types/react": "18.3.2",
11
- "react-router-dom": "^6.21.1",
11
+ "react-router-dom": "6.21.1",
12
12
  "json-schema-to-ts": "2.7.2",
13
13
  "rimraf": "5.0.7",
14
14
  "typescript": "5.2.2"