diff --git a/src/lib/openapi/meta-schema-rules.test.ts b/src/lib/openapi/meta-schema-rules.test.ts index 45d99af20d..39573bd921 100644 --- a/src/lib/openapi/meta-schema-rules.test.ts +++ b/src/lib/openapi/meta-schema-rules.test.ts @@ -69,11 +69,22 @@ const metaRules: Rule[] = [ type: 'object', // properties of the schema should be an object additionalProperties: { // with the following shape - type: 'object', - properties: { - description: { type: 'string' }, - }, - required: ['description'], + anyOf: [ + { + type: 'object', + properties: { + description: { type: 'string' }, + }, + required: ['description'], + }, + { + type: 'object', + properties: { + $ref: { type: 'string' }, + }, + required: ['$ref'], + }, + ], }, }, }, @@ -103,7 +114,6 @@ const metaRules: Rule[] = [ 'featureEventsSchema', 'featureSchema', 'featuresSchema', - 'featureStrategySchema', 'featureStrategySegmentSchema', 'featureTypeSchema', 'featureTypesSchema', @@ -132,7 +142,6 @@ const metaRules: Rule[] = [ 'pushVariantsSchema', 'resetPasswordSchema', 'requestsPerSecondSchema', - 'requestsPerSecondSegmentedSchema', 'roleSchema', 'sdkContextSchema', 'searchEventsSchema', diff --git a/src/lib/openapi/spec/advanced-playground-request-schema.ts b/src/lib/openapi/spec/advanced-playground-request-schema.ts index b19ddd98d4..161fba6607 100644 --- a/src/lib/openapi/spec/advanced-playground-request-schema.ts +++ b/src/lib/openapi/spec/advanced-playground-request-schema.ts @@ -32,7 +32,6 @@ export const advancedPlaygroundRequestSchema = { ], }, context: { - description: 'The context to use when evaluating toggles', $ref: sdkContextSchema.$id, }, }, diff --git a/src/lib/openapi/spec/playground-request-schema.ts b/src/lib/openapi/spec/playground-request-schema.ts index 87f8c5546d..9ba04e7141 100644 --- a/src/lib/openapi/spec/playground-request-schema.ts +++ b/src/lib/openapi/spec/playground-request-schema.ts @@ -30,7 +30,6 @@ export const playgroundRequestSchema = { ], }, context: { - description: 'The context to use when evaluating toggles', $ref: sdkContextSchema.$id, }, }, diff --git a/src/test/e2e/api/openapi/__snapshots__/openapi.e2e.test.ts.snap b/src/test/e2e/api/openapi/__snapshots__/openapi.e2e.test.ts.snap index 98dc08541e..b5382db74f 100644 --- a/src/test/e2e/api/openapi/__snapshots__/openapi.e2e.test.ts.snap +++ b/src/test/e2e/api/openapi/__snapshots__/openapi.e2e.test.ts.snap @@ -835,7 +835,6 @@ The provider you choose for your addon dictates what properties the \`parameters "properties": { "context": { "$ref": "#/components/schemas/sdkContextSchema", - "description": "The context to use when evaluating toggles", }, "environments": { "description": "The environments to evaluate toggles in.", @@ -3850,7 +3849,6 @@ The provider you choose for your addon dictates what properties the \`parameters "properties": { "context": { "$ref": "#/components/schemas/sdkContextSchema", - "description": "The context to use when evaluating toggles", }, "environment": { "description": "The environment to evaluate toggles in.",