mirror of
https://github.com/NixOS/nix.git
synced 2025-11-18 08:19:35 +01:00
nlohmann::json instance and JSON Schema for MemorySourceAccessor
As documented, this for file system objects themselves, since `MemorySourceAccessor` is an implementation detail.
This commit is contained in:
parent
8026dd1ba4
commit
12760756bb
20 changed files with 456 additions and 48 deletions
24
src/libutil-tests/data/memory-source-accessor/complex.json
Normal file
24
src/libutil-tests/data/memory-source-accessor/complex.json
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"contents": {
|
||||
"bar": {
|
||||
"contents": {
|
||||
"baz": {
|
||||
"contents": "Z29vZCBkYXksCg==",
|
||||
"executable": true,
|
||||
"type": "regular"
|
||||
},
|
||||
"quux": {
|
||||
"target": "L292ZXIvdGhlcmU=",
|
||||
"type": "symlink"
|
||||
}
|
||||
},
|
||||
"type": "directory"
|
||||
},
|
||||
"foo": {
|
||||
"contents": "aGVsbG8K",
|
||||
"executable": false,
|
||||
"type": "regular"
|
||||
}
|
||||
},
|
||||
"type": "directory"
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"contents": "YXNkZg==",
|
||||
"executable": false,
|
||||
"type": "regular"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue