You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Breaking: new RoAST representation of module.comments (#1987)
A comment is just text at a given location, so perfectly representable as just
a location. Doing this also allows us to avoid base64-decoding each one, as Regal
can instead get the original text from the source file.
While this is a breaking change for anyone referencing `input.comments` directly,
users are advised to instead reference `data.regal.ast.comments_decoded`, which'll
provide them a list of comment loctations in the usual location form.
Also:
- Played some with using the new `not` form in a few places, mostly so that we're
invested in that from the start.
Signed-off-by: Anders Eknert <anders.eknert@apple.com>
Copy file name to clipboardExpand all lines: build/capabilities.json
+50-1Lines changed: 50 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5712,7 +5712,7 @@
5712
5712
"decl": {
5713
5713
"args": [
5714
5714
{
5715
-
"description": "a duration like \"3m\"; see the [Go `time` package documentation](https://golang.org/pkg/time/#ParseDuration) for more details",
5715
+
"description": "a duration like \"3m\"; see the [OPA `Duration Parsing` documentation](https://www.openpolicyagent.org/docs/latest/policy-reference/builtins/time#duration-parsing) for more details",
5716
5716
"name": "duration",
5717
5717
"type": "string"
5718
5718
}
@@ -6131,6 +6131,52 @@
6131
6131
"type": "function"
6132
6132
}
6133
6133
},
6134
+
{
6135
+
"name": "uri.is_valid",
6136
+
"description": "Returns true if the input can be parsed as a URI.",
6137
+
"decl": {
6138
+
"args": [
6139
+
{
6140
+
"description": "the URI string to validate",
6141
+
"name": "uri",
6142
+
"type": "string"
6143
+
}
6144
+
],
6145
+
"result": {
6146
+
"description": "true if `uri` is a valid URI, false otherwise",
6147
+
"name": "result",
6148
+
"type": "boolean"
6149
+
},
6150
+
"type": "function"
6151
+
}
6152
+
},
6153
+
{
6154
+
"name": "uri.parse",
6155
+
"description": "Parses a URI and returns an object containing its components according to RFC 3986. Empty components are omitted. In addition to the standard components, `raw_query` is returned for use with `urlquery` builtins, and `raw_path` is returned to allow detection of path-based exploits using percent-encoded characters.",
6156
+
"decl": {
6157
+
"args": [
6158
+
{
6159
+
"description": "the URI string to parse",
6160
+
"name": "uri",
6161
+
"type": "string"
6162
+
}
6163
+
],
6164
+
"result": {
6165
+
"description": "object containing URI components",
6166
+
"dynamic": {
6167
+
"key": {
6168
+
"type": "string"
6169
+
},
6170
+
"value": {
6171
+
"type": "string"
6172
+
}
6173
+
},
6174
+
"name": "output",
6175
+
"type": "object"
6176
+
},
6177
+
"type": "function"
6178
+
}
6179
+
},
6134
6180
{
6135
6181
"name": "urlquery.decode",
6136
6182
"description": "Decodes a URL-encoded input string.",
0 commit comments