Skip to content

Commit

Permalink
add multi-type syntax to metavariable-type rule (#185)
Browse files Browse the repository at this point in the history
- [ ] I ran `make setup && make` to update the generated code after
editing a `.atd` file (TODO: have a CI check)
- [ ] I made sure we're still backward compatible with old versions of
the CLI.
For example, the Semgrep backend need to still be able to *consume* data
generated
	  by Semgrep 1.17.0.
See
https://atd.readthedocs.io/en/latest/atdgen-tutorial.html#smooth-protocol-upgrades
  • Loading branch information
ihji authored Nov 7, 2023
1 parent a0b4762 commit a13f7a4
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions rule_schema_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,14 @@ $defs:
type: string
type:
type: string
- required: [ metavariable, types ]
properties:
metavariable:
type: string
types:
type: array
items:
type: string
- required: [ metavariable, analyzer ]
properties:
metavariable:
Expand Down Expand Up @@ -557,10 +565,18 @@ $defs:
type:
title: Type expression
type: string
types:
title: Type expressions
type: array
items:
type: string
language:
type: string
required:
- type
oneOf:
- required:
- type
- required:
- types
additionalProperties: false
required:
- metavariable-type
Expand Down

0 comments on commit a13f7a4

Please sign in to comment.