Skip to content

Commit d5a9e06

Browse files
authored
opa: expose json.marshal_with_options (#133)
Co-authored-by: Becojo <[email protected]>
1 parent 8c8dfac commit d5a9e06

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

opa/capabilities.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2161,6 +2161,51 @@
21612161
"type": "function"
21622162
}
21632163
},
2164+
{
2165+
"name": "json.marshal_with_options",
2166+
"decl": {
2167+
"args": [
2168+
{
2169+
"type": "any"
2170+
},
2171+
{
2172+
"dynamic": {
2173+
"key": {
2174+
"type": "string"
2175+
},
2176+
"value": {
2177+
"type": "any"
2178+
}
2179+
},
2180+
"static": [
2181+
{
2182+
"key": "indent",
2183+
"value": {
2184+
"type": "string"
2185+
}
2186+
},
2187+
{
2188+
"key": "prefix",
2189+
"value": {
2190+
"type": "string"
2191+
}
2192+
},
2193+
{
2194+
"key": "pretty",
2195+
"value": {
2196+
"type": "boolean"
2197+
}
2198+
}
2199+
],
2200+
"type": "object"
2201+
}
2202+
],
2203+
"result": {
2204+
"type": "string"
2205+
},
2206+
"type": "function"
2207+
}
2208+
},
21642209
{
21652210
"name": "json.match_schema",
21662211
"decl": {

0 commit comments

Comments
 (0)