-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement YamlPath for YamlDotNet (#509)
- Loading branch information
Showing
14 changed files
with
1,848 additions
and
26 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
5 changes: 4 additions & 1 deletion
5
AppInspector.RulesEngine/OatExtensions/OatRegexWithIndexClause.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 |
---|---|---|
@@ -1,23 +1,26 @@ | ||
// Copyright (C) Microsoft. All rights reserved. Licensed under the MIT License. | ||
|
||
using System.Collections.Generic; | ||
using Microsoft.CST.OAT; | ||
|
||
namespace Microsoft.ApplicationInspector.RulesEngine.OatExtensions; | ||
|
||
public class OatRegexWithIndexClause : Clause | ||
{ | ||
public OatRegexWithIndexClause(PatternScope[] scopes, string? field = null, string[]? xPaths = null, | ||
string[]? jsonPaths = null) : base(Operation.Custom, field) | ||
string[]? jsonPaths = null, string[]? ymlPaths = null) : base(Operation.Custom, field) | ||
{ | ||
Scopes = scopes; | ||
CustomOperation = "RegexWithIndex"; | ||
XPaths = xPaths; | ||
JsonPaths = jsonPaths; | ||
YmlPaths = ymlPaths; | ||
} | ||
|
||
public string[]? JsonPaths { get; } | ||
|
||
public string[]? XPaths { get; } | ||
|
||
public PatternScope[] Scopes { get; } | ||
public string[]? YmlPaths { get; } | ||
} |
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
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
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
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.