Skip to content

Commit

Permalink
Updating reporters to all use serde for both json and yaml + misc imp…
Browse files Browse the repository at this point in the history
…rovements (#373)

* modifying json/yaml responses to ALL use serde_yaml/json for serialization

* adding type information to error message
  • Loading branch information
joshfried-aws committed Jun 27, 2023
1 parent bea1ada commit 0d030d6
Show file tree
Hide file tree
Showing 10 changed files with 501 additions and 47 deletions.
158 changes: 158 additions & 0 deletions guard/resources/parse-tree/output-dir/parse_tree_functions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
assignments:
- var: template
value:
AccessClause:
query:
- Key: Resources
- AllValues: null
- Filter:
- null
- - - Clause:
access_clause:
query:
query:
- Key: Type
match_all: true
comparator:
- Eq
- false
compare_with:
Value:
path: ''
value: AWS::New::Service
custom_message: null
location:
line: 1
column: 29
negation: false
match_all: true
- var: type
value:
AccessClause:
query:
- Key: Resources
- Key: newServer
- Key: Type
match_all: true
guard_rules:
- rule_name: SOME_RULE
conditions:
- - Clause:
access_clause:
query:
query:
- Key: '%type'
match_all: true
comparator:
- Empty
- true
compare_with: null
custom_message: null
location:
line: 5
column: 21
negation: false
block:
assignments:
- var: lower
value:
FunctionCall:
parameters:
- AccessClause:
query:
- Key: '%type'
match_all: true
name: to_lower
location:
line: 6
column: 17
- var: upper
value:
FunctionCall:
parameters:
- AccessClause:
query:
- Key: '%type'
match_all: true
name: to_upper
location:
line: 10
column: 17
conjunctions:
- - Clause:
Clause:
access_clause:
query:
query:
- Key: '%lower'
match_all: true
comparator:
- Eq
- false
compare_with:
Value:
path: ''
value: aws::new::service
custom_message: null
location:
line: 7
column: 5
negation: false
- - Clause:
Clause:
access_clause:
query:
query:
- Key: '%lower'
match_all: true
comparator:
- Eq
- false
compare_with:
Value:
path: ''
value: /aws::new::service/
custom_message: null
location:
line: 8
column: 5
negation: false
- - Clause:
Clause:
access_clause:
query:
query:
- Key: '%upper'
match_all: true
comparator:
- Eq
- false
compare_with:
Value:
path: ''
value: AWS::NEW::SERVICE
custom_message: null
location:
line: 11
column: 5
negation: false
- - Clause:
Clause:
access_clause:
query:
query:
- Key: '%upper'
match_all: true
comparator:
- Eq
- false
compare_with:
Value:
path: ''
value: /AWS::NEW::SERVICE/
custom_message: null
location:
line: 12
column: 5
negation: false
parameterized_rules: []

0 comments on commit 0d030d6

Please sign in to comment.