Skip to content

Commit 04cb589

Browse files
committed
fix: add capitalize function to v0.9 and v0.10 basic catalogs
1 parent aecfc1f commit 04cb589

2 files changed

Lines changed: 53 additions & 1 deletion

File tree

specification/v0_10/catalogs/basic/catalog.json

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1110,6 +1110,30 @@
11101110
},
11111111
"required": ["call", "args"],
11121112
"unevaluatedProperties": false
1113+
},
1114+
"capitalize": {
1115+
"type": "object",
1116+
"description": "Converts an input string to a capitalized version.",
1117+
"properties": {
1118+
"call": {
1119+
"const": "capitalize"
1120+
},
1121+
"args": {
1122+
"type": "object",
1123+
"properties": {
1124+
"value": {
1125+
"$ref": "https://a2ui.org/specification/v0_10/common_types.json#/$defs/DynamicString"
1126+
}
1127+
},
1128+
"required": ["value"],
1129+
"unevaluatedProperties": false
1130+
},
1131+
"returnType": {
1132+
"const": "string"
1133+
}
1134+
},
1135+
"required": ["call", "args"],
1136+
"unevaluatedProperties": false
11131137
}
11141138
},
11151139
"$defs": {
@@ -1182,7 +1206,8 @@
11821206
{"$ref": "#/functions/openUrl"},
11831207
{"$ref": "#/functions/and"},
11841208
{"$ref": "#/functions/or"},
1185-
{"$ref": "#/functions/not"}
1209+
{"$ref": "#/functions/not"},
1210+
{"$ref": "#/functions/capitalize"}
11861211
]
11871212
}
11881213
}

specification/v0_9/catalogs/basic/catalog.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,30 @@
12401240
},
12411241
"required": ["call", "args"],
12421242
"unevaluatedProperties": false
1243+
},
1244+
"capitalize": {
1245+
"type": "object",
1246+
"description": "Converts an input string to a capitalized version.",
1247+
"properties": {
1248+
"call": {
1249+
"const": "capitalize"
1250+
},
1251+
"args": {
1252+
"type": "object",
1253+
"properties": {
1254+
"value": {
1255+
"$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString"
1256+
}
1257+
},
1258+
"required": ["value"],
1259+
"unevaluatedProperties": false
1260+
},
1261+
"returnType": {
1262+
"const": "string"
1263+
}
1264+
},
1265+
"required": ["call", "args"],
1266+
"unevaluatedProperties": false
12431267
}
12441268
},
12451269
"$defs": {
@@ -1376,6 +1400,9 @@
13761400
},
13771401
{
13781402
"$ref": "#/functions/not"
1403+
},
1404+
{
1405+
"$ref": "#/functions/capitalize"
13791406
}
13801407
]
13811408
}

0 commit comments

Comments
 (0)