Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit d46c6e4

Browse files
author
Chris McConnell
authored
Chrimc/utterance (#429)
* Enable template: as a $ref protocol. Add utterance to mappings. Simplify stringAsk. * Enable template: in requires. * Don't explore schema below $mapping. * Add threshold for cancel. * Simplify sandwich.
1 parent 5584f74 commit d46c6e4

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

packages/dialog/templates/CancelConfirmation.dialog.lg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"$schema": "@{appSchema}",
55
"$kind": "Microsoft.OnIntent",
66
"intent": "Cancel",
7+
"condition": "turn.recognized.score > 0.5",
78
"actions": [
89
{
910
"$kind": "Microsoft.Ask",

packages/dialog/test/commands/dialog/forms/sandwich.schema

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
"minimum": 1,
88
"maximum": 10
99
},
10-
"Directions": {
11-
"type": "string",
12-
"$comment": "This indicates the whole string is what maps to this."
13-
},
1410
"Length": {
1511
"type": "number",
1612
"$mappings": [
@@ -20,6 +16,9 @@
2016
"$comment": "This is used by the mapping to convert underlying dimensions to inches.",
2117
"$units": "inches"
2218
},
19+
"Name": {
20+
"type": "string"
21+
},
2322
"Bread": {
2423
"type": "string",
2524
"enum": [
@@ -55,17 +54,14 @@
5554
"none"
5655
]
5756
},
58-
"Name": {
59-
"type": "string"
60-
},
6157
"Price": {
6258
"$ref": "template:currency.schema#/currency"
6359
}
6460
},
6561
"required": [
6662
"Name",
67-
"Meat",
6863
"Bread",
64+
"Meat",
6965
"Cheese"
7066
],
7167
"$requires": [

0 commit comments

Comments
 (0)