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

bf luis:version:export output error, which causes bf luis:generate:cs to fail #848

@manish-95

Description

@manish-95

Versions

@microsoft/botframework-cli/4.9.1 win32-x64 node-v12.13.1

Describe the bug

The output json file generated by bf luis:version:export differs slightly from the json file downloaded from the LUIS Portal. This causes the bf luis:generate:cs command to fail with the error "Invalid LUIS JSON file content" while used with the output generated by the export command, but succeed with the .json file from LUIS portal. Screenshots attached below, showing these differences.

To Reproduce

Steps to reproduce the behavior:

  1. Export .json file using bf luis:version:export
  2. Export same .json file from luis.ai portal
  3. Run the bf luis:generate:cs command using both files as input
  4. Note the error in the case of the file generated with bf tool.

Expected behavior

The .cs Helper file must be produced irrespective of the source of the input json file.

Screenshots

image
The file on the left is generated from bf, the file on the right is downloaded from the LUIS portal. Note the differences for regex features and regex entities, which is causing the failure of the bf generate command.

Metadata

Metadata

Assignees

Labels

Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.customer-replied-toIndicates that the team has replied to the issue reported by the customer. Do not delete.customer-reportedIssue is created by anyone that is not a collaborator in the repository.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions