mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-20 00:08:02 +01:00
test: meta schema rules should not check description on ref (#3980)
This commit is contained in:
parent
8bddbd80f6
commit
6ae4fe2085
@ -69,11 +69,22 @@ const metaRules: Rule[] = [
|
|||||||
type: 'object', // properties of the schema should be an object
|
type: 'object', // properties of the schema should be an object
|
||||||
additionalProperties: {
|
additionalProperties: {
|
||||||
// with the following shape
|
// with the following shape
|
||||||
type: 'object',
|
anyOf: [
|
||||||
properties: {
|
{
|
||||||
description: { type: 'string' },
|
type: 'object',
|
||||||
},
|
properties: {
|
||||||
required: ['description'],
|
description: { type: 'string' },
|
||||||
|
},
|
||||||
|
required: ['description'],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'object',
|
||||||
|
properties: {
|
||||||
|
$ref: { type: 'string' },
|
||||||
|
},
|
||||||
|
required: ['$ref'],
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -103,7 +114,6 @@ const metaRules: Rule[] = [
|
|||||||
'featureEventsSchema',
|
'featureEventsSchema',
|
||||||
'featureSchema',
|
'featureSchema',
|
||||||
'featuresSchema',
|
'featuresSchema',
|
||||||
'featureStrategySchema',
|
|
||||||
'featureStrategySegmentSchema',
|
'featureStrategySegmentSchema',
|
||||||
'featureTypeSchema',
|
'featureTypeSchema',
|
||||||
'featureTypesSchema',
|
'featureTypesSchema',
|
||||||
@ -132,7 +142,6 @@ const metaRules: Rule[] = [
|
|||||||
'pushVariantsSchema',
|
'pushVariantsSchema',
|
||||||
'resetPasswordSchema',
|
'resetPasswordSchema',
|
||||||
'requestsPerSecondSchema',
|
'requestsPerSecondSchema',
|
||||||
'requestsPerSecondSegmentedSchema',
|
|
||||||
'roleSchema',
|
'roleSchema',
|
||||||
'sdkContextSchema',
|
'sdkContextSchema',
|
||||||
'searchEventsSchema',
|
'searchEventsSchema',
|
||||||
|
@ -32,7 +32,6 @@ export const advancedPlaygroundRequestSchema = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
context: {
|
context: {
|
||||||
description: 'The context to use when evaluating toggles',
|
|
||||||
$ref: sdkContextSchema.$id,
|
$ref: sdkContextSchema.$id,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -30,7 +30,6 @@ export const playgroundRequestSchema = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
context: {
|
context: {
|
||||||
description: 'The context to use when evaluating toggles',
|
|
||||||
$ref: sdkContextSchema.$id,
|
$ref: sdkContextSchema.$id,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -835,7 +835,6 @@ The provider you choose for your addon dictates what properties the \`parameters
|
|||||||
"properties": {
|
"properties": {
|
||||||
"context": {
|
"context": {
|
||||||
"$ref": "#/components/schemas/sdkContextSchema",
|
"$ref": "#/components/schemas/sdkContextSchema",
|
||||||
"description": "The context to use when evaluating toggles",
|
|
||||||
},
|
},
|
||||||
"environments": {
|
"environments": {
|
||||||
"description": "The environments to evaluate toggles in.",
|
"description": "The environments to evaluate toggles in.",
|
||||||
@ -3850,7 +3849,6 @@ The provider you choose for your addon dictates what properties the \`parameters
|
|||||||
"properties": {
|
"properties": {
|
||||||
"context": {
|
"context": {
|
||||||
"$ref": "#/components/schemas/sdkContextSchema",
|
"$ref": "#/components/schemas/sdkContextSchema",
|
||||||
"description": "The context to use when evaluating toggles",
|
|
||||||
},
|
},
|
||||||
"environment": {
|
"environment": {
|
||||||
"description": "The environment to evaluate toggles in.",
|
"description": "The environment to evaluate toggles in.",
|
||||||
|
Loading…
Reference in New Issue
Block a user