From a16efc9260c5d781d6017a1926b87f202a9f8c79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Wed, 14 May 2025 12:01:51 +0200 Subject: [PATCH] WIP: not sure who resolveMetricsEnvironment will work --- src/lib/openapi/spec/client-application-schema.ts | 6 ------ src/lib/openapi/spec/client-features-query-schema.test.ts | 1 - src/lib/openapi/spec/client-features-query-schema.ts | 6 ------ src/lib/openapi/spec/client-metrics-schema.ts | 7 ------- src/lib/openapi/spec/sdk-context-schema.ts | 5 ----- 5 files changed, 25 deletions(-) diff --git a/src/lib/openapi/spec/client-application-schema.ts b/src/lib/openapi/spec/client-application-schema.ts index b7e4f3d0dc..5fff0c0287 100644 --- a/src/lib/openapi/spec/client-application-schema.ts +++ b/src/lib/openapi/spec/client-application-schema.ts @@ -24,12 +24,6 @@ export const clientApplicationSchema = { 'An SDK version identifier. Usually formatted as "unleash-client-:"', example: 'unleash-client-java:7.0.0', }, - environment: { - description: `The SDK's configured 'environment' property. This property was deprecated in v5. This property does **not** control which Unleash environment the SDK gets toggles for. To control Unleash environments, use the SDKs API key.`, - deprecated: true, - type: 'string', - example: 'development', - }, platformName: { description: 'The platform the application is running on. For languages that compile to binaries, this can be omitted', diff --git a/src/lib/openapi/spec/client-features-query-schema.test.ts b/src/lib/openapi/spec/client-features-query-schema.test.ts index 2ab8287b5b..19619badde 100644 --- a/src/lib/openapi/spec/client-features-query-schema.test.ts +++ b/src/lib/openapi/spec/client-features-query-schema.test.ts @@ -14,7 +14,6 @@ test('clientFeatureQuerySchema all fields', () => { tag: [['some-tag', 'some-other-tag']], project: ['default'], namePrefix: 'some-prefix', - environment: 'some-env', inlineSegmentConstraints: true, }; diff --git a/src/lib/openapi/spec/client-features-query-schema.ts b/src/lib/openapi/spec/client-features-query-schema.ts index 5542deb98c..733e763b24 100644 --- a/src/lib/openapi/spec/client-features-query-schema.ts +++ b/src/lib/openapi/spec/client-features-query-schema.ts @@ -33,12 +33,6 @@ export const clientFeaturesQuerySchema = { type: 'string', example: 'payment', }, - environment: { - type: 'string', - description: - 'Strategies for the feature flag configured for this environment are included. This is now handled by API tokens and was marked as deprecated in v5', - deprecated: true, - }, inlineSegmentConstraints: { description: 'Set to true if requesting client does not support Unleash-Client-Specification 4.2.2 or newer. Modern SDKs will have this set to false, since they will be able to merge constraints and segments themselves', diff --git a/src/lib/openapi/spec/client-metrics-schema.ts b/src/lib/openapi/spec/client-metrics-schema.ts index bc9b874d70..4c63d8a8aa 100644 --- a/src/lib/openapi/spec/client-metrics-schema.ts +++ b/src/lib/openapi/spec/client-metrics-schema.ts @@ -20,13 +20,6 @@ export const clientMetricsSchema = { type: 'string', example: 'application-name-dacb1234', }, - environment: { - description: - 'Which environment the application is running in. This property was deprecated in v5. This can be determined by the API key calling this endpoint.', - type: 'string', - example: 'development', - deprecated: true, - }, sdkVersion: { type: 'string', description: diff --git a/src/lib/openapi/spec/sdk-context-schema.ts b/src/lib/openapi/spec/sdk-context-schema.ts index 61080b9023..d9d8bef68e 100644 --- a/src/lib/openapi/spec/sdk-context-schema.ts +++ b/src/lib/openapi/spec/sdk-context-schema.ts @@ -20,11 +20,6 @@ export const sdkContextSchema = { description: 'A DateTime (or similar) data class instance or a string in an RFC3339-compatible format. Defaults to the current time if not set by the user.', }, - environment: { - type: 'string', - deprecated: true, - description: 'The environment the app is running in.', - }, properties: { type: 'object', additionalProperties: { type: 'string' },