@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.
- package/lib/default-theme-config-schema.d.ts +1880 -1879
- package/lib/default-theme-config-schema.js +3 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -1
- package/lib/portal-shared-types.d.ts +0 -1
- package/lib/redoc-config-schema.d.ts +0 -1375
- package/lib/redoc-config-schema.js +35 -5
- package/lib/redoc-types.d.ts +2 -2
- package/lib/reunite-config-schema.d.ts +3 -0
- package/lib/reunite-config-schema.js +1 -0
- package/lib/root-config-schema.d.ts +5334 -5239
- package/lib/root-config-schema.js +17 -3
- package/lib-esm/default-theme-config-schema.d.ts +1880 -1879
- package/lib-esm/default-theme-config-schema.js +3 -1
- package/lib-esm/index.d.ts +1 -0
- package/lib-esm/index.js +1 -0
- package/lib-esm/portal-shared-types.d.ts +0 -1
- package/lib-esm/redoc-config-schema.d.ts +0 -1375
- package/lib-esm/redoc-config-schema.js +35 -5
- package/lib-esm/redoc-types.d.ts +2 -2
- package/lib-esm/reunite-config-schema.d.ts +3 -0
- package/lib-esm/reunite-config-schema.js +1 -0
- package/lib-esm/root-config-schema.d.ts +5334 -5239
- package/lib-esm/root-config-schema.js +16 -2
- package/package.json +2 -2
|
@@ -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: {
|
|
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.
|
|
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": "
|
|
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"
|