Skip to content

Commit

Permalink
feat!(...): update schema (#98)
Browse files Browse the repository at this point in the history
* update schema

* change secrets key to postprocessor-patterns

---------

Co-authored-by: Yosef Alsuhaibani <[email protected]>
Co-authored-by: Yosef Alsuhaibani <[email protected]>
  • Loading branch information
3 people authored Jul 24, 2023
1 parent 2899b2a commit 8f315ed
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions rule_schema_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,26 @@ $schema: http://json-schema.org/draft-07/schema#
# comment before!!
$defs:
# EXPERIMENTAL
postprocessor-patterns-content:
type: array
minItems: 1
items:
ref: "#/$defs/general-pattern-content"
# EXPERIMENTAL
request-content:
properties:
url:
type: string
method:
type: string
headers:
type: object
# EXPERIMENTAL
response-content:
properties:
return_code:
type: string
# EXPERIMENTAL
new-source-pattern:
$ref: "#/$defs/new-pattern"
properties:
Expand Down Expand Up @@ -713,6 +733,8 @@ properties:
# EXPERIMENTAL
- join
- extract
# EXPERIMENTAL
- semgrep_internal_postprocessor
languages:
$ref: "#/$defs/languages"
paths:
Expand Down Expand Up @@ -745,6 +767,12 @@ properties:
taint:
$ref: "#/$defs/new-taint-content"
# EXPERIMENTAL
postprocessor-patterns:
$ref: "#/$defs/postprocessor-patterns-content"
request:
$ref: "#/$defs/request-content"
response:
$ref: "#/$defs/response-content"
join:
$ref: "#/$defs/join-content"
fix:
Expand Down Expand Up @@ -989,3 +1017,32 @@ properties:
pattern-propagators: false
pattern-sanitizers: false
join: false
- if:
properties:
mode:
const: semgrep_internal_postprocessor
required:
- mode
then:
required:
- id
- message
- severity
- postprocessor-patterns
- request
- response
properties:
extract: false
dest-language: false
# EXPERIMENTAL
transform: false
reduce: false
patterns: false
pattern: false
pattern-either: false
pattern-regex: false
pattern-sinks: false
pattern-sources: false
pattern-propagators: false
pattern-sanitizers: false
match: false

0 comments on commit 8f315ed

Please sign in to comment.