Skip to content
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

Expand public spec APIs, fix FilterSelector string #8

Merged
merged 2 commits into from
Nov 13, 2024
Merged

Expand public spec APIs, fix FilterSelector string #8

merged 2 commits into from
Nov 13, 2024

Conversation

theory
Copy link
Owner

@theory theory commented Nov 13, 2024

  • Add spec.Filter.Eval to allow public evaluation of a single JSON node. Used internally by spec.FilterSelector.Select.
  • Add spec.Segment.IsDescendant to tell wether a segments selects just from the current child node or also recursively selects from all of its descendants.
  • Make spec.SliceSelector.Bounds public.
  • Make the underlying struct defining spec.Wildcard public with the name spec.WildcardSelector.

Other changes:

*   Add `spec.Filter.Eval` to allow public evaluation of a single JSON
    node. Used internally by `spec.FilterSelector.Select`.
*   Add `spec.Segment.IsDescendant` to tell wether a segments selects
    just from the current child node or also recursively selects from
    all of its descendants.
*   Make `spec.SliceSelector.Bounds` public.
*   Make the underlying struct defining `spec.Wildcard` public with the
    name `spec.WildcardSelector`.

Other changes:

*   Add missing "?" to the stringification of `spec.FilterSelector`.
*   Upgrade to `golangci-lint` v1.62 and disable `gosec` G602 false
    positives (securego/gosec#1250)
@theory theory added the enhancement New feature or request label Nov 13, 2024
@theory theory self-assigned this Nov 13, 2024
@theory theory merged commit 71c8940 into main Nov 13, 2024
@theory theory deleted the respec branch November 13, 2024 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant