mirror of
https://github.com/NixOS/nix.git
synced 2025-11-26 20:20:58 +01:00
nlohmann::json instance and JSON Schema for Hash
Improving and codifying our experimental JSON interfacing. Co-Authored-By: Robert Hensing <robert@roberthensing.nl>
This commit is contained in:
parent
f05d240222
commit
5e7ee808de
16 changed files with 252 additions and 24 deletions
5
src/libutil-tests/data/hash/blake3-base64.json
Normal file
5
src/libutil-tests/data/hash/blake3-base64.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"algorithm": "blake3",
|
||||
"format": "base64",
|
||||
"hash": "nnDuFEmWX7YtBJBAoe0G7Dd0MNpuwTFz58T//NKL6YA="
|
||||
}
|
||||
5
src/libutil-tests/data/hash/sha256-base16.json
Normal file
5
src/libutil-tests/data/hash/sha256-base16.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"algorithm": "sha256",
|
||||
"format": "base16",
|
||||
"hash": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b"
|
||||
}
|
||||
5
src/libutil-tests/data/hash/sha256-base64.json
Normal file
5
src/libutil-tests/data/hash/sha256-base64.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"algorithm": "sha256",
|
||||
"format": "base64",
|
||||
"hash": "8OTC92xYkW7CWPJGhRvqCR0U1CR6L8PhhpRGGxgW4Ts="
|
||||
}
|
||||
5
src/libutil-tests/data/hash/sha256-nix32.json
Normal file
5
src/libutil-tests/data/hash/sha256-nix32.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"algorithm": "sha256",
|
||||
"format": "nix32",
|
||||
"hash": "0fz12qc1nillhvhw6bvs4ka18789x8dqaipjb316x4aqdkvw5r7h"
|
||||
}
|
||||
5
src/libutil-tests/data/hash/simple.json
Normal file
5
src/libutil-tests/data/hash/simple.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"algorithm": "sha256",
|
||||
"format": "base64",
|
||||
"hash": "8OTC92xYkW7CWPJGhRvqCR0U1CR6L8PhhpRGGxgW4Ts="
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue