@redocly/config 0.8.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/reunite-config-schema.d.ts +3 -0
- package/lib/reunite-config-schema.js +1 -0
- package/lib/root-config-schema.d.ts +119 -25
- package/lib/root-config-schema.js +16 -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 +119 -25
- package/lib-esm/root-config-schema.js +15 -1
- package/package.json +2 -2
|
@@ -2625,6 +2625,26 @@ export declare const rbacConfigSchema: {
|
|
|
2625
2625
|
};
|
|
2626
2626
|
};
|
|
2627
2627
|
};
|
|
2628
|
+
export declare const graviteeAdapterAuthStaticSchema: {
|
|
2629
|
+
readonly type: "object";
|
|
2630
|
+
readonly properties: {
|
|
2631
|
+
readonly static: {
|
|
2632
|
+
readonly type: "string";
|
|
2633
|
+
};
|
|
2634
|
+
};
|
|
2635
|
+
readonly additionalProperties: false;
|
|
2636
|
+
readonly required: readonly ["static"];
|
|
2637
|
+
};
|
|
2638
|
+
export declare const graviteeAdapterAuthIdpSchema: {
|
|
2639
|
+
readonly type: "object";
|
|
2640
|
+
readonly properties: {
|
|
2641
|
+
readonly idp: {
|
|
2642
|
+
readonly type: "string";
|
|
2643
|
+
};
|
|
2644
|
+
};
|
|
2645
|
+
readonly additionalProperties: false;
|
|
2646
|
+
readonly required: readonly ["idp"];
|
|
2647
|
+
};
|
|
2628
2648
|
export declare const graviteeAdapterConfigSchema: {
|
|
2629
2649
|
readonly type: "object";
|
|
2630
2650
|
readonly properties: {
|
|
@@ -2647,12 +2667,25 @@ export declare const graviteeAdapterConfigSchema: {
|
|
|
2647
2667
|
readonly default: "non-production";
|
|
2648
2668
|
};
|
|
2649
2669
|
readonly auth: {
|
|
2650
|
-
readonly
|
|
2651
|
-
|
|
2652
|
-
readonly
|
|
2653
|
-
readonly
|
|
2670
|
+
readonly oneOf: readonly [{
|
|
2671
|
+
readonly type: "object";
|
|
2672
|
+
readonly properties: {
|
|
2673
|
+
readonly static: {
|
|
2674
|
+
readonly type: "string";
|
|
2675
|
+
};
|
|
2654
2676
|
};
|
|
2655
|
-
|
|
2677
|
+
readonly additionalProperties: false;
|
|
2678
|
+
readonly required: readonly ["static"];
|
|
2679
|
+
}, {
|
|
2680
|
+
readonly type: "object";
|
|
2681
|
+
readonly properties: {
|
|
2682
|
+
readonly idp: {
|
|
2683
|
+
readonly type: "string";
|
|
2684
|
+
};
|
|
2685
|
+
};
|
|
2686
|
+
readonly additionalProperties: false;
|
|
2687
|
+
readonly required: readonly ["idp"];
|
|
2688
|
+
}];
|
|
2656
2689
|
};
|
|
2657
2690
|
};
|
|
2658
2691
|
readonly additionalProperties: false;
|
|
@@ -3009,12 +3042,25 @@ export declare const devOnboardingAdapterConfigSchema: {
|
|
|
3009
3042
|
readonly default: "non-production";
|
|
3010
3043
|
};
|
|
3011
3044
|
readonly auth: {
|
|
3012
|
-
readonly
|
|
3013
|
-
|
|
3014
|
-
readonly
|
|
3015
|
-
readonly
|
|
3045
|
+
readonly oneOf: readonly [{
|
|
3046
|
+
readonly type: "object";
|
|
3047
|
+
readonly properties: {
|
|
3048
|
+
readonly static: {
|
|
3049
|
+
readonly type: "string";
|
|
3050
|
+
};
|
|
3016
3051
|
};
|
|
3017
|
-
|
|
3052
|
+
readonly additionalProperties: false;
|
|
3053
|
+
readonly required: readonly ["static"];
|
|
3054
|
+
}, {
|
|
3055
|
+
readonly type: "object";
|
|
3056
|
+
readonly properties: {
|
|
3057
|
+
readonly idp: {
|
|
3058
|
+
readonly type: "string";
|
|
3059
|
+
};
|
|
3060
|
+
};
|
|
3061
|
+
readonly additionalProperties: false;
|
|
3062
|
+
readonly required: readonly ["idp"];
|
|
3063
|
+
}];
|
|
3018
3064
|
};
|
|
3019
3065
|
};
|
|
3020
3066
|
readonly additionalProperties: false;
|
|
@@ -5609,12 +5655,25 @@ export declare const redoclyConfigSchema: {
|
|
|
5609
5655
|
readonly default: "non-production";
|
|
5610
5656
|
};
|
|
5611
5657
|
readonly auth: {
|
|
5612
|
-
readonly
|
|
5613
|
-
|
|
5614
|
-
readonly
|
|
5615
|
-
readonly
|
|
5658
|
+
readonly oneOf: readonly [{
|
|
5659
|
+
readonly type: "object";
|
|
5660
|
+
readonly properties: {
|
|
5661
|
+
readonly static: {
|
|
5662
|
+
readonly type: "string";
|
|
5663
|
+
};
|
|
5616
5664
|
};
|
|
5617
|
-
|
|
5665
|
+
readonly additionalProperties: false;
|
|
5666
|
+
readonly required: readonly ["static"];
|
|
5667
|
+
}, {
|
|
5668
|
+
readonly type: "object";
|
|
5669
|
+
readonly properties: {
|
|
5670
|
+
readonly idp: {
|
|
5671
|
+
readonly type: "string";
|
|
5672
|
+
};
|
|
5673
|
+
};
|
|
5674
|
+
readonly additionalProperties: false;
|
|
5675
|
+
readonly required: readonly ["idp"];
|
|
5676
|
+
}];
|
|
5618
5677
|
};
|
|
5619
5678
|
};
|
|
5620
5679
|
readonly additionalProperties: false;
|
|
@@ -9237,6 +9296,9 @@ export declare const redoclyConfigSchema: {
|
|
|
9237
9296
|
readonly ignoreLinkChecker: {
|
|
9238
9297
|
readonly type: "boolean";
|
|
9239
9298
|
};
|
|
9299
|
+
readonly ignoreMarkdocErrors: {
|
|
9300
|
+
readonly type: "boolean";
|
|
9301
|
+
};
|
|
9240
9302
|
};
|
|
9241
9303
|
readonly additionalProperties: false;
|
|
9242
9304
|
};
|
|
@@ -13900,12 +13962,25 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
13900
13962
|
type: "string";
|
|
13901
13963
|
};
|
|
13902
13964
|
auth: {
|
|
13903
|
-
|
|
13904
|
-
|
|
13905
|
-
|
|
13965
|
+
oneOf: ({
|
|
13966
|
+
properties: {
|
|
13967
|
+
static: {
|
|
13968
|
+
type: "string";
|
|
13969
|
+
};
|
|
13906
13970
|
};
|
|
13907
|
-
|
|
13908
|
-
|
|
13971
|
+
additionalProperties: false;
|
|
13972
|
+
type: "object";
|
|
13973
|
+
required: "static"[];
|
|
13974
|
+
} | {
|
|
13975
|
+
properties: {
|
|
13976
|
+
idp: {
|
|
13977
|
+
type: "string";
|
|
13978
|
+
};
|
|
13979
|
+
};
|
|
13980
|
+
additionalProperties: false;
|
|
13981
|
+
type: "object";
|
|
13982
|
+
required: "idp"[];
|
|
13983
|
+
})[];
|
|
13909
13984
|
};
|
|
13910
13985
|
env: {
|
|
13911
13986
|
type: "string";
|
|
@@ -14112,6 +14187,9 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
14112
14187
|
ignoreLinkChecker: {
|
|
14113
14188
|
type: "boolean";
|
|
14114
14189
|
};
|
|
14190
|
+
ignoreMarkdocErrors: {
|
|
14191
|
+
type: "boolean";
|
|
14192
|
+
};
|
|
14115
14193
|
};
|
|
14116
14194
|
additionalProperties: false;
|
|
14117
14195
|
type: "object";
|
|
@@ -16677,12 +16755,25 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
16677
16755
|
readonly default: "non-production";
|
|
16678
16756
|
};
|
|
16679
16757
|
readonly auth: {
|
|
16680
|
-
readonly
|
|
16681
|
-
|
|
16682
|
-
readonly
|
|
16683
|
-
readonly
|
|
16758
|
+
readonly oneOf: readonly [{
|
|
16759
|
+
readonly type: "object";
|
|
16760
|
+
readonly properties: {
|
|
16761
|
+
readonly static: {
|
|
16762
|
+
readonly type: "string";
|
|
16763
|
+
};
|
|
16684
16764
|
};
|
|
16685
|
-
|
|
16765
|
+
readonly additionalProperties: false;
|
|
16766
|
+
readonly required: readonly ["static"];
|
|
16767
|
+
}, {
|
|
16768
|
+
readonly type: "object";
|
|
16769
|
+
readonly properties: {
|
|
16770
|
+
readonly idp: {
|
|
16771
|
+
readonly type: "string";
|
|
16772
|
+
};
|
|
16773
|
+
};
|
|
16774
|
+
readonly additionalProperties: false;
|
|
16775
|
+
readonly required: readonly ["idp"];
|
|
16776
|
+
}];
|
|
16686
16777
|
};
|
|
16687
16778
|
};
|
|
16688
16779
|
readonly additionalProperties: false;
|
|
@@ -20305,6 +20396,9 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
20305
20396
|
readonly ignoreLinkChecker: {
|
|
20306
20397
|
readonly type: "boolean";
|
|
20307
20398
|
};
|
|
20399
|
+
readonly ignoreMarkdocErrors: {
|
|
20400
|
+
readonly type: "boolean";
|
|
20401
|
+
};
|
|
20308
20402
|
};
|
|
20309
20403
|
readonly additionalProperties: false;
|
|
20310
20404
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.rootRedoclyConfigSchema = exports.redoclyConfigSchema = exports.i18ConfigSchema = exports.devOnboardingAdapterConfigSchema = exports.apigeeEdgeAdapterConfigSchema = exports.apigeeXAdapterConfigSchema = exports.apigeeAdapterAuthServiceAccountSchema = exports.apigeeAdapterAuthOauth2Schema = exports.graviteeAdapterConfigSchema = exports.rbacConfigSchema = exports.rbacScopeItemsSchema = exports.seoConfigSchema = exports.apiConfigSchema = exports.redirectsConfigSchema = exports.redirectConfigSchema = exports.ssoConfigSchema = exports.ssoOnPremConfigSchema = exports.authProviderConfigSchema = exports.saml2ProviderConfigSchema = exports.oidcProviderConfigSchema = exports.oidcIssuerMetadataSchema = void 0;
|
|
3
|
+
exports.rootRedoclyConfigSchema = exports.redoclyConfigSchema = exports.i18ConfigSchema = exports.devOnboardingAdapterConfigSchema = exports.apigeeEdgeAdapterConfigSchema = exports.apigeeXAdapterConfigSchema = exports.apigeeAdapterAuthServiceAccountSchema = exports.apigeeAdapterAuthOauth2Schema = exports.graviteeAdapterConfigSchema = exports.graviteeAdapterAuthIdpSchema = exports.graviteeAdapterAuthStaticSchema = exports.rbacConfigSchema = exports.rbacScopeItemsSchema = exports.seoConfigSchema = exports.apiConfigSchema = exports.redirectsConfigSchema = exports.redirectConfigSchema = exports.ssoConfigSchema = exports.ssoOnPremConfigSchema = exports.authProviderConfigSchema = exports.saml2ProviderConfigSchema = exports.oidcProviderConfigSchema = exports.oidcIssuerMetadataSchema = void 0;
|
|
4
4
|
const constants_1 = require("./constants");
|
|
5
5
|
const default_theme_config_schema_1 = require("./default-theme-config-schema");
|
|
6
6
|
const remove_property_recursively_1 = require("./remove-property-recursively");
|
|
@@ -173,6 +173,18 @@ exports.rbacConfigSchema = {
|
|
|
173
173
|
},
|
|
174
174
|
additionalProperties: exports.rbacScopeItemsSchema,
|
|
175
175
|
};
|
|
176
|
+
exports.graviteeAdapterAuthStaticSchema = {
|
|
177
|
+
type: 'object',
|
|
178
|
+
properties: { static: { type: 'string' } },
|
|
179
|
+
additionalProperties: false,
|
|
180
|
+
required: ['static'],
|
|
181
|
+
};
|
|
182
|
+
exports.graviteeAdapterAuthIdpSchema = {
|
|
183
|
+
type: 'object',
|
|
184
|
+
properties: { idp: { type: 'string' } },
|
|
185
|
+
additionalProperties: false,
|
|
186
|
+
required: ['idp'],
|
|
187
|
+
};
|
|
176
188
|
exports.graviteeAdapterConfigSchema = {
|
|
177
189
|
type: 'object',
|
|
178
190
|
properties: {
|
|
@@ -181,7 +193,9 @@ exports.graviteeAdapterConfigSchema = {
|
|
|
181
193
|
env: { type: 'string' },
|
|
182
194
|
allowApiProductsOutsideCatalog: { type: 'boolean', default: false },
|
|
183
195
|
stage: { type: 'string', default: 'non-production' },
|
|
184
|
-
auth: {
|
|
196
|
+
auth: {
|
|
197
|
+
oneOf: [exports.graviteeAdapterAuthStaticSchema, exports.graviteeAdapterAuthIdpSchema],
|
|
198
|
+
},
|
|
185
199
|
},
|
|
186
200
|
additionalProperties: false,
|
|
187
201
|
required: ['type', 'apiBaseUrl'],
|
|
@@ -2625,6 +2625,26 @@ export declare const rbacConfigSchema: {
|
|
|
2625
2625
|
};
|
|
2626
2626
|
};
|
|
2627
2627
|
};
|
|
2628
|
+
export declare const graviteeAdapterAuthStaticSchema: {
|
|
2629
|
+
readonly type: "object";
|
|
2630
|
+
readonly properties: {
|
|
2631
|
+
readonly static: {
|
|
2632
|
+
readonly type: "string";
|
|
2633
|
+
};
|
|
2634
|
+
};
|
|
2635
|
+
readonly additionalProperties: false;
|
|
2636
|
+
readonly required: readonly ["static"];
|
|
2637
|
+
};
|
|
2638
|
+
export declare const graviteeAdapterAuthIdpSchema: {
|
|
2639
|
+
readonly type: "object";
|
|
2640
|
+
readonly properties: {
|
|
2641
|
+
readonly idp: {
|
|
2642
|
+
readonly type: "string";
|
|
2643
|
+
};
|
|
2644
|
+
};
|
|
2645
|
+
readonly additionalProperties: false;
|
|
2646
|
+
readonly required: readonly ["idp"];
|
|
2647
|
+
};
|
|
2628
2648
|
export declare const graviteeAdapterConfigSchema: {
|
|
2629
2649
|
readonly type: "object";
|
|
2630
2650
|
readonly properties: {
|
|
@@ -2647,12 +2667,25 @@ export declare const graviteeAdapterConfigSchema: {
|
|
|
2647
2667
|
readonly default: "non-production";
|
|
2648
2668
|
};
|
|
2649
2669
|
readonly auth: {
|
|
2650
|
-
readonly
|
|
2651
|
-
|
|
2652
|
-
readonly
|
|
2653
|
-
readonly
|
|
2670
|
+
readonly oneOf: readonly [{
|
|
2671
|
+
readonly type: "object";
|
|
2672
|
+
readonly properties: {
|
|
2673
|
+
readonly static: {
|
|
2674
|
+
readonly type: "string";
|
|
2675
|
+
};
|
|
2654
2676
|
};
|
|
2655
|
-
|
|
2677
|
+
readonly additionalProperties: false;
|
|
2678
|
+
readonly required: readonly ["static"];
|
|
2679
|
+
}, {
|
|
2680
|
+
readonly type: "object";
|
|
2681
|
+
readonly properties: {
|
|
2682
|
+
readonly idp: {
|
|
2683
|
+
readonly type: "string";
|
|
2684
|
+
};
|
|
2685
|
+
};
|
|
2686
|
+
readonly additionalProperties: false;
|
|
2687
|
+
readonly required: readonly ["idp"];
|
|
2688
|
+
}];
|
|
2656
2689
|
};
|
|
2657
2690
|
};
|
|
2658
2691
|
readonly additionalProperties: false;
|
|
@@ -3009,12 +3042,25 @@ export declare const devOnboardingAdapterConfigSchema: {
|
|
|
3009
3042
|
readonly default: "non-production";
|
|
3010
3043
|
};
|
|
3011
3044
|
readonly auth: {
|
|
3012
|
-
readonly
|
|
3013
|
-
|
|
3014
|
-
readonly
|
|
3015
|
-
readonly
|
|
3045
|
+
readonly oneOf: readonly [{
|
|
3046
|
+
readonly type: "object";
|
|
3047
|
+
readonly properties: {
|
|
3048
|
+
readonly static: {
|
|
3049
|
+
readonly type: "string";
|
|
3050
|
+
};
|
|
3016
3051
|
};
|
|
3017
|
-
|
|
3052
|
+
readonly additionalProperties: false;
|
|
3053
|
+
readonly required: readonly ["static"];
|
|
3054
|
+
}, {
|
|
3055
|
+
readonly type: "object";
|
|
3056
|
+
readonly properties: {
|
|
3057
|
+
readonly idp: {
|
|
3058
|
+
readonly type: "string";
|
|
3059
|
+
};
|
|
3060
|
+
};
|
|
3061
|
+
readonly additionalProperties: false;
|
|
3062
|
+
readonly required: readonly ["idp"];
|
|
3063
|
+
}];
|
|
3018
3064
|
};
|
|
3019
3065
|
};
|
|
3020
3066
|
readonly additionalProperties: false;
|
|
@@ -5609,12 +5655,25 @@ export declare const redoclyConfigSchema: {
|
|
|
5609
5655
|
readonly default: "non-production";
|
|
5610
5656
|
};
|
|
5611
5657
|
readonly auth: {
|
|
5612
|
-
readonly
|
|
5613
|
-
|
|
5614
|
-
readonly
|
|
5615
|
-
readonly
|
|
5658
|
+
readonly oneOf: readonly [{
|
|
5659
|
+
readonly type: "object";
|
|
5660
|
+
readonly properties: {
|
|
5661
|
+
readonly static: {
|
|
5662
|
+
readonly type: "string";
|
|
5663
|
+
};
|
|
5616
5664
|
};
|
|
5617
|
-
|
|
5665
|
+
readonly additionalProperties: false;
|
|
5666
|
+
readonly required: readonly ["static"];
|
|
5667
|
+
}, {
|
|
5668
|
+
readonly type: "object";
|
|
5669
|
+
readonly properties: {
|
|
5670
|
+
readonly idp: {
|
|
5671
|
+
readonly type: "string";
|
|
5672
|
+
};
|
|
5673
|
+
};
|
|
5674
|
+
readonly additionalProperties: false;
|
|
5675
|
+
readonly required: readonly ["idp"];
|
|
5676
|
+
}];
|
|
5618
5677
|
};
|
|
5619
5678
|
};
|
|
5620
5679
|
readonly additionalProperties: false;
|
|
@@ -9237,6 +9296,9 @@ export declare const redoclyConfigSchema: {
|
|
|
9237
9296
|
readonly ignoreLinkChecker: {
|
|
9238
9297
|
readonly type: "boolean";
|
|
9239
9298
|
};
|
|
9299
|
+
readonly ignoreMarkdocErrors: {
|
|
9300
|
+
readonly type: "boolean";
|
|
9301
|
+
};
|
|
9240
9302
|
};
|
|
9241
9303
|
readonly additionalProperties: false;
|
|
9242
9304
|
};
|
|
@@ -13900,12 +13962,25 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
13900
13962
|
type: "string";
|
|
13901
13963
|
};
|
|
13902
13964
|
auth: {
|
|
13903
|
-
|
|
13904
|
-
|
|
13905
|
-
|
|
13965
|
+
oneOf: ({
|
|
13966
|
+
properties: {
|
|
13967
|
+
static: {
|
|
13968
|
+
type: "string";
|
|
13969
|
+
};
|
|
13906
13970
|
};
|
|
13907
|
-
|
|
13908
|
-
|
|
13971
|
+
additionalProperties: false;
|
|
13972
|
+
type: "object";
|
|
13973
|
+
required: "static"[];
|
|
13974
|
+
} | {
|
|
13975
|
+
properties: {
|
|
13976
|
+
idp: {
|
|
13977
|
+
type: "string";
|
|
13978
|
+
};
|
|
13979
|
+
};
|
|
13980
|
+
additionalProperties: false;
|
|
13981
|
+
type: "object";
|
|
13982
|
+
required: "idp"[];
|
|
13983
|
+
})[];
|
|
13909
13984
|
};
|
|
13910
13985
|
env: {
|
|
13911
13986
|
type: "string";
|
|
@@ -14112,6 +14187,9 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
14112
14187
|
ignoreLinkChecker: {
|
|
14113
14188
|
type: "boolean";
|
|
14114
14189
|
};
|
|
14190
|
+
ignoreMarkdocErrors: {
|
|
14191
|
+
type: "boolean";
|
|
14192
|
+
};
|
|
14115
14193
|
};
|
|
14116
14194
|
additionalProperties: false;
|
|
14117
14195
|
type: "object";
|
|
@@ -16677,12 +16755,25 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
16677
16755
|
readonly default: "non-production";
|
|
16678
16756
|
};
|
|
16679
16757
|
readonly auth: {
|
|
16680
|
-
readonly
|
|
16681
|
-
|
|
16682
|
-
readonly
|
|
16683
|
-
readonly
|
|
16758
|
+
readonly oneOf: readonly [{
|
|
16759
|
+
readonly type: "object";
|
|
16760
|
+
readonly properties: {
|
|
16761
|
+
readonly static: {
|
|
16762
|
+
readonly type: "string";
|
|
16763
|
+
};
|
|
16684
16764
|
};
|
|
16685
|
-
|
|
16765
|
+
readonly additionalProperties: false;
|
|
16766
|
+
readonly required: readonly ["static"];
|
|
16767
|
+
}, {
|
|
16768
|
+
readonly type: "object";
|
|
16769
|
+
readonly properties: {
|
|
16770
|
+
readonly idp: {
|
|
16771
|
+
readonly type: "string";
|
|
16772
|
+
};
|
|
16773
|
+
};
|
|
16774
|
+
readonly additionalProperties: false;
|
|
16775
|
+
readonly required: readonly ["idp"];
|
|
16776
|
+
}];
|
|
16686
16777
|
};
|
|
16687
16778
|
};
|
|
16688
16779
|
readonly additionalProperties: false;
|
|
@@ -20305,6 +20396,9 @@ export declare const rootRedoclyConfigSchema: {
|
|
|
20305
20396
|
readonly ignoreLinkChecker: {
|
|
20306
20397
|
readonly type: "boolean";
|
|
20307
20398
|
};
|
|
20399
|
+
readonly ignoreMarkdocErrors: {
|
|
20400
|
+
readonly type: "boolean";
|
|
20401
|
+
};
|
|
20308
20402
|
};
|
|
20309
20403
|
readonly additionalProperties: false;
|
|
20310
20404
|
};
|
|
@@ -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'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/config",
|
|
3
|
-
"version": "0.8.
|
|
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"
|