docs(ingest): document missing custom filters and Jinja test operators#3077
Open
aheuze wants to merge 1 commit into
Open
docs(ingest): document missing custom filters and Jinja test operators#3077aheuze wants to merge 1 commit into
aheuze wants to merge 1 commit into
Conversation
Add 7 undocumented custom filters to the parser reference:
- is_ipaddress, is_ipv4, is_ipv6: IP address validation
- is_url: URL validation
- from_json / to_json: JSON serialization/deserialization
- to_mac_address: MAC address normalization to EUI-48
Add a new "Test operators" section documenting the btiwise_has_flag
operator usable with Jinja2's `is` keyword in {% if %} blocks.
Also fix a minor typo: "an regular" -> "a regular".
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Newest code from aheuze has been published to preview environment 🚀 Latest deployment was built on 2026-06-23 14:29:12 (0228bbbe6138e3857ae5ffac3bd582b1bf2b92c0). |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The parser reference documentation was missing several custom Jinja filters and the test operators section entirely.
Changes
7 undocumented custom filters added:
is_ipaddress— tests if the value is a valid IP address (v4 or v6)is_ipv4— tests if the value is a valid IPv4 addressis_ipv6— tests if the value is a valid IPv6 addressis_url— tests if the value is a valid URLfrom_json— deserializes a JSON string into a dictto_json— serializes a value into a JSON stringto_mac_address— normalizes a MAC address to EUI-48 formatNew section: Test operators
Documents the
btiwise_has_flag(flag)operator usable with Jinja2'siskeyword in{% if %}blocks.Minor fix: typo "an regular" → "a regular".