mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-05 17:53:12 +02:00
fix: Remove strictSchemaValidation feature flag
This commit is contained in:
parent
ac11af8c05
commit
fff6af5e74
@ -155,7 +155,6 @@ beforeAll(async () => {
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
deltaApi: true,
|
||||
},
|
||||
},
|
||||
@ -168,9 +167,7 @@ beforeAll(async () => {
|
||||
enterpriseDb.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
ui: {
|
||||
environment: 'Enterprise',
|
||||
@ -184,9 +181,7 @@ beforeAll(async () => {
|
||||
proDb.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
ui: {
|
||||
environment: 'Pro',
|
||||
|
@ -27,7 +27,6 @@ beforeAll(async () => {
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
enableLegacyVariants: true,
|
||||
},
|
||||
},
|
||||
|
@ -18,9 +18,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
isOss: true,
|
||||
},
|
||||
|
@ -17,9 +17,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -27,7 +27,6 @@ beforeAll(async () => {
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
anonymiseEventLog: true,
|
||||
},
|
||||
},
|
||||
|
@ -16,9 +16,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -22,9 +22,7 @@ const setupLastSeenAtTest = async (featureName: string) => {
|
||||
beforeAll(async () => {
|
||||
const config: Partial<IUnleashOptions> = {
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -23,7 +23,6 @@ beforeAll(async () => {
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
anonymiseEventLog: true,
|
||||
},
|
||||
},
|
||||
|
@ -93,7 +93,6 @@ beforeAll(async () => {
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
featureCollaborators: true,
|
||||
},
|
||||
},
|
||||
@ -3329,7 +3328,6 @@ test('Updating feature strategy sort-order should return strategies in correct o
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
strategyVariant: true,
|
||||
},
|
||||
},
|
||||
@ -3396,7 +3394,6 @@ test('Updating feature strategy sort-order should trigger a an event', async ()
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: false,
|
||||
strategyVariant: true,
|
||||
},
|
||||
},
|
||||
|
@ -30,7 +30,6 @@ beforeAll(async () => {
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
extendedUsageMetrics: true,
|
||||
},
|
||||
},
|
||||
|
@ -18,9 +18,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -34,9 +34,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -20,7 +20,6 @@ beforeAll(async () => {
|
||||
experimental: {
|
||||
flags: {
|
||||
advancedPlayground: true,
|
||||
strictSchemaValidation: true,
|
||||
strategyVariant: true,
|
||||
},
|
||||
},
|
||||
|
@ -21,7 +21,7 @@ async function getSetup() {
|
||||
const stores = createStores();
|
||||
const config = createTestConfig({
|
||||
server: { baseUriPath: base },
|
||||
experimental: { flags: { strictSchemaValidation: true } },
|
||||
experimental: { flags: {} },
|
||||
});
|
||||
const services = createServices(stores, config);
|
||||
const app = await getApp(config, stores, services);
|
||||
|
@ -17,9 +17,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -16,9 +16,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -55,9 +55,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -39,9 +39,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -16,9 +16,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -21,9 +21,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -20,9 +20,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -107,9 +107,6 @@ export class OpenApiService {
|
||||
`Invalid response for ${res.req?.originalUrl || ''}:`,
|
||||
errors,
|
||||
);
|
||||
if (this.flagResolver.isEnabled('strictSchemaValidation')) {
|
||||
throw new Error(JSON.stringify(errors, null, 4));
|
||||
}
|
||||
}
|
||||
|
||||
Object.entries(headers).forEach(([header, value]) =>
|
||||
|
@ -12,7 +12,6 @@ export type IFlagKey =
|
||||
| 'responseTimeWithAppNameKillSwitch'
|
||||
| 'maintenanceMode'
|
||||
| 'messageBanner'
|
||||
| 'strictSchemaValidation'
|
||||
| 'personalAccessTokensKillSwitch'
|
||||
| 'migrationLock'
|
||||
| 'demo'
|
||||
@ -89,10 +88,6 @@ const flags: IFlags = {
|
||||
process.env.UNLEASH_EXPERIMENTAL_MESSAGE_BANNER_PAYLOAD ?? '',
|
||||
},
|
||||
},
|
||||
strictSchemaValidation: parseEnvVarBoolean(
|
||||
process.env.UNLEASH_STRICT_SCHEMA_VALIDTION,
|
||||
false,
|
||||
),
|
||||
personalAccessTokensKillSwitch: parseEnvVarBoolean(
|
||||
process.env.UNLEASH_PAT_KILL_SWITCH,
|
||||
false,
|
||||
|
@ -50,7 +50,6 @@ process.nextTick(async () => {
|
||||
showUserDeviceCount: true,
|
||||
deltaApi: true,
|
||||
uniqueSdkTracking: true,
|
||||
strictSchemaValidation: true,
|
||||
reportUnknownFlags: true,
|
||||
customMetrics: true,
|
||||
impactMetrics: true,
|
||||
|
@ -13,9 +13,7 @@ beforeAll(async () => {
|
||||
db = await dbInit('addon_api_serial', getLogger);
|
||||
app = await setupAppWithCustomConfig(db.stores, {
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
});
|
||||
});
|
||||
|
@ -18,9 +18,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -53,9 +53,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -17,9 +17,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
@ -80,7 +78,6 @@ describe('maxSessionsCount', () => {
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
showUserDeviceCount: true,
|
||||
},
|
||||
},
|
||||
|
@ -14,9 +14,7 @@ beforeAll(async () => {
|
||||
db = await dbInit('constraints', getLogger);
|
||||
app = await setupAppWithCustomConfig(db.stores, {
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
});
|
||||
});
|
||||
|
@ -16,9 +16,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -36,9 +36,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -28,9 +28,7 @@ beforeAll(async () => {
|
||||
db = await dbInit('event_api_serial', getLogger);
|
||||
app = await setupAppWithCustomConfig(db.stores, {
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
});
|
||||
eventService = createEventsService(db.rawDatabase, config);
|
||||
|
@ -89,9 +89,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -15,9 +15,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -20,9 +20,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -39,9 +39,7 @@ beforeAll(async () => {
|
||||
|
||||
app = await setupAppWithCustomAuth(stores, preHook, {
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
});
|
||||
});
|
||||
|
@ -22,9 +22,7 @@ beforeAll(async () => {
|
||||
stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -16,9 +16,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -17,9 +17,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -16,9 +16,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -17,9 +17,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -17,7 +17,6 @@ beforeAll(async () => {
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
enableLegacyVariants: false,
|
||||
},
|
||||
},
|
||||
|
@ -18,7 +18,6 @@ beforeAll(async () => {
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
enableLegacyVariants: true,
|
||||
},
|
||||
},
|
||||
|
@ -39,9 +39,7 @@ beforeAll(async () => {
|
||||
|
||||
app = await setupAppWithCustomAuth(stores, preHook, {
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
});
|
||||
});
|
||||
|
@ -12,9 +12,7 @@ beforeAll(async () => {
|
||||
db = await dbInit('strategy_api_serial', getLogger);
|
||||
app = await setupAppWithCustomConfig(db.stores, {
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
});
|
||||
await db.stores.strategyStore.createStrategy({
|
||||
|
@ -14,9 +14,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -112,7 +112,6 @@ describe('User Admin API with email configuration', () => {
|
||||
},
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
showUserDeviceCount: true,
|
||||
},
|
||||
},
|
||||
@ -166,7 +165,6 @@ describe('User Admin API without email', () => {
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
showUserDeviceCount: true,
|
||||
},
|
||||
},
|
||||
|
@ -40,9 +40,7 @@ beforeAll(async () => {
|
||||
app = await setupAppWithCustomConfig(stores, {
|
||||
enterpriseVersion: 'enterprise',
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
});
|
||||
|
||||
|
@ -24,9 +24,7 @@ beforeAll(async () => {
|
||||
type: 'none',
|
||||
},
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -21,9 +21,7 @@ beforeAll(async () => {
|
||||
db.stores,
|
||||
{
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
},
|
||||
flags: {},
|
||||
},
|
||||
},
|
||||
db.rawDatabase,
|
||||
|
@ -57,7 +57,6 @@ async function setup({
|
||||
},
|
||||
experimental: {
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
etagVariant: {
|
||||
name: etagVariant,
|
||||
enabled: etagVariant !== undefined,
|
||||
|
@ -387,7 +387,6 @@ async function createApp(
|
||||
experimental: {
|
||||
...(customOptions?.experimental ?? {}),
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
...(customOptions?.experimental?.flags ?? {}),
|
||||
},
|
||||
},
|
||||
@ -443,7 +442,6 @@ export async function setupAppWithoutSupertest(
|
||||
experimental: {
|
||||
...(customOptions?.experimental ?? {}),
|
||||
flags: {
|
||||
strictSchemaValidation: true,
|
||||
...(customOptions?.experimental?.flags ?? {}),
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user