question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Docs: Schemas folder missing for adding custom actions

See original GitHub issue

Describe 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

image

Browser

  • Electron distribution
  • Chrome
  • Safari
  • Firefox
  • Edge

OS

  • macOS
  • Windows
  • Ubuntu

To Reproduce

Steps to reproduce the behavior:

  1. Eject the runtime as described here.
  2. 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 or sh ./update-schema.sh -runtime azurewebapp. To use the Azure Functions runtime, run the script with -runtime azurefunctions. The runtime azurewebapp 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:

image

Ejected runtime on v1.0.1:

image

image

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:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
luhan2017commented, Jun 9, 2020

@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.

1reaction
zxyanliucommented, Jun 16, 2020

Hey @bartbilliet the content has been updated and is live now. Thanks again for your feedback, we appreciate it! : -)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing Schema Folder | Revit LT 2023
If the schemas folder is missing, empty, or contains damaged files, the Missing Schema Folder dialog displays. Repair/reinstall Revit LT, ...
Read more >
Adding Missing DMI Schemas or Updating Outdated DMI ...
To add missing schemas by using the View/Install Missing schemas action: On the Junos Space Platform interface, select Administration > DMI Schemas. The...
Read more >
Publishing and the Active Directory schema - Microsoft Learn
In this article. Step 1: Extend the schema; Step 2: The System Management container; Next steps. Applies to: Configuration Manager (current ...
Read more >
SSM document schema features and examples
AWS Systems Manager (SSM) documents use the following schema versions. Documents of type Command can use schema version 1.2, 2.0, and 2.2. If...
Read more >
Manage Drive labels - Google Workspace Admin Help
You can create a label that maps to a classification schema which can be ... Drive labels can be used as a condition...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found