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

Commit 5584f74

Browse files
authored
Nigao/testschema (#425)
* add test schema: order and delivery sandwich * rename schema * add external schema * all prebuilt entities test, except for datetime, currecy, ordinal, ordinalV2, phonenumber * remove currency, ordinalV2, datetimeV2, phonenumber * add all required properties * shorten the final confirmation conversation * remove cancel, help threshold, but datetimeV2 still not working * fix a bug in numberSetdimension * add test schema: order and delivery sandwich * rename schema * add external schema * all prebuilt entities test, except for datetime, currecy, ordinal, ordinalV2, phonenumber * remove currency, ordinalV2, datetimeV2, phonenumber * add all required properties * remove cancel, help threshold, but datetimeV2 still not working * several changes * schema changes * drop stringSet.dialog * drop stringSetmoney.dialog.lg * add test schema: order and delivery sandwich * add test schema: order and delivery sandwich * rename schema * rename schema * add external schema * add external schema * all prebuilt entities test, except for datetime, currecy, ordinal, ordinalV2, phonenumber * all prebuilt entities test, except for datetime, currecy, ordinal, ordinalV2, phonenumber * remove currency, ordinalV2, datetimeV2, phonenumber * remove currency, ordinalV2, datetimeV2, phonenumber * add all required properties * add all required properties * shorten the final confirmation conversation * remove cancel, help threshold, but datetimeV2 still not working * remove cancel, help threshold, but datetimeV2 still not working * fix a bug in numberSetdimension * several changes * schema changes * drop stringSet.dialog * drop stringSetmoney.dialog.lg
1 parent 72a7369 commit 5584f74

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+278
-104
lines changed

.vscode/launch.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,25 @@
9999
],
100100
"internalConsoleOptions": "openOnSessionStart"
101101
},
102+
{
103+
"type": "node",
104+
"request": "launch",
105+
"name": "Generate Test",
106+
"preLaunchTask": "${defaultBuildTask}",
107+
"program": "${workspaceFolder}/packages/dialog/bin/run",
108+
"outFiles": [
109+
"./packages/dialog/lib/**"
110+
],
111+
"args": [
112+
"dialog:generate",
113+
"${workspaceFolder}/packages/dialog/test/commands/dialog/forms/test2.schema",
114+
"-o",
115+
"${env:TEMP}/test.out",
116+
"--force",
117+
"--verbose"
118+
],
119+
"internalConsoleOptions": "openOnSessionStart"
120+
},
102121
{
103122
"type": "node",
104123
"request": "launch",

packages/dialog/templates/CancelConfirmation.dialog.lg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"$kind": "Microsoft.Ask",
1010
"activity": "@{callCancel()}",
1111
"expectedProperties": [
12-
"CancelConfirmation"
13-
]
12+
"CancelConfirmation"
13+
]
1414
}
1515
]
1616
}

packages/dialog/templates/CancelConfirmationSet.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.OnSetProperty",
66
"property": "CancelConfirmation",
7+
"entity": "Confirmation",
78
"actions": [
89
{
910
"$kind": "Microsoft.SetProperty",

packages/dialog/templates/CompleteConfirmationSet.dialog.lg renamed to packages/dialog/templates/CompleteSetConfirmation.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.OnSetProperty",
66
"property": "CompleteConfirmation",
7+
"entity": "Confirmation",
78
"actions": [
89
{
910
"$kind": "Microsoft.SetProperty",
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# template
2+
- ```
3+
{
4+
"$schema": "@{appSchema}",
5+
"$kind": "Microsoft.OnSetProperty",
6+
"property": "CompleteConfirmation",
7+
"entity": "PROPERTYName",
8+
"actions": [
9+
{
10+
"$kind": "Microsoft.DeleteProperty",
11+
"property": "dialog[@PROPERTYName]"
12+
}
13+
]
14+
}
15+
```
16+
17+
# callChooseProperty
18+
- @\{chooseProperty()}

packages/dialog/templates/PropertyToChangeSet.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.OnSetProperty",
66
"property": "PropertyToChange",
7+
"entity": "PROPERTYName",
78
"actions": [
89
{
910
"$kind": "Microsoft.DeleteProperty",

packages/dialog/templates/en-us/common.lg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ Which value do you want for @{name(property)}?
2323

2424
# askNumber(property)
2525
- IF: @{turn.schema.properties[property].minimum && turn.schema.properties[property].maximum}
26-
- Enter a number for @{name(property)} between @{turn.schema.properties[property].minimum} and @{turn.schema.properties[property].maximum}:
26+
- Enter a number for @{name(property)} between @{turn.schema.properties[property].minimum} and @{turn.schema.properties[property].maximum}
2727
- ELSE:
28-
- Enter a number for @{name(property)}:
28+
- Enter a number for @{name(property)}
2929

3030
# askString(property)
3131
- ```
@@ -148,7 +148,7 @@ Please choose a value for @{name(property)} from \[@{join(foreach(turn.dialogEve
148148
- {"title": "@{name(property)}", "value": "@{value(property, dialog[property])}"}
149149

150150
# confirmChange
151-
- Is there any property you want to change? (yes/no)
151+
- Is there any property you want to change? (no or the property name)
152152

153153
# chooseProperty
154154
- Which property do you want to change?

packages/dialog/templates/en-us/datetime.lu.lg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
- @{entityFilename()}
33

44
# template
5-
- $PREBUILT:datetime @{roles()}
5+
- $PREBUILT:datetimeV2 @{roles()}
66

77
[generator.lg](../generator.lg)

packages/dialog/templates/en-us/dimension.lg

Whitespace-only changes.

packages/dialog/templates/en-us/number.lg

Whitespace-only changes.

0 commit comments

Comments
 (0)