-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for YML Path Patterns #490
Comments
Maybe a solution would be to convert the yml to json and then apply json-path to it. Clearly it is important to narrow down the scope of the rules very much. |
I did consider this earlier and while technically possible to do the conversion, this means you don't get the information about where in the file the match occurred - you'd be able to identify in the converted JSON where it occurred - but there's no mapping from that back to where the finding is the YML file. |
YAMLPath is specified here: https://github.com/wwkimball/yamlpath/wiki/Segments-of-a-YAML-Path it might be possible to build this as extension methods on YamlMappingNode from YamlDotNet. |
This is live in 1.6.22. If you encounter any issues please let me know with the specific query you're having trouble with. |
As a follow up from #420 it would be nice to also support YAMLPath. I haven't found a C# library that has the functionality we need yet but YamlDotNet has an open feature request for this functionality (aaubry/YamlDotNet#333).
The text was updated successfully, but these errors were encountered: