-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: support automate function input secrets in C# SDK (#3324)
* introduce and use `SecretAttribute` during schema generation * format * format (for real) * `pragma` and style * Supressing CS8764 instead of CS8603 --------- Co-authored-by: Jedd Morgan <[email protected]>
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
Automate/Speckle.Automate.Sdk/DataAnnotations/SecretAttribute.cs
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,7 @@ | ||
namespace Speckle.Automate.Sdk.DataAnnotations; | ||
|
||
/// <summary> | ||
/// If specified, the given function input will be redacted in all contexts. | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.All)] | ||
public sealed class SecretAttribute : Attribute { } |
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