diff --git a/Schema/FeatureEvaluationEvent/AppConfigurationFeatureEvaluationEventv1.0.0.schema.json b/Schema/FeatureEvaluationEvent/AppConfigurationFeatureEvaluationEventv1.0.0.schema.json new file mode 100644 index 0000000..9fcdffb --- /dev/null +++ b/Schema/FeatureEvaluationEvent/AppConfigurationFeatureEvaluationEventv1.0.0.schema.json @@ -0,0 +1,41 @@ +{ + "definitions": {}, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "http://azconfig.io/schemas/FeatureManagement/v1.0.0/AppConfigurationFeatureEvaluationEvent.json", + "type": "object", + "title": "A Feature Evaluation Event with App Configuration Data", + "allOf": [ + { + "$ref": "FeatureEvaluationEvent.v1.0.0.schema.json" + } + ], + "required": [ + "AllocationId", + "ETag", + "FeatureFlagReference" + ], + "properties": { + "AllocationId": { + "$id": "#/properties/AllocationId", + "type": "string", + "title": "Allocation Id", + "description": "A unique identifier for the allocation of the feature flag. The value changes when any allocation of the flag changes.", + "pattern": "^[A-Za-z0-9+/]*={0,2}$", + "maxLength": 20 + }, + "ETag": { + "$id": "#/properties/ETag", + "type": "string", + "title": "ETag", + "description": "The ETag of the feature flag.", + "pattern": "^(.*)$" + }, + "FeatureFlagReference": { + "$id": "#/properties/FeatureFlagReference", + "type": "string", + "format": "uri", + "title": "Feature Flag Reference", + "description": "The reference to the feature flag being evaluated. Example: https://{host}/kv/{feature_flag_key}." + } + } +} diff --git a/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json b/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json index 4e1da1a..83eda14 100644 --- a/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json +++ b/Schema/FeatureEvaluationEvent/FeatureEvaluationEvent.v1.0.0.schema.json @@ -77,28 +77,6 @@ "description": "The percentage of users assigned to the variant that was assigned. This field is optional and only emitted when the assignment reason is DefaultWhenEnabled or Percentile.", "minimum": 0, "maximum": 100 - }, - "AllocationId": { - "$id": "#/properties/AllocationId", - "type": "string", - "title": "Allocation Id", - "description": "A unique identifier for the allocation of the feature flag. The value changes when any allocation of the flag changes.", - "pattern": "^[A-Za-z0-9+/]*={0,2}$", - "maxLength": 20 - }, - "ETag": { - "$id": "#/properties/ETag", - "type": "string", - "title": "ETag", - "description": "The ETag of the feature flag.", - "pattern": "^(.*)$" - }, - "FeatureFlagReference": { - "$id": "#/properties/FeatureFlagReference", - "type": "string", - "format": "uri", - "title": "Feature Flag Reference", - "description": "The reference to the feature flag being evaluated. Example: https://{host}/kv/{feature_flag_key}." } } }