@@ -18,8 +18,7 @@ Each crate's json output is checked by 2 programs: [jsondoclint](#jsondocck) and
1818This makes sure there are no dangling [ ` Id ` ] s.
1919
2020<!-- TODO: It does some more things too?
21- Also, talk about how it works
22- -->
21+ Also, talk about how it works -->
2322
2423## jsondocck
2524
@@ -35,7 +34,7 @@ It uses [JSONPath] as a query language, which takes a path, and returns a *list*
3534- ` //@ has <path> <value> ` : Check ` <path> ` exists, and at least 1 of the matches is equal to the given ` <value> `
3635- ` //@ !has <path> <value> ` : Checks ` <path> ` exists, but none of the matches equal the given ` <value> ` .
3736- ` //@ is <path> <value> ` : Check ` <path> ` matches exactly one value, and it's equal to the given ` <value> ` .
38- - ` //@ is <path> <value> <value>... ` : Check that ` <path> ` matches to exactly every given ` <value> ` .
37+ - ` //@ is <path> <value> <value>... ` : Check that ` <path> ` matches to exactly every given ` <value> ` .
3938 Ordering doesn't matter here.
4039- ` //@ !is <path> <value> ` : Check ` <path> ` matches exactly one value, and that value is not equal to the given ` <value> ` .
4140- ` //@ count <path> <number> ` : Check that ` <path> ` matches to ` <number> ` of values.
@@ -48,7 +47,8 @@ These are defined in [`directive.rs`].
4847Values can be either JSON values, or variables.
4948
5049- JSON values are JSON literals, e.g. ` true ` , ` "string" ` , ` {"key": "value"} ` .
51- These often need to be quoted using ` ' ` , to be processed as 1 value. See [ §Argument splitting] ( #argument-splitting )
50+ These often need to be quoted using ` ' ` , to be processed as 1 value.
51+ See [ §Argument splitting] ( #argument-splitting )
5252- Variables can be used to store the value in one path, and use it in later queries.
5353 They are set with the ` //@ set <name> = <path> ` directive, and accessed with ` $<name> `
5454
0 commit comments