mirror of
https://github.com/NixOS/nix.git
synced 2025-11-28 05:00:58 +01:00
JSON impl and Schema for DummyStore
This is the "keystone" that puts most of the other store-layer JSON formats together. Also, add some documentation for JSON testing.
This commit is contained in:
parent
622a5cd1bf
commit
0275b64b81
18 changed files with 542 additions and 55 deletions
|
|
@ -212,6 +212,19 @@ schemas += [
|
|||
},
|
||||
]
|
||||
|
||||
# Dummy store
|
||||
schemas += [
|
||||
{
|
||||
'stem' : 'store',
|
||||
'schema' : schema_dir / 'store-v1.yaml',
|
||||
'files' : [
|
||||
'empty.json',
|
||||
'one-flat-file.json',
|
||||
'one-derivation.json',
|
||||
],
|
||||
},
|
||||
]
|
||||
|
||||
# Validate each example against the schema
|
||||
foreach schema : schemas
|
||||
stem = schema['stem']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue