Skip to content

Conversation

zhiyuanliang-ms
Copy link
Member

Packages impacted by this PR

@azure/app-configuration

Issues associated with this PR

Describe the problem that is addressed by this PR

The feature flag model is missing the requirement_type" field. Also, id` should be a required field.

The App Configuration feature flag schema can be found here

What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?

Are there test cases added in this PR? (If not, why?)

Provide a list of related PRs (if any)

Command used to generate this PR:**(Applicable only to SDK release request PRs)

Checklists

  • Added impacted package name to the issue description
  • Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
  • Added a changelog (if necessary)

@Copilot Copilot AI review requested due to automatic review settings October 2, 2025 15:56
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the feature flag model in the Azure App Configuration SDK to align with the official FeatureManagement schema. The main purpose is to add the missing requirement_type field and make the id field required in the feature flag structure.

Key Changes

  • Added requirementType field to feature flag conditions with "All" or "Any" values
  • Changed id field from optional to required in the feature flag value interface
  • Updated serialization/deserialization logic to handle the new requirement_type field

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/internal/jsonModels.ts Updated JSON model to add requirement_type field and make id required
src/featureFlag.ts Added requirementType to public interface and updated helper functions for serialization
review/app-configuration-node.api.md Updated API documentation to reflect interface changes
test/public/featureFlag.spec.ts Updated test fixtures to include required fields
assets.json Updated asset tag reference for test recordings

@github-actions github-actions bot added the App Configuration Azure.ApplicationModel.Configuration label Oct 2, 2025
Copy link

github-actions bot commented Oct 2, 2025

API Change Check

APIView identified API level changes in this PR and created the following API reviews

@azure/app-configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App Configuration Azure.ApplicationModel.Configuration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant