-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add a constructor without FeatureManagementOption parameter for FeatureManager (#363) * add new constructor * update * Target on .NET 8.0 (#365) * target on .NET 8.0 * remove file * add net8.0 for Microsoft.FeatureManagement.AspNetCore * update package version * update * Add feature management schema for main branch (#362) * schema file added * README update * update * update * update README & remove the Microsoft schema file * update readme * update * Updates test schema and adjusts title (#372) * Support Microsoft Feature Management schema for main branch (#370) * use snake case * do not support root fall back for MS schema & remove EnsureInit * update * rename variable * update .NET FM schema * re-add schema link * add whitespace (#374) * update --------- Co-authored-by: Ross Grambo <rossgrambo@microsoft.com>
- Loading branch information
1 parent
40b3ca6
commit 9a7f2ff
Showing
13 changed files
with
427 additions
and
325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# Installs .NET 6 and .NET 7 for CI/CD environment | ||
# Installs .NET 6, .NET 7 and .NET 8 for CI/CD environment | ||
# see: https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script#examples | ||
|
||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; | ||
|
||
&([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://dot.net/v1/dotnet-install.ps1'))) -Channel 6.0 | ||
|
||
&([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://dot.net/v1/dotnet-install.ps1'))) -Channel 7.0 | ||
&([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://dot.net/v1/dotnet-install.ps1'))) -Channel 7.0 | ||
|
||
&([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://dot.net/v1/dotnet-install.ps1'))) -Channel 8.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
{ | ||
"definitions": {}, | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"title": "A .NET Feature Management Configuration", | ||
"required": [ | ||
"FeatureManagement" | ||
], | ||
"properties":{ | ||
"FeatureManagement": { | ||
"type": "object", | ||
"title": "Feature Management", | ||
"description": "Declares feature management configuration.", | ||
"required": [], | ||
"patternProperties": { | ||
"^[^:]*$": { | ||
"description": "Declares a feature flag.", | ||
"anyOf": [ | ||
{ | ||
"type": "boolean", | ||
"title": "On/Off Feature Flag", | ||
"description": "A feature flag that always returns the same value." | ||
}, | ||
{ | ||
"type": "object", | ||
"title": "Conditional Feature Flag", | ||
"description": "A feature flag which value is dynamic based on a set of feature filters", | ||
"required": [ | ||
"EnabledFor" | ||
], | ||
"properties": { | ||
"RequirementType": { | ||
"type": "string", | ||
"title": "Requirement Type", | ||
"description": "Determines whether any or all registered feature filters must be enabled for the feature to be considered enabled.", | ||
"enum": [ | ||
"Any", | ||
"All" | ||
], | ||
"default": "Any" | ||
}, | ||
"EnabledFor": { | ||
"oneOf": [ | ||
{ | ||
"type": "array", | ||
"title": "Feature Filter Collection", | ||
"description": "Feature filters that are evaluated to conditionally enable the flag.", | ||
"items": { | ||
"type": "object", | ||
"title": "Feature Filter Declaration", | ||
"required": [ | ||
"Name" | ||
], | ||
"properties": { | ||
"Name": { | ||
"type": "string", | ||
"title": "Feature Filter Name", | ||
"description": "The name used to refer to and require a feature filter.", | ||
"default": "", | ||
"examples": [ | ||
"Percentage", | ||
"TimeWindow" | ||
], | ||
"pattern": "^[^:]*$" | ||
}, | ||
"Parameters": { | ||
"type": "object", | ||
"title": "Feature Filter Parameters", | ||
"description": "Custom parameters for a given feature filter. A feature filter can require any set of parameters of any type.", | ||
"required": [], | ||
"patternProperties": { | ||
"^.*$": { | ||
"anyOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"type": "null" | ||
}, | ||
{ | ||
"type": "object" | ||
}, | ||
{ | ||
"type": "number" | ||
}, | ||
{ | ||
"type": "array" | ||
}, | ||
{ | ||
"type": "boolean" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "boolean" | ||
} | ||
] | ||
}, | ||
"additionalProperties": false | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.