@@ -93,41 +93,41 @@ program: |
9393 }
9494 }.encode_json()
9595 ).do_request().as(resp, resp.StatusCode == 200 ?
96- resp.Body.decode_json().as(body, body.?data.configurationFindings.nodes.orValue(null) != null ?
97- {
98- "events": body.data.configurationFindings.nodes.map(e, {
99- "message": e.encode_json(),
100- }),
101- "end_cursor": {
102- ?"value": body.?data.configurationFindings.pageInfo.hasNextPage.orValue(false) ?
103- body.?data.configurationFindings.pageInfo.endCursor
104- :
105- optional.none()
106- },
107- "want_more": body.?data.configurationFindings.pageInfo.hasNextPage.orValue(false),
108- }
109- :
110- {
111- "events": [],
112- "want_more": false,
113- }
114- )
115- :
96+ resp.Body.decode_json().as(body, body.?data.configurationFindings.nodes.orValue(null) != null ?
11697 {
117- "events": {
118- "error": {
119- "code": string(resp.StatusCode),
120- "id": string(resp.Status),
121- "message": "POST " + state.url.trim_right("/") + "/graphql:" + (
122- size(resp.Body) != 0 ?
123- string(resp.Body)
124- :
125- string(resp.Status) + ' (' + string(resp.StatusCode) + ')'
126- ),
127- },
98+ "events": body.data.configurationFindings.nodes.map(e, {
99+ "message": e.encode_json(),
100+ }),
101+ "end_cursor": {
102+ ?"value": body.?data.configurationFindings.pageInfo.hasNextPage.orValue(false) ?
103+ body.?data.configurationFindings.pageInfo.endCursor
104+ :
105+ optional.none()
128106 },
107+ "want_more": body.?data.configurationFindings.pageInfo.hasNextPage.orValue(false),
108+ }
109+ :
110+ {
111+ "events": [],
129112 "want_more": false,
130113 }
114+ )
115+ :
116+ {
117+ "events": {
118+ "error": {
119+ "code": string(resp.StatusCode),
120+ "id": string(resp.Status),
121+ "message": "POST " + state.url.trim_right("/") + "/graphql:" + (
122+ size(resp.Body) != 0 ?
123+ string(resp.Body)
124+ :
125+ string(resp.Status) + ' (' + string(resp.StatusCode) + ')'
126+ ),
127+ },
128+ },
129+ "want_more": false,
130+ }
131131 )
132132 )
133133tags:
0 commit comments