Docs: Schemas folder missing for adding custom actions
See original GitHub issueDescribe the bug
The documentation on Custom Actions says in step 5:
Navigate to to the Schemas (bot/runtime/azurewebapp/Schemas) folder and then run the command update.sh.
You will see that the partial schema (MultiplyDialog.schema inside customaction/Schemas) has been appended to the default sdk.schema file to generate one single consolidated sdk.schema file.
Copy the newly generated sdk.schema into the schemas (bot/schemas) folder at the root of the ejected runtime.
In version v1.0.1 of the Bot Framework Composer, after ejecting the runtime, the Schemas folder is missing in both:
- bot/runtime/azurewebapp
- bot/runtime/azurefunctions
It appears the schema files & corresponding scripts have moved to:
- bot/schemas
Version
Browser
- Electron distribution
- Chrome
- Safari
- Firefox
- Edge
OS
- macOS
- Windows
- Ubuntu
To Reproduce
Steps to reproduce the behavior:
- Eject the runtime as described here.
- When trying to update the Schema files, you will find the mentioned Schemas folder is not present in both azurewebapp or azurefunctions.
Expected behavior
The documentation should be updated to reflect the functioning of the new scripts path, and the sdk.schema does not need to be copied anymore:
-
Navigate to to the
schemas (bot/schemas)
folder. This folder contains a Powershell script and a bash script. Run either of these scripts./update-schema.ps1 -runtime azurewebapp
orsh ./update-schema.sh -runtime azurewebapp
. To use the Azure Functions runtime, run the script with-runtime azurefunctions
. The runtimeazurewebapp
is chosen by default if no argument is passed. -
Validate that the partial schema (MultiplyDialog.schema inside customaction/Schema) has been appended to the default sdk.schema file to generate one single consolidated sdk.schema file.
The above steps should have generated a new sdk.schema file inside schemas
folder for Composer to use. Reload the bot and you should be able to include your new custom action!
Screenshots
Ejected runtime generated on v1.0.0:
Ejected runtime on v1.0.1:
Additional context
- An additional remark on this related docs page: When testing in the Bot Framework Emulator, Composer will always use the azurewebapp runtime, even if afterward you deploy to Azure Functions. It means that during development you will need to make the changes to the .csproj and startup.cs files in both the azurewebapp and azurefunctions folders.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top GitHub Comments
@bartbilliet it was moved to the botfolder/schemas folder. For now, you can just run updateSchema command under the schemas folder, you don’t need to do an extra copy from runtime/schemas to schemas folder right now.
@zxyanliu please help update the doc based on the above.
Hey @bartbilliet the content has been updated and is live now. Thanks again for your feedback, we appreciate it! : -)