@@ -6,6 +6,7 @@ $schema: http://json-schema.org/draft-07/schema#
6
6
# !!If you add new syntax to this file, you probably need to add some EXPERIMENTAL
7
7
# comment before!!
8
8
$defs :
9
+ # EXPERIMENTAL
9
10
new-pattern :
10
11
title : " Return finding where code matches against the following pattern"
11
12
oneOf :
14
15
oneOf :
15
16
- required : [ pattern ]
16
17
- required : [ regex ]
17
- - required : [ and ]
18
- - required : [ or ]
18
+ - required : [ all ]
19
+ - required : [ any ]
19
20
- required : [ not ]
20
21
- required : [ inside ]
21
22
- required : [ taint ]
@@ -24,12 +25,12 @@ $defs:
24
25
type : string
25
26
regex :
26
27
type : string
27
- and :
28
+ all :
28
29
type : array
29
30
minItems : 1
30
31
items :
31
32
$ref : " #/$defs/new-pattern"
32
- or :
33
+ any :
33
34
type : array
34
35
minItems : 1
35
36
items :
@@ -99,10 +100,12 @@ $defs:
99
100
oneOf :
100
101
- type : string
101
102
# This is scuffed, but it seems that `allOf` does not short circuit.
102
- # This schema can potentially run on things which are not objects (such as lists), and if that happens,
103
- # the validator will crash when it checks the keys of the object.
104
- # I would normally just use `allOf`, but since it doensn't short circuit, I had to instead make it this
105
- # weird `if-then-else` thing to properly skip the keys check on a non-object.
103
+ # This schema can potentially run on things which are not objects
104
+ # (such as lists), and if that happens, the validator will crash when
105
+ # it checks the keys of the object.
106
+ # I would normally just use `allOf`, but since it doensn't short circuit,
107
+ # I had to instead make it this weird `if-then-else` thing to properly
108
+ # skip the keys check on a non-object.
106
109
- if :
107
110
type : object
108
111
then :
@@ -723,8 +726,10 @@ properties:
723
726
# EXPERIMENTAL
724
727
r2c-internal-project-depends-on :
725
728
$ref : " #/$defs/r2c-internal-project-depends-on-content"
729
+ # EXPERIMENTAL
726
730
match :
727
731
$ref : " #/$defs/new-pattern"
732
+ # EXPERIMENTAL
728
733
extract :
729
734
title : Metavariable whose content to use as the extracted result for subsequent rules
730
735
type : string
@@ -808,6 +813,14 @@ properties:
808
813
extract : false
809
814
dest-language : false
810
815
reduce : false
816
+ patterns : false
817
+ pattern : false
818
+ pattern-either : false
819
+ pattern-regex : false
820
+ pattern-sinks : false
821
+ pattern-sources : false
822
+ pattern-propagators : false
823
+ pattern-sanitizers : false
811
824
match : false
812
825
- if :
813
826
properties :
0 commit comments