Gists don't let me upload binary files directly. To get the output.bin
binary file, run:
echo "0x03 0x01 0x01 0x66 0x6f 0x6f 0xfa 0x01" | xxd -r > output.bin
Gists don't let me upload binary files directly. To get the output.bin
binary file, run:
echo "0x03 0x01 0x01 0x66 0x6f 0x6f 0xfa 0x01" | xxd -r > output.bin
To bundle, run the following from the root of https://github.com/krakend/krakend-schema:
$ jsonschema bundle krakend.json --resolve v2.6
{ | |
"data": true, | |
"strategy": true, | |
"@extra_comment": "here" | |
} |
import re | |
import sys | |
from collections import defaultdict | |
def split_and_group_errors(input_path): | |
# Regex to detect the start of an error block and capture the diagnostic name | |
start_pattern = re.compile( | |
r'^(?P<file>.+?):(?P<line>\d+):(?P<col>\d+): error: .* \[(?P<diag>[^\]]+)\]' | |
) | |
groups = defaultdict(list) |